|
93
|
1 <tool id="CustomDataGenerator" name="Custom Data Generator" version="2.0.0">
|
|
|
2
|
|
387
|
3 <requirements>
|
|
93
|
4 <requirement type="package" version="1.24.4">numpy</requirement>
|
|
|
5 <requirement type="package" version="2.0.3">pandas</requirement>
|
|
387
|
6 <requirement type="package" version="0.29.0">cobra</requirement>
|
|
93
|
7 <requirement type="package" version="5.2.2">lxml</requirement>
|
|
387
|
8 </requirements>
|
|
93
|
9
|
|
389
|
10 <macros>
|
|
|
11 <import>marea_macros.xml</import>
|
|
|
12 </macros>
|
|
|
13
|
|
93
|
14 <command detect_errors="exit_code">
|
|
|
15 <![CDATA[
|
|
387
|
16 python $__tool_directory__/custom_data_generator.py
|
|
354
|
17 --tool_dir $__tool_directory__
|
|
385
|
18 --medium_selector $cond_model.medium_selector
|
|
345
|
19 #if $cond_model.model_selector == 'Custom_model'
|
|
|
20 --input $cond_model.input
|
|
|
21 --name $cond_model.name
|
|
|
22 #else
|
|
|
23 --model $cond_model.model_selector
|
|
|
24 --name $cond_model.model_selector
|
|
|
25 #end if
|
|
385
|
26 #if $cond_model.medium_selector == 'Custom'
|
|
|
27 --medium $cond_model.medium
|
|
345
|
28 #end if
|
|
392
|
29
|
|
|
30 --gene_format $gene_format
|
|
|
31
|
|
93
|
32 --out_log $log
|
|
376
|
33 --out_tabular $out_tabular
|
|
93
|
34 ]]>
|
|
|
35 </command>
|
|
|
36 <inputs>
|
|
345
|
37 <conditional name="cond_model">
|
|
390
|
38 <expand macro="options_model"/>
|
|
389
|
39
|
|
379
|
40 <!-- ENGRO2 -->
|
|
|
41 <when value="ENGRO2">
|
|
|
42 <param name="name" argument="--name" type="text" value="ENGRO2" hidden="true" />
|
|
|
43 <conditional name="medium_selector">
|
|
382
|
44 <expand macro="options_ras_to_bounds_medium"/>
|
|
379
|
45 <when value="Custom">
|
|
|
46 <param name="medium" argument="--medium" type="data" format="tabular,csv,tsv" label="Custom medium file:" />
|
|
|
47 </when>
|
|
|
48 </conditional>
|
|
|
49 </when>
|
|
|
50
|
|
|
51 <!-- Recon -->
|
|
|
52 <when value="Recon">
|
|
|
53 <param name="name" argument="--name" type="text" value="Recon" hidden="true" />
|
|
|
54 <conditional name="medium_selector">
|
|
389
|
55 <param name="medium_selector" argument="--medium_selector" type="select" label="Medium">
|
|
|
56 <option value="Default" selected="true">Default (Recon built-in medium)</option>
|
|
|
57 <option value="Custom">Custom medium file</option>
|
|
|
58 </param>
|
|
|
59 <when value="Default">
|
|
|
60 <!-- Nessun parametro aggiuntivo necessario -->
|
|
|
61 </when>
|
|
379
|
62 <when value="Custom">
|
|
|
63 <param name="medium" argument="--medium" type="data" format="tabular,csv,tsv" label="Custom medium file:" />
|
|
|
64 </when>
|
|
|
65 </conditional>
|
|
|
66 </when>
|
|
|
67
|
|
|
68 <!-- Custom model -->
|
|
345
|
69 <when value="Custom_model">
|
|
|
70 <param name="input" argument="--input" type="data" format="json,xml" label="Custom model file:" />
|
|
379
|
71 <param name="name" argument="--name" type="text" label="Model's name:" value="CustomModel" />
|
|
|
72 <conditional name="medium_selector">
|
|
389
|
73 <param name="medium_selector" argument="--medium_selector" type="select" label="Medium">
|
|
|
74 <option value="Default" selected="true">Don't use a separate medium file (use model defaults)</option>
|
|
|
75 <option value="Custom">Custom medium file (required)</option>
|
|
|
76 </param>
|
|
|
77 <when value="Default">
|
|
|
78 <!-- Nessun parametro aggiuntivo necessario -->
|
|
|
79 </when>
|
|
379
|
80 <when value="Custom">
|
|
|
81 <param name="medium" argument="--medium" type="data" format="tabular,csv,tsv" label="Custom medium file:" />
|
|
|
82 </when>
|
|
|
83 </conditional>
|
|
345
|
84 </when>
|
|
|
85 </conditional>
|
|
392
|
86
|
|
|
87 <param name="gene_format" argument="--gene_format" type="select" label="Gene nomenclature format:">
|
|
|
88 <option value="Default" selected="true">Keep original gene nomenclature</option>
|
|
|
89 <option value="ENSNG">ENSNG (Ensembl Gene ID)</option>
|
|
|
90 <option value="HGNC_SYMBOL">HGNC Symbol</option>
|
|
|
91 <option value="HGNC_ID">HGNC ID</option>
|
|
|
92 <option value="ENTREZ">Entrez Gene ID</option>
|
|
|
93 </param>
|
|
93
|
94 </inputs>
|
|
|
95
|
|
|
96 <outputs>
|
|
387
|
97 <data name="log" format="txt" label="CustomDataGenerator - Log" />
|
|
389
|
98 <data name="out_tabular" format="tabular" label="${cond_model.model_selector}_data_tabular" optional="true"/>
|
|
|
99 </outputs>
|
|
362
|
100
|
|
93
|
101 <help>
|
|
|
102 <![CDATA[
|
|
|
103 What it does
|
|
|
104 -------------
|
|
|
105
|
|
|
106 This tool generates four files containing reactions, rules, reaction bounds and medium composition respectively, starting from a custom model in JSON or XML format.
|
|
|
107 Reactions and rules can be used as inputs for the RAS and RPS generator tools.
|
|
|
108
|
|
|
109 Accepted files:
|
|
381
|
110 - A model: JSON, XML, MAT or YAML (.yml) file reporting reactions and rules contained in the model. Supported compressed formats: .zip, .gz and .bz2. Filename must follow the pattern: {model_name}.{extension}.[zip|gz|bz2]
|
|
93
|
111
|
|
|
112 Output:
|
|
|
113 -------------
|
|
|
114
|
|
|
115 The tool generates:
|
|
|
116 - rules: reporting the rules for each reaction in the custom model given. Format: csv (tab separated).
|
|
|
117 - reactions: reporting the reactions in the custom model given. Format: csv (tab separated).
|
|
|
118 - reaction bounds: reporting the lower and upper bounds of each model reaction. Format: csv (tab separated).
|
|
|
119 - medium composition: reporting the list of exchange/transport reactions. Format: csv (tab separated).
|
|
|
120 - a log file (.txt).
|
|
|
121 ]]>
|
|
|
122 </help>
|
|
|
123 <expand macro="citations" />
|
|
|
124 </tool> |