Mercurial > repos > tduigou > icfree_calibrator
comparison calibrator.xml @ 0:d386c9d1fae5 draft
planemo upload for repository https://github.com/brsynth/icfree-ml commit 89b220357cba84350590ce79306440e78df97be5-dirty
author | tduigou |
---|---|
date | Fri, 22 Nov 2024 11:37:49 +0000 |
parents | |
children | 64294f757d70 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:d386c9d1fae5 |
---|---|
1 <tool id="icfree_calibrator" name="iCFree calibrator" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" license="MIT"> | |
2 <description>Calculate yield based on fluorescence data and optionally apply calibration</description> | |
3 <macros> | |
4 <import>macros.xml</import> | |
5 </macros> | |
6 <expand macro="requirements"/> | |
7 <command detect_errors="exit_code"><![CDATA[ | |
8 cp '$initial_data_file' 'initial_data.csv' && | |
9 cp '$sampling_file' 'sampling.csv' && | |
10 cp '$ref_file' 'reference.csv' && | |
11 python -m icfree.learner.extractor | |
12 --initial_data_file 'initial_data.csv' | |
13 --sampling_file 'sampling.csv' | |
14 --output_file 'extractor.csv' | |
15 #if str($adv.num_samples) != '' | |
16 --num_samples '$adv.num_samples' | |
17 #end if | |
18 #if str($adv.num_replicates) != '' | |
19 --num_replicates '$adv.num_replicates' | |
20 #end if | |
21 && | |
22 python -m icfree.learner.calibrator | |
23 --output 'calibrated.csv' | |
24 --plot '$output_graph' | |
25 --jove_plus '$jove_plus' | |
26 --jove_minus '$jove_minus' | |
27 --r2_limit '$adv.r2_limit' | |
28 #if str($adv.num_control_points) != '' | |
29 --num_control_points '$adv.num_control_points' | |
30 #end if | |
31 #if str($adv.num_samples) != '' | |
32 --num '$adv.num_samples' | |
33 #end if | |
34 'extractor.csv' 'reference.csv' && | |
35 mv 'calibrated.csv' '$output_calibrated' | |
36 ]]></command> | |
37 <inputs> | |
38 <param name="initial_data_file" type="data" format="csv" label="Initial file" help="Initial file"/> | |
39 <param name="sampling_file" type="data" format="csv" label="Sampling file" help="Sampling file"/> | |
40 <param name="ref_file" type="data" format="csv" label="Reference input file" help="Reference input file"/> | |
41 <param argument="jove_plus" type="integer" label="Line number for Jove+ (1-based index)" help="Line number for Jove+ (1-based index)" /> | |
42 <param argument="jove_minus" type="integer" label="Line number for Jove- (1-based index)" help="Line number for Jove- (1-based index)" /> | |
43 <section name="adv" title="Advanced Options" expanded="false"> | |
44 <param argument="num_samples" type="integer" optional="true" label="Number of samples" help="Number of samples" /> | |
45 <!-- Extractor --> | |
46 <param argument="num_replicates" type="integer" optional="true" label="Number of replicates" help="Number of replicates." /> | |
47 <!-- Calibrator --> | |
48 <param argument="r2_limit" type="float" value="0.8" label="R-squared limit for the regression" help="R-squared limit for the regression" /> | |
49 <param argument="num_control_points" type="integer" optional="true" label="Number of control points to select" help="Number of control points to select" /> | |
50 </section> | |
51 </inputs> | |
52 <outputs> | |
53 <data name="output_calibrated" format="csv" label="${tool.name} - Calibrated yields" /> | |
54 <data name="output_graph" format="png" label="${tool.name} - Graph" /> | |
55 </outputs> | |
56 <tests> | |
57 <test expect_num_outputs="2"> | |
58 <!-- python -m icfree.learner.extractor -initial_data_file calibrator.input.initial_data.csv -sampling_file calibrator.input.sampling.csv -output_file calibrator.extractor_output.1.csv --> | |
59 <!-- python -m icfree.learner.calibrator -output calibrator.output.calibrated.1.csv -jove_plus 3 -jove_minus 2 -plot calibrator.output.1.png calibrator.output.extractor.1.csv calibrator.input.ref.csv --> | |
60 <param name="initial_data_file" value="calibrator.input.initial_data.csv" /> | |
61 <param name="sampling_file" value="calibrator.input.sampling.csv" /> | |
62 <param name="ref_file" value="calibrator.input.ref.csv" /> | |
63 <param name="jove_plus" value="3" /> | |
64 <param name="jove_minus" value="2" /> | |
65 <output name="output_calibrated" ftype="csv"> | |
66 <assert_contents> | |
67 <has_n_lines n="343" /> | |
68 </assert_contents> | |
69 </output> | |
70 <output name="calibrator_graph" ftype="png" > | |
71 <assert_contents> | |
72 <has_size value="62000" delta="2000" /> | |
73 </assert_contents> | |
74 </output> | |
75 </test> | |
76 <test expect_num_outputs="2"> | |
77 <!-- python -m icfree.learner.extractor -initial_data_file calibrator.input.initial_data.csv -sampling_file calibrator.input.sampling.tsv -output_file calibrator.output.extractor.2.csv -num_samples 20 -num_replicates 3 --> | |
78 <!-- python -m icfree.learner.calibrator -plot calibrator.output.2.png -output calibrator.output.2.csv -jove_plus 4 -jove_minus 3 -r2_limit 0.9 -num 20 -num_control_points 4 calibrator.output.extractor.2.csv calibrator.input.ref.csv --> | |
79 <param name="initial_data_file" value="calibrator.input.initial_data.csv" /> | |
80 <param name="sampling_file" value="calibrator.input.sampling.csv" /> | |
81 <param name="ref_file" value="calibrator.input.ref.csv" /> | |
82 <param name="num_samples" value="20" /> | |
83 <param name="num_replicates" value="3" /> | |
84 <param name="r2_limit" value="0.9" /> | |
85 <param name="num_control_points" value="4" /> | |
86 <param name="jove_plus" value="4" /> | |
87 <param name="jove_minus" value="3" /> | |
88 <output name="output_calibrated" ftype="csv"> | |
89 <assert_contents> | |
90 <has_n_lines n="21" /> | |
91 </assert_contents> | |
92 </output> | |
93 <output name="calibrator_graph" ftype="png" > | |
94 <assert_contents> | |
95 <has_size value="45000" delta="1000" /> | |
96 </assert_contents> | |
97 </output> | |
98 | |
99 </test> | |
100 | |
101 </tests> | |
102 <help><![CDATA[ | |
103 Calibrator | |
104 ========== | |
105 Calculate yield based on fluorescence data and apply calibration. | |
106 | |
107 ]]></help> | |
108 <expand macro="creator"/> | |
109 <expand macro="citation"/> | |
110 </tool> |