comparison rpfba.xml @ 0:fb5efc456dcc draft

"planemo upload commit 2f1af427fa4c4f2aad53ab94c4cdb51456c66019-dirty"
author tduigou
date Tue, 23 Nov 2021 16:34:29 +0000
parents
children c554f15279fe
comparison
equal deleted inserted replaced
-1:000000000000 0:fb5efc456dcc
1 <tool id="rpFBA" name="FBA" version="5.9.2">
2 <description>Perform FBA for the RetroPath2.0 heterologous pathways</description>
3 <requirements>
4 <requirement type="package" version="5.9.2">rptools</requirement>
5 </requirements>
6 <stdio>
7 <regex match="WARNING" level="warning" />
8 <regex match="ERROR" level="fatal" />
9 </stdio>
10 <command detect_errors="exit_code"><![CDATA[
11 python -m rptools.rpfba '$pathway' '$model' '$compartment_id' '$pathway_with_fba'
12 #if str($adv.merge) == "true":
13 --merge
14 #end if
15 --objective_rxn_id '$input_sim_type.objective_rxn_id'
16 --sim '$input_sim_type.sim_type'
17 #if str($adv.ignore_orphan_species) == "true":
18 --ignore_orphan_species
19 #end if
20 --log '$adv.log_level'
21 #if str($input_sim_type.sim_type)=="fraction"
22 --biomass_rxn_id '$input_sim_type.biomass_rxn_id'
23 --fraction_of '$input_sim_type.fraction_of'
24 #end if
25 #if str($input_sim_type.sim_type)=="pfba"
26 --biomass_rxn_id ''
27 --fraction_of '$input_sim_type.fraction_of'
28 #end if
29 #if str($input_sim_type.sim_type)=="fba"
30 --biomass_rxn_id ''
31 --fraction_of 0.0
32 #end if
33 ]]></command>
34 <inputs>
35 <param name="pathway" type="data" format="xml" label="Pathway (rpSBML)" />
36 <param name="model" type="data" format="xml" label="Model (SBML)" />
37 <param name="compartment_id" type="text" label="SBML compartment ID" value="MNXC3" />
38 <conditional name="input_sim_type">
39 <param name="sim_type" type="select" label="Constraint based simulation type">
40 <option value="fraction" selected="true">Fraction of Reaction</option>
41 <option value="fba" >FBA</option>
42 <option value="pfba">Parsimonious FBA</option>
43 </param>
44 <when value="fraction">
45 <param name="fraction_of" type="float" value="0.75" label="Fraction of the optimum" />
46 <param name="objective_rxn_id" type="text" value="rxn_target" label="reaction ID to optimise" />
47 <param name="biomass_rxn_id" type="text" value="biomass" label="biomass reaction ID" />
48 </when>
49 <when value="pfba">
50 <param name="fraction_of" type="float" value="0.95" label="Fraction of the optimum" />
51 <param name="objective_rxn_id" type="text" value="rxn_target" label="reaction ID to optimise" />
52 </when>
53 <when value="fba">
54 <param name="objective_rxn_id" type="text" value="rxn_target" label="reaction ID to optimise" />
55 </when>
56 </conditional>
57 <section name="adv" title="Advanced Options" expanded="false">
58 <param name="merge" type="boolean" label="Output the merged model?" checked="false" display="checkboxes" />
59 <param name="ignore_orphan_species" type="boolean" label="Ignore metabolites that are only consumed or produced?" checked="true" />
60 <param name="log_level" type="select" label="Log level">
61 <option value="debug" >debug</option>
62 <option value="info" >info</option>
63 <option value="warning" >warning</option>
64 <option value="error" selected="true">error</option>
65 <option value="critical" >critical</option>
66 </param>
67 </section>
68 </inputs>
69 <outputs>
70 <data name="pathway_with_fba" format="xml" label="${tool.name}(${input_sim_type.sim_type}) - ${pathway.name}" />
71 </outputs>
72 <tests>
73 <test>
74 <!-- test 1: check if identical outputs are produced with default parameters -->
75 <param name="pathway" value="rp_001_0001.xml" />
76 <param name="model" value="e_coli_iML1515.sbml" />
77 <output name="pathway_with_fba" file="rp_001_0001_with_fba.xml" ftype="xml" compare="diff" sort="true"/>
78 </test>
79 </tests>
80 <help><![CDATA[
81 FBA
82 =====
83
84
85 Flux balance analysis is a mathematical approach for analyzing the flow of metabolites through a metabolic network. It is performed for heterologous pathways generated by RetroPath2.0. The tool performs the following steps:
86
87 - Merges a user-defined GEM SBML model with each given heterologous pathway individually.
88 - Performs FBA using the CobraPy package. Three different analysis methods are proposed; two of which are native CobraPy methods - standard FBA and Parsimonious FBA, the other one proposed is an in-house analysis method named "Fraction of Reaction".
89
90 The "Fraction of Reaction" method involves performing FBA using the "Source Reaction" as the objective function (by default the biomass reaction is specified, which refers to the rate at which all of the biomass precursors are made in the correct proportions). Then the flux of that reaction has its upper and lower bounds set to the same value, determined as a "Fraction of the source reaction" (default is 75% of its optimum). Thereafter, the objective is set to the target reaction followed by performing FBA once again. The tool uses the FBC package to manage the objective and flux bounds.
91 For the first two, the user must specify the name(s) of reaction(s) that the model will optimize to, while for the latter the user must provide the target reaction but also another source reaction that will be restricted.
92 Using the Advanced Options, the user can specify the name of the heterologous pathway as created by "Pathways to SBML" and the compartment ID of the heterologous pathway. The user may obtain a merged version of the resulting model, or the heterologous pathway only using the "output the merged model ?" boolean parameter. Using the "Maximize the Objective?", the user may choose to maximize or minimize the objective (biomass production in this case) in the model.
93
94 NOTE: In order to FBA works correctly, some of chemical species have to be ignored. These species are selected according to the following criteria:
95
96 - pathway species has not been found in the model (neither by its ID nor its InChIKey),
97 - the species is not the target, and
98 - the species is only consumed or produced with the heterologue pathway.
99
100 .. image:: https://raw.githubusercontent.com/Galaxy-SynBioCAD/rpFBA/standalone/galaxy/img/rpFBA.png
101 :width: 60 %
102 :align: center
103
104 |
105
106 The above figure illustrates the steps in the tool's calculation of FBA. The pathway is merged with a GEM SBML model and using the FBC package and CobraPy FBA is performed and the fluxes saved to the SBML file.
107
108 Input
109 -----
110
111 Required:
112
113
114 * **pathway_file**\ : (string) SBML file that contains an heterologous pathway
115 * **model_filel**\ : (string) Path to the GEM SBML model
116 * **compartment_id**\ : (string) Model compartment id (e.g. 'c' or 'MNXC3')
117 * **outfile**\ : (string) Path to the output file
118
119 Advanced options:
120
121
122 * **--sim**\ : (string, default=fraction) Valid options include: fraction, fba, pfba. The type of constraint based modelling method
123 * **--biomass_rxn_id**\ : (string, default=biomass) biomass reaction ID that will be restricted in the "fraction" simulation type. This parameter is ignored for "fba" and "pfba"
124 * **--objective_rxn_id**\ : (string, default=rxn_target) reaction ID to optimise. This parameters is required in all simulation type
125 * **--fraction_of**\ : (float, default=0.75) Portion of the maximal flux used to set the maximal and minimal bounds for the source reaction of the "fraction" simulation type
126 * **--merge**\ : (boolean, default=False) output the full merged model instead of heterologous pathway only
127 * **--ignore_orphan_species**\ : (boolean, default=True) ignore metabolites that are only consumed or produced
128 * **--log**: (string, default=error) Set the log level, choices are 'debug', 'info', 'warning', 'error', 'critical'
129
130
131 Project Links
132 ---------------------
133
134 * `GitHub <https://github.com/brsynth/rptools/tree/master/rptools/rpfba>`_
135
136 Version
137 ----------
138
139 5.9.2
140
141 Authors
142 -------
143
144 * **Melchior du Lac**
145 * **Joan Hérisson**
146
147 License
148 -------
149
150 `MIT <https://github.com/brsynth/rptools/blob/master/LICENSE>`_
151
152 Acknowledgments
153 ---------------
154
155
156 * Thomas Duigou
157 ]]></help>
158 <citations>
159 <citation type="bibtex">
160 @article{hucka2016sbml,
161 title={SBML Level 3 package: Groups, Version 1 Release 1},
162 author={Hucka, Michael and Smith, Lucian P},
163 journal={Journal of integrative bioinformatics},
164 volume={13},
165 number={3},
166 pages={8--29},
167 year={2016},
168 publisher={De Gruyter}
169 }
170 </citation>
171 <citation type="bibtex">
172 @article{ebrahim2013cobrapy,
173 title={COBRApy: COnstraints-based reconstruction and analysis for python},
174 author={Ebrahim, Ali and Lerman, Joshua A and Palsson, Bernhard O and Hyduke, Daniel R},
175 journal={BMC systems biology},
176 volume={7},
177 number={1},
178 pages={74},
179 year={2013},
180 publisher={Springer}
181 }
182 </citation>
183 </citations>
184 </tool>