annotate calibrator.xml @ 13:d050c79597f5 draft default tip

planemo upload for repository https://github.com/brsynth/icfree-ml commit 16315dee62caf50b1820964b0536c1cf61c67ceb
author tduigou
date Fri, 07 Feb 2025 11:06:49 +0000
parents 2e6a3489d472
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
1 <tool id="icfree_calibrator" name="iCFree calibrator" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" license="MIT">
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
2 <description>Calculate yield based on fluorescence data and optionally apply calibration</description>
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
3 <macros>
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
4 <import>macros.xml</import>
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
5 </macros>
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
6 <expand macro="requirements"/>
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
7 <command detect_errors="exit_code"><![CDATA[
5
2e6a3489d472 planemo upload for repository https://github.com/brsynth/icfree-ml commit b9b4f0fee7d651ad6cb3db9839bff63e3e3909b7
tduigou
parents: 3
diff changeset
8 cp '$extractor_file' 'extractor.csv' &&
0
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
9 cp '$ref_file' 'reference.csv' &&
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
10 python -m icfree.learner.calibrator
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
11 --output 'calibrated.csv'
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
12 --plot '$output_graph'
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
13 --jove_plus '$jove_plus'
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
14 --jove_minus '$jove_minus'
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
15 --r2_limit '$adv.r2_limit'
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
16 #if str($adv.num_control_points) != ''
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
17 --num_control_points '$adv.num_control_points'
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
18 #end if
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
19 'extractor.csv' 'reference.csv' &&
3
c5cd3420fed6 planemo upload for repository https://github.com/brsynth/icfree-ml commit 8dde46bddbe8df819c48e7e392893c34b22aa6dd
tduigou
parents: 2
diff changeset
20 mv 'calibrated.csv' '$output_calibrated' &&
c5cd3420fed6 planemo upload for repository https://github.com/brsynth/icfree-ml commit 8dde46bddbe8df819c48e7e392893c34b22aa6dd
tduigou
parents: 2
diff changeset
21 mv 'calibrated_control_points.csv' '$output_control_points'
0
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
22 ]]></command>
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
23 <inputs>
13
d050c79597f5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 16315dee62caf50b1820964b0536c1cf61c67ceb
tduigou
parents: 5
diff changeset
24 <param name="extractor_file" type="data" format="csv" label="Extracted fluo/lumi values"/>
d050c79597f5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 16315dee62caf50b1820964b0536c1cf61c67ceb
tduigou
parents: 5
diff changeset
25 <param name="ref_file" type="data" format="csv" label="Reference input file" />
d050c79597f5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 16315dee62caf50b1820964b0536c1cf61c67ceb
tduigou
parents: 5
diff changeset
26 <param argument="jove_plus" type="integer" value="3" label="Line number for Jove+ (1-based index)" />
d050c79597f5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 16315dee62caf50b1820964b0536c1cf61c67ceb
tduigou
parents: 5
diff changeset
27 <param argument="jove_minus" type="integer" value="2" label="Line number for Jove- (1-based index)" />
0
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
28 <section name="adv" title="Advanced Options" expanded="false">
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
29 <!-- Calibrator -->
13
d050c79597f5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 16315dee62caf50b1820964b0536c1cf61c67ceb
tduigou
parents: 5
diff changeset
30 <param argument="r2_limit" type="float" value="0.8" label="R-squared limit for the regression" />
d050c79597f5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 16315dee62caf50b1820964b0536c1cf61c67ceb
tduigou
parents: 5
diff changeset
31 <param argument="num_control_points" type="integer" optional="true" label="Number of control points to select" />
0
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
32 </section>
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
33 </inputs>
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
34 <outputs>
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
35 <data name="output_calibrated" format="csv" label="${tool.name} - Calibrated yields" />
3
c5cd3420fed6 planemo upload for repository https://github.com/brsynth/icfree-ml commit 8dde46bddbe8df819c48e7e392893c34b22aa6dd
tduigou
parents: 2
diff changeset
36 <data name="output_control_points" format="csv" label="${tool.name} - Control points" />
0
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
37 <data name="output_graph" format="png" label="${tool.name} - Graph" />
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
38 </outputs>
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
39 <tests>
3
c5cd3420fed6 planemo upload for repository https://github.com/brsynth/icfree-ml commit 8dde46bddbe8df819c48e7e392893c34b22aa6dd
tduigou
parents: 2
diff changeset
40 <test expect_num_outputs="3">
5
2e6a3489d472 planemo upload for repository https://github.com/brsynth/icfree-ml commit b9b4f0fee7d651ad6cb3db9839bff63e3e3909b7
tduigou
parents: 3
diff changeset
41 <!-- python -m icfree.learner.calibrator -output calibrator.output.calibrated.1.csv -jove_plus 3 -jove_minus 2 -plot calibrator.output.1.png extractor.output.1.csv calibrator.input.ref.csv -->
2e6a3489d472 planemo upload for repository https://github.com/brsynth/icfree-ml commit b9b4f0fee7d651ad6cb3db9839bff63e3e3909b7
tduigou
parents: 3
diff changeset
42 <param name="extractor_file" value="extractor.output.1.csv" />
0
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
43 <param name="ref_file" value="calibrator.input.ref.csv" />
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
44 <param name="jove_plus" value="3" />
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
45 <param name="jove_minus" value="2" />
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
46 <output name="output_calibrated" ftype="csv">
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
47 <assert_contents>
2
ac296a9146df planemo upload for repository https://github.com/brsynth/icfree-ml commit 9ac6ff08b3b98534f42ecfcecefa438ead21168c
tduigou
parents: 1
diff changeset
48 <has_n_lines n="58" />
0
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
49 </assert_contents>
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
50 </output>
3
c5cd3420fed6 planemo upload for repository https://github.com/brsynth/icfree-ml commit 8dde46bddbe8df819c48e7e392893c34b22aa6dd
tduigou
parents: 2
diff changeset
51 <output name="output_control_points" ftype="csv">
c5cd3420fed6 planemo upload for repository https://github.com/brsynth/icfree-ml commit 8dde46bddbe8df819c48e7e392893c34b22aa6dd
tduigou
parents: 2
diff changeset
52 <assert_contents>
c5cd3420fed6 planemo upload for repository https://github.com/brsynth/icfree-ml commit 8dde46bddbe8df819c48e7e392893c34b22aa6dd
tduigou
parents: 2
diff changeset
53 <has_n_lines n="6" />
c5cd3420fed6 planemo upload for repository https://github.com/brsynth/icfree-ml commit 8dde46bddbe8df819c48e7e392893c34b22aa6dd
tduigou
parents: 2
diff changeset
54 </assert_contents>
c5cd3420fed6 planemo upload for repository https://github.com/brsynth/icfree-ml commit 8dde46bddbe8df819c48e7e392893c34b22aa6dd
tduigou
parents: 2
diff changeset
55 </output>
2
ac296a9146df planemo upload for repository https://github.com/brsynth/icfree-ml commit 9ac6ff08b3b98534f42ecfcecefa438ead21168c
tduigou
parents: 1
diff changeset
56 <output name="output_graph" ftype="png" >
0
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
57 <assert_contents>
2
ac296a9146df planemo upload for repository https://github.com/brsynth/icfree-ml commit 9ac6ff08b3b98534f42ecfcecefa438ead21168c
tduigou
parents: 1
diff changeset
58 <has_size value="45000" delta="2000" />
0
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
59 </assert_contents>
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
60 </output>
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
61 </test>
3
c5cd3420fed6 planemo upload for repository https://github.com/brsynth/icfree-ml commit 8dde46bddbe8df819c48e7e392893c34b22aa6dd
tduigou
parents: 2
diff changeset
62 <test expect_num_outputs="3">
5
2e6a3489d472 planemo upload for repository https://github.com/brsynth/icfree-ml commit b9b4f0fee7d651ad6cb3db9839bff63e3e3909b7
tduigou
parents: 3
diff changeset
63 <!-- python -m icfree.learner.calibrator -output calibrator.output.calibrated.2.csv -jove_plus 4 -jove_minus 3 -r2_limit 0.9 -num 20 -num_control_points 4 -plot calibrator.output.2.png extractor.output.2.csv calibrator.input.ref.csv -->
2e6a3489d472 planemo upload for repository https://github.com/brsynth/icfree-ml commit b9b4f0fee7d651ad6cb3db9839bff63e3e3909b7
tduigou
parents: 3
diff changeset
64 <param name="extractor_file" value="extractor.output.2.csv" />
0
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
65 <param name="ref_file" value="calibrator.input.ref.csv" />
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
66 <param name="r2_limit" value="0.9" />
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
67 <param name="num_control_points" value="4" />
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
68 <param name="jove_plus" value="4" />
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
69 <param name="jove_minus" value="3" />
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
70 <output name="output_calibrated" ftype="csv">
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
71 <assert_contents>
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
72 <has_n_lines n="21" />
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
73 </assert_contents>
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
74 </output>
3
c5cd3420fed6 planemo upload for repository https://github.com/brsynth/icfree-ml commit 8dde46bddbe8df819c48e7e392893c34b22aa6dd
tduigou
parents: 2
diff changeset
75 <output name="output_control_points" ftype="csv">
c5cd3420fed6 planemo upload for repository https://github.com/brsynth/icfree-ml commit 8dde46bddbe8df819c48e7e392893c34b22aa6dd
tduigou
parents: 2
diff changeset
76 <assert_contents>
5
2e6a3489d472 planemo upload for repository https://github.com/brsynth/icfree-ml commit b9b4f0fee7d651ad6cb3db9839bff63e3e3909b7
tduigou
parents: 3
diff changeset
77 <has_n_lines n="5" />
3
c5cd3420fed6 planemo upload for repository https://github.com/brsynth/icfree-ml commit 8dde46bddbe8df819c48e7e392893c34b22aa6dd
tduigou
parents: 2
diff changeset
78 </assert_contents>
c5cd3420fed6 planemo upload for repository https://github.com/brsynth/icfree-ml commit 8dde46bddbe8df819c48e7e392893c34b22aa6dd
tduigou
parents: 2
diff changeset
79 </output>
2
ac296a9146df planemo upload for repository https://github.com/brsynth/icfree-ml commit 9ac6ff08b3b98534f42ecfcecefa438ead21168c
tduigou
parents: 1
diff changeset
80 <output name="output_graph" ftype="png" >
0
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
81 <assert_contents>
2
ac296a9146df planemo upload for repository https://github.com/brsynth/icfree-ml commit 9ac6ff08b3b98534f42ecfcecefa438ead21168c
tduigou
parents: 1
diff changeset
82 <has_size value="38000" delta="1000" />
0
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
83 </assert_contents>
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
84 </output>
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
85 </test>
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
86 </tests>
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
87 <help><![CDATA[
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
88 Calibrator
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
89 ==========
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
90 Calculate yield based on fluorescence data and apply calibration.
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
91
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
92 ]]></help>
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
93 <expand macro="creator"/>
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
94 <expand macro="citation"/>
d386c9d1fae5 planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
tduigou
parents:
diff changeset
95 </tool>