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