comparison reduce-model.xml @ 0:233d87b56795 draft default tip

"planemo upload for repository https://github.com/brsynth/straindesign commit ef548ee3fe2740006c95cafb67504c72ef509575"
author ggricourt
date Thu, 29 Sep 2022 18:48:17 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:233d87b56795
1 <tool id="reduce-model" name="reduce-model" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" license="@LICENCE@">
2 <description>Delete genes and associated reactions in a model.</description>
3 <macros>
4 <import>macros.xml</import>
5 </macros>
6 <expand macro="requirements"/>
7 <expand macro="stdio"/>
8 <command detect_errors="exit_code"><![CDATA[
9 python -m straindesign reduce-model
10 @CMD_INPUT_MODEL@
11 #if $sd_strategy.sd_cond:
12 --input-straindesign-file '$sd_strategy.sd_tsv'
13 --parameter-strategy-str '$sd_strategy.sd_strategy_str'
14 #end if
15 --output-file-sbml '$output_sbml'
16 #if str($input_gene_str) != ''
17 #set $sgs = str($input_gene_str)
18 --input-gene-str #echo $sgs
19 #end if
20 ]]></command>
21 <expand macro="env_variables"/>
22 <inputs>
23 <expand macro="input_model_sbml"/>
24 <conditional name="sd_strategy">
25 <param name="sd_cond" type="boolean" checked="false" label="Fill with the output of StrainDesign simulate-deletion"/>
26 <when value="true">
27 <param name="sd_tsv" type="data" format="tsv" label="StrainDesign simulate-deletion output"/>
28 <param name="sd_strategy_str" type="select" label="Strategy">
29 <option value="yield-max" selected="True">Yield Max</option>
30 <option value="gene-max">Gene Max</option>
31 <option value="gene-min"> Gene Min</option>
32 </param>
33 </when>
34 <when value="false"/>
35 </conditional>
36 <param name="input_gene_str" type="text" value="" label="Gene IDs. Multiple genes are separated by space">
37 <validator type="regex" message="No special characters allowed">^(?:[ \w.-])*$</validator>
38 </param>
39 </inputs>
40 <outputs>
41 <data name="output_sbml" format="sbml" label="${tool.name}" />
42 </outputs>
43 <tests>
44 <test>
45 <!-- test 1 -->
46 <param name="model" ftype="sbml" value="iAF1260.xml.gz"/>
47 <param name="input_gene_str" value="b4208 b4208 b3919"/>
48 <output name="output_sbml" ftype="sbml">
49 <assert_contents>
50 <is_valid_xml/>
51 <not_has_text text="b4208"/>
52 <not_has_text text="b3919"/>
53 </assert_contents>
54 </output>
55 </test>
56 <test>
57 <!-- test 2 -->
58 <param name="model" ftype="sbml" value="iAF1260.xml.gz"/>
59 <param name="sd_cond" value="true"/>
60 <param name="sd_tsv" ftype="tabular" value="simulate_deletion.butanol.iAF1260.tsv"/>
61 <output name="output_sbml" ftype="sbml">
62 <assert_contents>
63 <is_valid_xml/>
64 <not_has_text text="b3919"/>
65 <not_has_text text="b0529"/>
66 </assert_contents>
67 </output>
68 </test>
69 <test>
70 <!-- test 3 -->
71 <param name="model" ftype="sbml" value="iAF1260.xml.gz"/>
72 <param name="sd_cond" value="true"/>
73 <param name="sd_tsv" ftype="tabular" value="simulate_deletion.butanol.iAF1260.tsv"/>
74 <param name="input_gene_str" value="b4208 b4208 b3919"/>
75 <output name="output_sbml" ftype="sbml">
76 <assert_contents>
77 <is_valid_xml/>
78 <not_has_text text="b4208"/>
79 <not_has_text text="b3919"/>
80 <not_has_text text="b0529"/>
81 </assert_contents>
82 </output>
83 </test>
84 </tests>
85 <help><![CDATA[
86 @HELP_TITLE@
87
88 This tool helps to delete some genes provided either from **simulate-deletion¨** or provided by their ids, in an SBML model.
89 If you provide a TSV file coming from the **simulate-deletion** commands either the file is cleanned by hand and contains one line or the program tries to identify which genes will be deleted by applying the suited strategy:
90 * yield-max: the combination of genes with the maximum amount of yiel is taken
91 * gene-max: the combination of genes with the maximum number of genes is taken
92 * gene-min: the combination of genes with the minimum number of genes is taken
93
94 @HELP_LINK@
95 ]]></help>
96 <expand macro="creator"/>
97 <expand macro="citation"/>
98 </tool>