|
540
|
1 <tool id="importMetabolicModel" name="Import Metabolic Model" version="2.0.0">
|
|
541
|
2 <description>Import a tabular model from file format (SBML, JSON, MAT or YAML)</description>
|
|
540
|
3
|
|
|
4 <requirements>
|
|
|
5 <requirement type="package" version="1.24.4">numpy</requirement>
|
|
|
6 <requirement type="package" version="2.0.3">pandas</requirement>
|
|
|
7 <requirement type="package" version="0.29.0">cobra</requirement>
|
|
|
8 <requirement type="package" version="5.2.2">lxml</requirement>
|
|
|
9 </requirements>
|
|
|
10
|
|
|
11 <macros>
|
|
|
12 <import>marea_macros.xml</import>
|
|
|
13 </macros>
|
|
|
14
|
|
|
15 <command detect_errors="exit_code">
|
|
|
16 <![CDATA[
|
|
|
17 python $__tool_directory__/importMetabolicModel.py
|
|
|
18 --tool_dir $__tool_directory__
|
|
|
19 --medium_selector $cond_model.cond_medium.medium_selector
|
|
|
20 #if $cond_model.model_selector == 'Custom_model'
|
|
|
21 --input $cond_model.input
|
|
|
22 --name $cond_model.input.element_identifier
|
|
|
23 --out_tabular $out_tabular_custom
|
|
|
24 #elif $cond_model.model_selector == 'ENGRO2'
|
|
|
25 --model $cond_model.model_selector
|
|
|
26 --name $cond_model.model_selector
|
|
|
27 --out_tabular $out_tabular_engro2
|
|
|
28 #else
|
|
|
29 --model $cond_model.model_selector
|
|
|
30 --name $cond_model.model_selector
|
|
|
31 --out_tabular $out_tabular_recon
|
|
|
32 #end if
|
|
|
33 --gene_format $cond_model.gene_format
|
|
|
34 --out_log $log
|
|
|
35 ]]>
|
|
|
36 </command>
|
|
|
37 <inputs>
|
|
|
38 <conditional name="cond_model">
|
|
|
39 <expand macro="options_model"/>
|
|
|
40
|
|
|
41 <!-- ENGRO2 -->
|
|
|
42 <when value="ENGRO2">
|
|
|
43
|
|
|
44 <conditional name="cond_medium">
|
|
|
45 <expand macro="options_ras_to_bounds_medium"/>
|
|
|
46 </conditional>
|
|
|
47
|
|
|
48 <param name="gene_format" argument="--gene_format" type="select" label="Gene nomenclature format:">
|
|
|
49 <option value="Default" selected="true">Keep original gene nomenclature (HGNC Symbol)</option>
|
|
|
50 <option value="ENSG">ENSG (Ensembl Gene ID)</option>
|
|
|
51 <option value="HGNC_ID">HGNC ID</option>
|
|
|
52 <option value="entrez_id">Entrez Gene ID</option>
|
|
|
53 </param>
|
|
|
54 </when>
|
|
|
55
|
|
|
56 <!-- Recon -->
|
|
|
57 <when value="Recon">
|
|
|
58
|
|
|
59 <conditional name="cond_medium">
|
|
|
60 <param name="medium_selector" argument="--medium_selector" type="select" label="Medium">
|
|
|
61 <option value="Default" selected="true">Default (Recon built-in medium)</option>
|
|
|
62 </param>
|
|
|
63 <when value="Default">
|
|
|
64 <!-- Nessun parametro aggiuntivo necessario -->
|
|
|
65 </when>
|
|
|
66 </conditional>
|
|
|
67 <param name="gene_format" argument="--gene_format" type="select" label="Gene nomenclature format:">
|
|
|
68 <option value="Default" selected="true">Keep original gene nomenclature (HGNC Symbol)</option>
|
|
|
69 <option value="ENSG">ENSG (Ensembl Gene ID)</option>
|
|
|
70 <option value="HGNC_ID">HGNC ID</option>
|
|
|
71 <option value="entrez_id">Entrez Gene ID</option>
|
|
|
72 </param>
|
|
|
73 </when>
|
|
|
74
|
|
|
75 <!-- Custom model -->
|
|
|
76 <when value="Custom_model">
|
|
550
|
77 <param name="input" argument="--input" type="data" format="sbml,json,mat,yaml" label="Custom model file:" />
|
|
540
|
78 <conditional name="cond_medium">
|
|
|
79 <param name="medium_selector" argument="--medium_selector" type="select" label="Medium">
|
|
|
80 <option value="Default" selected="true">Default (custom model medium)</option>
|
|
|
81 </param>
|
|
|
82 <when value="Default">
|
|
|
83 <!-- Nessun parametro aggiuntivo necessario -->
|
|
|
84 </when>
|
|
|
85 </conditional>
|
|
|
86 <param name="gene_format" argument="--gene_format" type="select" label="Gene nomenclature format:">
|
|
|
87 <option value="Default" selected="true">Keep original gene nomenclature</option>
|
|
|
88 <option value="HGNC_symbol">HGNC Symbol</option>
|
|
|
89 <option value="ENSG">ENSG (Ensembl Gene ID)</option>
|
|
|
90 <option value="HGNC_ID">HGNC ID</option>
|
|
|
91 <option value="entrez_id">Entrez Gene ID</option>
|
|
|
92 </param>
|
|
|
93 </when>
|
|
|
94 </conditional>
|
|
|
95
|
|
|
96 </inputs>
|
|
|
97
|
|
|
98 <outputs>
|
|
|
99 <data name="log" format="txt" label="MetabolicModelSetting - Log" />
|
|
|
100
|
|
|
101 <data name="out_tabular_engro2" format="tabular" label="ENGRO2_model_tabular">
|
|
|
102 <filter>cond_model['model_selector'] == 'ENGRO2'</filter>
|
|
|
103 </data>
|
|
|
104
|
|
|
105 <data name="out_tabular_recon" format="tabular" label="Recon_model_tabular">
|
|
|
106 <filter>cond_model['model_selector'] == 'Recon'</filter>
|
|
|
107 </data>
|
|
|
108
|
|
|
109 <data name="out_tabular_custom" format="tabular" label="${cond_model.input.element_identifier}_model_tabular">
|
|
|
110 <filter>cond_model['model_selector'] == 'Custom_model'</filter>
|
|
|
111 </data>
|
|
|
112 </outputs>
|
|
|
113
|
|
|
114 <help>
|
|
|
115 <![CDATA[
|
|
|
116 Overview
|
|
|
117 -------------
|
|
541
|
118 This tool generates a tabular file (.tabular) containing the main information of the metabolic model, starting either from a built-in model or a user-provided model file.
|
|
|
119
|
|
540
|
120 For built-in models, users can select among different nutrient-informed variants (i.e., different media composition) and gene nomenclature formats.
|
|
|
121
|
|
|
122 The generated tabular file can be used as input for tools Expression2RAS, Expression2RPS, RAS2Bounds, Flux Simulation and Export Metabolic Model - within the COBRAxy suite.
|
|
|
123
|
|
|
124 Input parameters:
|
|
|
125 -------------
|
|
|
126
|
|
|
127 The tool has three input parameters:
|
|
541
|
128 - Model: a file containing metabolic information (reactions, metabolites, genes). Ready-to-use models are ENGRO2 and Recon3D. The user can also upload a custom model (see TIP 1).
|
|
540
|
129 - Medium: choose a growth medium typically used for cell culture (see TIP 2 & 3).
|
|
|
130 - Gene nomenclature format: use the original GPR gene names or translate them into another nomenclature.
|
|
|
131
|
|
|
132 Output files:
|
|
|
133 -------------
|
|
|
134
|
|
|
135 The tool generates:
|
|
|
136 - one tabular file (.tabular) containing reaction IDs, reaction formula, GPR rules, reaction bounds, objective function coefficients, pathways in which the reaction is involved and a flag indicating whether the reaction is an exchange reaction (i.e., related to the growth medium).
|
|
|
137 - a log file (.txt).
|
|
|
138
|
|
550
|
139 **TIP 1**: Different input files can be used as the input model. The possible formats are SBML, JSON, MAT or YAML (.yml).
|
|
540
|
140 Supported compressed formats: .zip, .gz and .bz2. Filename must follow the pattern: {model_name}.{extension}.[zip|gz|bz2]
|
|
|
141 More detail can be found at https://cobrapy.readthedocs.io/en/latest/io.html
|
|
|
142
|
|
|
143 **TIP 2**: for pre-existing models ENGRO2 and RECON3D, the user can select the default built-in medium or one of the possible growth medium typically used for cell line cultures.
|
|
|
144 In case no specific information is available, it is possible to set an "OPEN" medium in which all the nutrients are available in unlimited quantity.
|
|
|
145
|
|
|
146 **TIP 3:** Medium composition can be derived from the tabular file. Exchange reactions with `InMedium = TRUE` are included. Nutrient values correspond to the lower bound (e.g., EX_Glc_D_e lower bound -10 → nutrient value 10).
|
|
|
147 More info: [COBRApy Media](https://cobrapy-cdiener.readthedocs.io/en/latest/media.html)
|
|
|
148
|
|
|
149 ]]>
|
|
|
150 </help>
|
|
|
151 <expand macro="citations" />
|
|
|
152
|
|
|
153 </tool>
|
|
|
154
|
|
|
155
|
|
550
|
156
|
|
|
157
|