Mercurial > repos > workflow4metabolomics > influx_si
comparison influx_si.xml @ 1:4e3d4318113b draft
planemo upload for repository https://github.com/workflow4metabolomics/tools-metabolomics/blob/master/tools/influx_si/ commit e9183269ad5b2e8f4551f301dc736df330aa73c6
author | workflow4metabolomics |
---|---|
date | Wed, 13 Sep 2023 19:52:44 +0000 |
parents | 9b03a930b08b |
children | 57f199aa07e4 |
comparison
equal
deleted
inserted
replaced
0:9b03a930b08b | 1:4e3d4318113b |
---|---|
1 <tool id="influx_si" name="influx_si" version="@TOOL_VERSION@+galaxy0" python_template_version="3.5"> | 1 <tool id="influx_si" name="influx_si" version="@TOOL_VERSION@+galaxy1"> |
2 <description>metabolic flux analysis</description> | 2 <description>metabolic flux analysis</description> |
3 <macros> | 3 <macros> |
4 <token name="@TOOL_VERSION@">5.1.0</token> | 4 <token name="@TOOL_VERSION@">5.1.0</token> |
5 </macros> | 5 </macros> |
6 <requirements> | 6 <requirements> |
15 | 15 |
16 mkdir outdir && cd outdir && | 16 mkdir outdir && cd outdir && |
17 | 17 |
18 #for $inp in $inp_all: | 18 #for $inp in $inp_all: |
19 #for $i in $inp: | 19 #for $i in $inp: |
20 ln -s '$i' '$i.name' && | 20 ln -s '$i' '$i.element_identifier' && |
21 #end for | 21 #end for |
22 #end for | 22 #end for |
23 | 23 |
24 influx_$si.s_i | 24 influx_$si.s_i |
25 $opt.noopt | 25 $opt.noopt |
26 $opt.noscale | 26 $opt.noscale |
27 #if $opt.meth != 'None': | 27 #if $opt.meth != 'None': |
28 $opt.meth | 28 $opt.meth |
79 #end if | 79 #end if |
80 | 80 |
81 #if $si.s_i == 'i' and $si.time_order: | 81 #if $si.s_i == 'i' and $si.time_order: |
82 --time_order='$si.time_order' | 82 --time_order='$si.time_order' |
83 #end if | 83 #end if |
84 '${"' '".join([str($in_m.name) for $in_m in $input_main])}' | 84 '${"' '".join([str($in_m.element_identifier) for $in_m in $input_main])}' |
85 > 'influx_${si.s_i}.stdout.txt' 2>'influx_${si.s_i}.stderr.txt'; res="\$?" && | 85 > 'influx_${si.s_i}.stdout.txt' 2>'influx_${si.s_i}.stderr.txt'; res="\$?" && |
86 | 86 |
87 for f in *.ftbl *.log *.err *.R *.kvh *.attrs; do mv -f "\$f" "\$f".txt || true; done && | 87 for f in *.ftbl *.log *.err *.R *.kvh *.attrs; do mv -f "\$f" "\$f".txt || true; done && |
88 | 88 |
89 for f in *.pdf; do [ -e "\$f" ] && mv -f "\$f" "\$f".pdf || true; done && | 89 for f in *.pdf; do [ -e "\$f" ] && mv -f "\$f" "\$f".pdf || true; done && |
99 <option value="i">instationary</option> | 99 <option value="i">instationary</option> |
100 </param> | 100 </param> |
101 <when value="s"/> | 101 <when value="s"/> |
102 <when value="i"> | 102 <when value="i"> |
103 <param type="data" name="input_ti" label="time course data" format="txt,tsv" multiple="true"/> | 103 <param type="data" name="input_ti" label="time course data" format="txt,tsv" multiple="true"/> |
104 <param argument="--time_order" type="select" label="time order for ODE solving" display="radio" optional="true" help="Order 2 is more precise but more time consuming. The value '1,2' makes to start solving the ODE with the first order scheme then continues with the order 2."> | 104 <param argument="--time_order" type="select" label="time order for ODE solving" optional="true" help="Order 2 is more precise but more time consuming. The value '1,2' makes to start solving the ODE with the first order scheme then continues with the order 2."> |
105 <option value="None">None</option> | 105 <option value="None">None</option> |
106 <option value="1">1</option> | 106 <option value="1">1</option> |
107 <option value="2">2</option> | 107 <option value="2">2</option> |
108 <option value="1,2">1,2</option> | 108 <option value="1,2">1,2</option> |
109 </param> | 109 </param> |
145 <param argument="--TIMEIT" type="boolean" checked="false" truevalue="--TIMEIT" falsevalue="" label="measure timings" optional="true" help="developer option: measure cpu time or not" /> | 145 <param argument="--TIMEIT" type="boolean" checked="false" truevalue="--TIMEIT" falsevalue="" label="measure timings" optional="true" help="developer option: measure cpu time or not" /> |
146 <param argument="--tblimit" type="integer" min="0" value="0" label="Python traceback limit" optional="true" help="developer option: set trace back limit for Python error messages" /> | 146 <param argument="--tblimit" type="integer" min="0" value="0" label="Python traceback limit" optional="true" help="developer option: set trace back limit for Python error messages" /> |
147 </section> | 147 </section> |
148 </inputs> | 148 </inputs> |
149 <outputs> | 149 <outputs> |
150 <!-- TODO: this should probably not be a collection, also name_and_ext probably does not work correctly for all elements--> | |
150 <collection name="influx_si_output" type="list" label="influx_${si.s_i}_on_${on_string}"> | 151 <collection name="influx_si_output" type="list" label="influx_${si.s_i}_on_${on_string}"> |
151 <discover_datasets pattern="__name_and_ext__" directory="outdir" visible="false"/> | 152 <discover_datasets pattern="__name_and_ext__" directory="outdir" visible="false"/> |
152 </collection> | 153 </collection> |
153 </outputs> | 154 </outputs> |
154 <tests> | 155 <tests> |
155 <test> | 156 <test> |
156 <param name="input_main" value="e_coli.ftbl" /> | 157 <param name="input_main" value="e_coli.ftbl" /> |
157 <conditional name="si"> | 158 <conditional name="si"> |
158 <param name="s_i" value="s" /> | 159 <param name="s_i" value="s" /> |
159 </conditional> | 160 </conditional> |
161 <output_collection name="influx_si_output" type="list" count="11"> | |
162 <element name="e_coli.log" ftype="txt"> | |
163 <assert_contents> | |
164 <has_n_lines n="38"/> | |
165 <has_line_matching expression="^end.*"/> | |
166 </assert_contents> | |
167 </element> | |
168 </output_collection> | |
169 </test> | |
170 <test> | |
171 <param name="input_main" value="e_coli.ftbl,e_coli_growth.ftbl" /> | |
172 <conditional name="si"> | |
173 <param name="s_i" value="s" /> | |
174 </conditional> | |
160 <output_collection name="influx_si_output" type="list"> | 175 <output_collection name="influx_si_output" type="list"> |
161 <element name="e_coli.log" ftype="txt" file="e_coli.log" compare="sim_size" delta="100" /> | 176 <element name="e_coli_growth.log" ftype="txt"> |
162 </output_collection> | 177 <assert_contents> |
163 </test> | 178 <has_n_lines n="45"/> |
164 <test> | 179 <has_line_matching expression="^end.*"/> |
165 <param name="input_main" value="e_coli.ftbl,e_coli_growth.ftbl" /> | 180 </assert_contents> |
166 <conditional name="si"> | 181 </element> |
167 <param name="s_i" value="s" /> | |
168 </conditional> | |
169 <output_collection name="influx_si_output" type="list"> | |
170 <element name="e_coli_growth.log" ftype="txt" file="e_coli_growth.log" compare="sim_size" delta="100" /> | |
171 </output_collection> | 182 </output_collection> |
172 </test> | 183 </test> |
173 <test> | 184 <test> |
174 <param name="input_main" value="e_coli_i.ftbl" /> | 185 <param name="input_main" value="e_coli_i.ftbl" /> |
175 <conditional name="si"> | 186 <conditional name="si"> |
176 <param name="s_i" value="i" /> | 187 <param name="s_i" value="i" /> |
177 <param name="input_ti" value="e_coli_msen.txt" /> | 188 <param name="input_ti" value="e_coli_msen.txt" /> |
178 <!--param name="time_order" value="1,2" /--> <!--How to pass single value with comma in it?--> | 189 <!--param name="time_order" value="1,2" /--> <!--How to pass single value with comma in it?--> |
179 </conditional> | 190 </conditional> |
180 <output_collection name="influx_si_output" type="list"> | 191 <output_collection name="influx_si_output" type="list"> |
181 <element name="e_coli_i.log" ftype="txt" file="e_coli_i.log" compare="sim_size" delta="100" /> | 192 <element name="e_coli_i.log" ftype="txt"> |
193 <assert_contents> | |
194 <has_n_lines n="47"/> | |
195 <has_line_matching expression="^end.*"/> | |
196 </assert_contents> | |
197 </element> | |
182 </output_collection> | 198 </output_collection> |
183 </test> | 199 </test> |
184 <test> | 200 <test> |
185 <param name="input_main" value="e_coli_1-Glc_exact.ftbl" /> | 201 <param name="input_main" value="e_coli_1-Glc_exact.ftbl" /> |
186 <param name="input_aux" value="e_coli_U-Glc_exact.ftbl" /> | 202 <param name="input_aux" value="e_coli_U-Glc_exact.ftbl" /> |
187 <conditional name="si"> | 203 <conditional name="si"> |
188 <param name="s_i" value="s" /> | 204 <param name="s_i" value="s" /> |
189 </conditional> | 205 </conditional> |
190 <output_collection name="influx_si_output" type="list"> | 206 <output_collection name="influx_si_output" type="list"> |
191 <element name="e_coli_1-Glc_exact.log" file="e_coli_1-Glc_exact.log" compare="sim_size" delta="100" /> | 207 <element name="e_coli_1-Glc_exact.log" ftype="txt"> |
208 <assert_contents> | |
209 <has_n_lines n="40"/> | |
210 <has_line_matching expression="^end.*"/> | |
211 </assert_contents> | |
212 </element> | |
192 </output_collection> | 213 </output_collection> |
193 </test> | 214 </test> |
194 </tests> | 215 </tests> |
195 <help><![CDATA[ | 216 <help><![CDATA[ |
196 Usage: influx_s [options] /path/to/FTBL_file1 [FTBL_file2 [...]] | |
197 | |
198 Optimize free fluxes and optionaly metabolite concentrations of a given static metabolic network defined in an FTBL file to fit 13C data provided in the same FTBL file. | 217 Optimize free fluxes and optionaly metabolite concentrations of a given static metabolic network defined in an FTBL file to fit 13C data provided in the same FTBL file. |
199 ]]></help> | 218 ]]></help> |
200 <citations> | 219 <citations> |
201 <citation type="bibtex"> | 220 <citation type="bibtex"> |
202 @misc{githubinflux, | 221 @misc{githubinflux, |