comparison rpfba.xml @ 0:21349603013a draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 3bc34bfc82850daa2229724c396dcd9454039273-dirty
author tduigou
date Wed, 16 Nov 2022 11:13:10 +0000
parents
children 5d35eea4f75d
comparison
equal deleted inserted replaced
-1:000000000000 0:21349603013a
1 <tool id="rptools_rpfba" name="Flux balance analysis" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="21.09">
2 <description>for the RetroPath2.0 heterologous pathways</description>
3 <macros>
4 <token name="@VERSION_SUFFIX@">0</token>
5 <token name="@TOOL_VERSION@">5.13.1</token>
6 </macros>
7 <requirements>
8 <requirement type="package" version="@TOOL_VERSION@">rptools</requirement>
9 </requirements>
10 <stdio>
11 <regex match="WARNING" level="warning" />
12 <regex match="ERROR" level="fatal" />
13 </stdio>
14 <command detect_errors="exit_code"><![CDATA[
15 python -m rptools.rpfba '$pathway' '$model' '$compartment_id' '$pathway_with_fba'
16 #if str($adv.merge) == "true":
17 --merge
18 #end if
19 --objective_rxn_id '$objective_rxn_id'
20 --sim '$input_sim_type.sim_type'
21 #if str($adv.ignore_orphan_species) == "true":
22 --ignore_orphan_species
23 #end if
24 --log "error"
25 #if str($input_sim_type.sim_type)=="fba"
26 --fraction_of 0.0
27 #else
28 --fraction_of '$input_sim_type.fraction_of'
29 #end if
30 --biomass_rxn_id '$biomass_rxn_id'
31 ]]></command>
32 <inputs>
33 <param name="pathway" type="data" format="sbml" label="Pathway (rpSBML)" />
34 <param name="model" type="data" format="sbml" label="Model (SBML)" />
35 <param name="compartment_id" type="text" label="SBML compartment ID" value="c" >
36 <validator type="empty_field" message="A compartment ID is required"/>
37 </param>
38 <param name="objective_rxn_id" type="text" value="rxn_target" label="Reaction ID to optimise" >
39 <validator type="empty_field" message="Reaction ID is required"/>
40 </param>
41 <param name="biomass_rxn_id" type="text" label="Biomass reaction ID" value="" >
42 <validator type="empty_field" message="Biomass reaction ID is required"/>
43 </param>
44 <conditional name="input_sim_type">
45 <param name="sim_type" type="select" label="Constraint based simulation type">
46 <option value="fraction" selected="true">Fraction of Reaction</option>
47 <option value="fba" >FBA</option>
48 <option value="pfba">Parsimonious FBA</option>
49 </param>
50 <when value="fraction">
51 <param name="fraction_of" type="float" value="0.75" min="0" max="1.0" label="Fraction of the optimum" />
52 </when>
53 <when value="pfba">
54 <param name="fraction_of" type="float" value="0.95" min="0" max="1.0" label="Fraction of the optimum" />
55 </when>
56 <when value="fba">
57 </when>
58 </conditional>
59 <section name="adv" title="Advanced Options" expanded="false">
60 <param name="merge" type="boolean" label="Output the merged model?" checked="false" display="checkboxes" />
61 <param name="ignore_orphan_species" type="boolean" label="Ignore metabolites that are only consumed or produced?" checked="true" />
62 </section>
63 </inputs>
64 <outputs>
65 <data name="pathway_with_fba" format="sbml" label="${tool.name}(${input_sim_type.sim_type}) - ${pathway.name}" />
66 </outputs>
67 <tests>
68 <test>
69 <!-- test 1: check if identical outputs are produced with R_BIOMASS__3 biomass name ID and BiGG model (iCN718) -->
70 <param name="pathway" value="rp_001_0001.xml" />
71 <param name="model" value="iCN718.xml.gz" />
72 <param name="biomass_rxn_id" value="R_BIOMASS__3" />
73 <output name="pathway_with_fba" >
74 <assert_contents>
75 <is_valid_xml />
76 <!--check fba_fraction value-->
77 <has_text text="5.54302" />
78 <!--check fba_biomass value-->
79 <has_text text="1.31359" />
80 <has_n_lines n="408" />
81 </assert_contents>
82 </output>
83 </test>
84 <test>
85 <!-- test 2: check if identical outputs are produced with R_BIOMASS__3 biomass name ID and BiGG model (iCN718) and sim_type=fba-->
86 <param name="pathway" value="rp_001_0001.xml" />
87 <param name="model" value="iCN718.xml.gz" />
88 <param name="biomass_rxn_id" value="R_BIOMASS__3" />
89 <conditional name="input_sim_type">
90 <param name="sim_type" value="fba"/>
91 </conditional>
92 <output name="pathway_with_fba" >
93 <assert_contents>
94 <is_valid_xml />
95 <!--check fba_fba value-->
96 <has_text text="16.47058" />
97 <not_has_text text="fba_fraction" />
98 <has_n_lines n="392" />
99 </assert_contents>
100 </output>
101 </test>
102 <test>
103 <!-- test 3: check if identical outputs are produced with R_DM_biomass_c biomass name ID and BiGG model (iCN718) and sim_type=pfba-->
104 <param name="pathway" value="rp_001_0001.xml" />
105 <param name="model" value="iCN718.xml.gz" />
106 <param name="biomass_rxn_id" value="R_DM_biomass_c" />
107 <conditional name="input_sim_type">
108 <param name="sim_type" value="pfba"/>
109 </conditional>
110 <output name="pathway_with_fba" >
111 <assert_contents>
112 <is_valid_xml />
113 <!--check fba_pfba value-->
114 <has_text text="2623.54248" />
115 <not_has_text text="fba_fraction" />
116 <has_n_lines n="392" />
117 </assert_contents>
118 </output>
119 </test>
120 </tests>
121 <help><![CDATA[
122 FBA
123 =====
124
125
126 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:
127
128 - Merges a user-defined GEM SBML model with each given heterologous pathway individually.
129 - 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".
130
131 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.
132 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.
133 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.
134
135 NOTE: In order to FBA works correctly, some of chemical species have to be ignored. These species are selected according to the following criteria:
136
137 - pathway species has not been found in the model (neither by its ID nor its InChIKey),
138 - the species is not the target, and
139 - the species is only consumed or produced with the heterologue pathway.
140
141 .. image:: https://raw.githubusercontent.com/Galaxy-SynBioCAD/rpFBA/standalone/galaxy/img/rpFBA.png
142 :width: 60 %
143 :align: center
144
145 |
146
147 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.
148
149 Input
150 -----
151
152 Required:
153
154 * **Pathway (rpSBML)**\ : SBML file that contains an heterologous pathway
155 * **Model (SBML)**\ : GEM SBML model file
156 * **Biomass reaction ID**\ : (string) biomass reaction ID that will be restricted in the "fraction" simulation type. This parameter is ignored for "fba" and "pfba"
157
158 Optional:
159
160 * **SBML compartment ID**\ : (string, default='c') Model compartment id (e.g. 'c' or 'MNXC3')
161 * **reaction ID to optimise**\ : (string, default=rxn_target) reaction ID to optimise. This parameters is required in all simulation type
162 * **Constraint based simulation type**\ : (string, default=Fraction of Reaction) The type of constraint based modelling method. Valid options include: Fraction of Reaction, FBA, Parsimonious FBA.
163 * **Fraction of the optimum**\ : (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.
164
165 Advanced options:
166
167 * **Output the merged model?**\ : (boolean, default=False) output the full merged model instead of heterologous pathway only
168 * **Ignore Orphan Species?**\ : (boolean, default=True) ignore metabolites that are only consumed or produced
169
170
171 Project Links
172 ---------------------
173
174 * `GitHub <https://github.com/brsynth/rptools/tree/master/rptools/rpfba>`_
175
176 License
177 -------
178
179 * `MIT <https://github.com/brsynth/rptools/blob/master/LICENSE>`_
180
181 Acknowledgments
182 ---------------
183
184 * Thomas Duigou
185 ]]></help>
186 <creator>
187 <person givenName="Joan" familyName="Hérisson" email="joan.herisson@univ-evry.fr" identifier="https://orcid.org/0000-0001-9741-0847" />
188 <person givenName="Melchior" familyName="du Lac" identifier="https://orcid.org/0000-0002-9984-4689" />
189 </creator>
190 <citations>
191 <citation type="doi">10.1186/1752-0509-7-74</citation>
192 <citation type="doi">10.1515/jib-2016-290 </citation>
193 </citations>
194 </tool>