Next changeset 1:19be43e96154 (2022-02-01) |
Commit message:
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rpfba commit fa5ae809fac45d020ee3f069f775f0f7f7c2c70b" |
added:
rpfba.xml test-data/iCN718.xml.gz test-data/rp_001_0001.xml |
b |
diff -r 000000000000 -r 12689dfad4d1 rpfba.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/rpfba.xml Mon Jan 17 11:55:50 2022 +0000 |
[ |
b'@@ -0,0 +1,213 @@\n+<tool id="rpfba" name="Flux balance analysis" version="@TOOL_VERSION@" profile="19.09">\n+ <description>for the RetroPath2.0 heterologous pathways</description>\n+ <macros>\n+ <token name="@TOOL_VERSION@">5.11.1</token>\n+ </macros>\n+ <requirements>\n+ <requirement type="package" version="@TOOL_VERSION@">rptools</requirement>\n+ </requirements>\n+ <stdio>\n+ <regex match="WARNING" level="warning" />\n+ <regex match="ERROR" level="fatal" />\n+ </stdio>\n+ <command detect_errors="exit_code"><![CDATA[\n+ python -m rptools.rpfba \'$pathway\' \'$model\' \'$compartment_id\' \'$pathway_with_fba\'\n+ #if str($adv.merge) == "true":\n+ --merge\n+ #end if\n+ --objective_rxn_id \'$input_sim_type.objective_rxn_id\'\n+ --sim \'$input_sim_type.sim_type\'\n+ #if str($adv.ignore_orphan_species) == "true":\n+ --ignore_orphan_species\n+ #end if\n+ --log "error"\n+ #if str($input_sim_type.sim_type)=="fraction"\n+ --biomass_rxn_id \'$biomass_rxn_id\'\n+ --fraction_of \'$input_sim_type.fraction_of\'\n+ #end if\n+ #if str($input_sim_type.sim_type)=="pfba"\n+ --biomass_rxn_id \'$biomass_rxn_id\'\n+ --fraction_of \'$input_sim_type.fraction_of\'\n+ #end if\n+ #if str($input_sim_type.sim_type)=="fba"\n+ --biomass_rxn_id \'$biomass_rxn_id\'\n+ --fraction_of 0.0\n+ #end if\n+ ]]></command>\n+ <inputs>\n+ <param name="pathway" type="data" format="sbml" label="Pathway (rpSBML)" />\n+ <param name="model" type="data" format="sbml" label="Model (SBML)" />\n+ <param name="compartment_id" type="text" label="SBML compartment ID" value="MNXC3" >\n+ <validator type="empty_field" message="A compartment ID is required"/>\n+ </param>\n+ <conditional name="input_sim_type">\n+ <param name="sim_type" type="select" label="Constraint based simulation type">\n+ <option value="fraction" selected="true">Fraction of Reaction</option>\n+ <option value="fba" >FBA</option>\n+ <option value="pfba">Parsimonious FBA</option>\n+ </param>\n+ <when value="fraction">\n+ <param name="fraction_of" type="float" value="0.75" min="0" max="1.0" label="Fraction of the optimum" />\n+ <param name="objective_rxn_id" type="text" value="rxn_target" label="reaction ID to optimise" >\n+ <validator type="empty_field" message="Reaction ID is required"/>\n+ </param>\n+ </when>\n+ <when value="pfba">\n+ <param name="fraction_of" type="float" value="0.95" min="0" max="1.0" label="Fraction of the optimum" />\n+ <param name="objective_rxn_id" type="text" value="rxn_target" label="reaction ID to optimise" >\n+ <validator type="empty_field" message="Reaction ID is required"/>\n+ </param>\n+ </when>\n+ <when value="fba">\n+ <param name="objective_rxn_id" type="text" value="rxn_target" label="reaction ID to optimise" >\n+ <validator type="empty_field" message="Reaction ID is required"/>\n+ </param>\n+ </when>\n+ </conditional>\n+ <param name="biomass_rxn_id" type="text" value="biomass" label="biomass reaction ID" >\n+ <validator type="empty_field" message="Biomass reaction ID is required"/>\n+ </param>\n+ <section name="adv" title="Advanced Options" expanded="false">\n+ <param name="merge" type="boolean" label="Output the merged model?" checked="false" display="checkboxes" />\n+ <param name="ignore_orphan_species" type="boolean" label="Ignore metabolites that are only consumed or produced?" checked="true" />\n+ </section>\n+ </inpu'..b' 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".\n+\n+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.\n+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.\n+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.\n+\n+NOTE: In order to FBA works correctly, some of chemical species have to be ignored. These species are selected according to the following criteria:\n+\n+- pathway species has not been found in the model (neither by its ID nor its InChIKey),\n+- the species is not the target, and\n+- the species is only consumed or produced with the heterologue pathway.\n+\n+.. image:: https://raw.githubusercontent.com/Galaxy-SynBioCAD/rpFBA/standalone/galaxy/img/rpFBA.png\n+ :width: 60 %\n+ :align: center\n+\n+|\n+\n+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.\n+\n+Input\n+-----\n+\n+Required:\n+\n+\n+* **pathway_file**\\ : (string) SBML file that contains an heterologous pathway\n+* **model_filel**\\ : (string) Path to the GEM SBML model\n+* **compartment_id**\\ : (string) Model compartment id (e.g. \'c\' or \'MNXC3\')\n+* **outfile**\\ : (string) Path to the output file\n+\n+Advanced options:\n+\n+\n+* **--sim**\\ : (string, default=fraction) Valid options include: fraction, fba, pfba. The type of constraint based modelling method\n+* **--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"\n+* **--objective_rxn_id**\\ : (string, default=rxn_target) reaction ID to optimise. This parameters is required in all simulation type\n+* **--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\n+* **--merge**\\ : (boolean, default=False) output the full merged model instead of heterologous pathway only\n+* **--ignore_orphan_species**\\ : (boolean, default=True) ignore metabolites that are only consumed or produced\n+* **--log**: (string, default=error) Set the log level, choices are \'debug\', \'info\', \'warning\', \'error\', \'critical\'\n+\n+\n+Project Links\n+---------------------\n+\n+* `GitHub <https://github.com/brsynth/rptools/tree/master/rptools/rpfba>`_\n+\n+Version\n+----------\n+\n+5.11.1\n+\n+Authors\n+-------\n+\n+* **Melchior du Lac**\n+* **Joan H\xc3\xa9risson**\n+\n+License\n+-------\n+\n+`MIT <https://github.com/brsynth/rptools/blob/master/LICENSE>`_\n+\n+Acknowledgments\n+---------------\n+\n+* Thomas Duigou\n+ ]]></help>\n+ <citations>\n+ <citation type="doi">10.1186/1752-0509-7-74</citation>\n+ <citation type="doi">10.1515/jib-2016-290 </citation> \n+ </citations>\n+</tool>\n' |
b |
diff -r 000000000000 -r 12689dfad4d1 test-data/iCN718.xml.gz |
b |
Binary file test-data/iCN718.xml.gz has changed |
b |
diff -r 000000000000 -r 12689dfad4d1 test-data/rp_001_0001.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/rp_001_0001.xml Mon Jan 17 11:55:50 2022 +0000 |
[ |
b'@@ -0,0 +1,363 @@\n+<?xml version="1.0" encoding="UTF-8"?>\n+<sbml xmlns="http://www.sbml.org/sbml/level3/version1/core" xmlns:groups="http://www.sbml.org/sbml/level3/version1/groups/version1" xmlns:fbc="http://www.sbml.org/sbml/level3/version1/fbc/version2" level="3" version="1" groups:required="false" fbc:required="false">\n+ <model metaid="a03e1bf0f20b54a66f7b4ce262ea6b0f7579c0a1e47144a649b9e2e711f6b3ed" id="RP_model_001_0001" name="001_0001" substanceUnits="mole" timeUnits="second" extentUnits="mole" fbc:strict="true">\n+ <listOfCompartments>\n+ <compartment metaid="_2e7d2c03a9507ae265ecf5b5356885a53393a2029d241394997265a1a25aefc6" sboTerm="SBO:0000290" id="c" name="cytosol" size="1" constant="true">\n+ <annotation>\n+ <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:bqbiol="http://biomodels.net/biology-qualifiers/">\n+ <rdf:Description rdf:about="#_2e7d2c03a9507ae265ecf5b5356885a53393a2029d241394997265a1a25aefc6">\n+ <bqbiol:is>\n+ <rdf:Bag>\n+ <rdf:li rdf:resource="http://identifiers.org/bigg.compartment/c"/>\n+ <rdf:li rdf:resource="http://identifiers.org/bigg.compartment/c_c"/>\n+ <rdf:li rdf:resource="http://identifiers.org/metanetx.compartment/MNXC3"/>\n+ <rdf:li rdf:resource="http://identifiers.org/seed/c"/>\n+ <rdf:li rdf:resource="http://identifiers.org/seed/c0"/>\n+ <rdf:li rdf:resource="http://identifiers.org/seed/cytosol"/>\n+ <rdf:li rdf:resource="http://identifiers.org/name/cytosol"/>\n+ </rdf:Bag>\n+ </bqbiol:is>\n+ </rdf:Description>\n+ </rdf:RDF>\n+ </annotation>\n+ </compartment>\n+ </listOfCompartments>\n+ <listOfSpecies>\n+ <species metaid="_6817bb5f7133f50744b232330f1f3009343f785b8f77602ce5f44cdd9458f002" id="TARGET_0000000001" name="TARGET_0000000001" compartment="c" initialConcentration="1" hasOnlySubstanceUnits="false" boundaryCondition="false" constant="false">\n+ <annotation>\n+ <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:bqbiol="http://biomodels.net/biology-qualifiers/">\n+ <rdf:Description rdf:about="#_6817bb5f7133f50744b232330f1f3009343f785b8f77602ce5f44cdd9458f002">\n+ <bqbiol:is>\n+ <rdf:Bag/>\n+ </bqbiol:is>\n+ </rdf:Description>\n+ <rdf:BRSynth rdf:about="#_6817bb5f7133f50744b232330f1f3009343f785b8f77602ce5f44cdd9458f002">\n+ <brsynth:brsynth xmlns:brsynth="http://brsynth.eu">\n+ <brsynth:smiles value="[H]C(=C([H])C([H])=C(C([H])=C([H])C([H])=C(C([H])=C([H])C([H])=C(C([H])([H])[H])C([H])([H])C([H])([H])C([H])=C(C([H])([H])[H])C([H])([H])[H])C([H])([H])[H])C([H])([H])[H])C([H])=C(C([H])=C([H])C([H])=C(C([H])=C([H])C([H])=C(C([H])([H])[H])C([H])([H])C([H])([H])C([H])=C(C([H])([H])[H])C([H])([H])[H])C([H])([H])[H])C([H])([H])[H]"/>\n+ <brsynth:inchi value="InChI=1S/C40H56/c1-33(2)19-13-23-37(7)27-17-31-39(9)29-15-25-35(5)21-11-12-22-36(6)26-16-30-40(10)32-18-28-38(8)24-14-20-34(3)4/h11-12,15-22,25-32H,13-14,23-24H2,1-10H3"/>\n+ <brsynth:inchikey value="OAIJSZIZWZSQBC-UHFFFAOYSA-N"/>\n+ </brsynth:brsynth>\n+ </rdf:BRSynth>\n+ </rdf:RDF>\n+ </annotation>\n+ </species>\n+ <species metaid="_47d72a86d31940edf1cc42c7a7361a7a96211dc2a6679326b8ad27a7e216ada0" id="MNXM83" name="isopentenyl diphosphate" compartment="c" initialConcentration="1" hasOnlySubstanceUnits="false" boundaryCondition="false" constant="false">\n+ <annotation>\n+ <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:bqbiol="http://biomodels.net/biology-qualifiers/">\n+ <rdf:Description rdf:about="#_47d72a86d31940edf1cc42c7a7361a7a96211dc2a6679326b8ad27a7e216ada0">\n+ <bqbiol:is>\n+ <rdf:Bag/>\n+ </bqbiol:'..b':rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:bqbiol="http://biomodels.net/biology-qualifiers/">\n+ <rdf:BRSynth rdf:about="#_93eef40c447d295fa61df9270c5fd909ec2ba7ee9883090552c0466873cd4299">\n+ <brsynth:brsynth xmlns:brsynth="http://brsynth.eu">\n+ <brsynth:global_score value="-1"/>\n+ </brsynth:brsynth>\n+ </rdf:BRSynth>\n+ </rdf:RDF>\n+ </annotation>\n+ <groups:listOfMembers>\n+ <groups:member groups:idRef="rxn_1"/>\n+ <groups:member groups:idRef="rxn_2"/>\n+ <groups:member groups:idRef="rxn_3"/>\n+ </groups:listOfMembers>\n+ </groups:group>\n+ <groups:group metaid="_613b064337553014ede418c67180137a4561ff11b13f3bfa1a2765ef37ac375a" groups:id="rp_intermediate_species" groups:kind="collection">\n+ <annotation>\n+ <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:bqbiol="http://biomodels.net/biology-qualifiers/">\n+ <rdf:BRSynth rdf:about="#_613b064337553014ede418c67180137a4561ff11b13f3bfa1a2765ef37ac375a">\n+ <brsynth:brsynth xmlns:brsynth="http://brsynth.eu"/>\n+ </rdf:BRSynth>\n+ </rdf:RDF>\n+ </annotation>\n+ <groups:listOfMembers>\n+ <groups:member groups:idRef="CMPD_0000000003"/>\n+ <groups:member groups:idRef="CMPD_0000000001"/>\n+ </groups:listOfMembers>\n+ </groups:group>\n+ <groups:group metaid="_564fce39b23c6cf87d12dc2c612448384fd2cd980fe3fc07829e2ef802645579" groups:id="rp_trunk_species" groups:kind="collection">\n+ <annotation>\n+ <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:bqbiol="http://biomodels.net/biology-qualifiers/">\n+ <rdf:BRSynth rdf:about="#_564fce39b23c6cf87d12dc2c612448384fd2cd980fe3fc07829e2ef802645579">\n+ <brsynth:brsynth xmlns:brsynth="http://brsynth.eu"/>\n+ </rdf:BRSynth>\n+ </rdf:RDF>\n+ </annotation>\n+ <groups:listOfMembers>\n+ <groups:member groups:idRef="TARGET_0000000001"/>\n+ <groups:member groups:idRef="MNXM83"/>\n+ <groups:member groups:idRef="CMPD_0000000001"/>\n+ <groups:member groups:idRef="MNXM132"/>\n+ <groups:member groups:idRef="CMPD_0000000003"/>\n+ </groups:listOfMembers>\n+ </groups:group>\n+ <groups:group metaid="_9e3154173c97366b3980dd1642e1e35d0bdfc3274abc744e89ecb518bcd48378" groups:id="rp_completed_species" groups:kind="collection">\n+ <annotation>\n+ <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:bqbiol="http://biomodels.net/biology-qualifiers/">\n+ <rdf:BRSynth rdf:about="#_9e3154173c97366b3980dd1642e1e35d0bdfc3274abc744e89ecb518bcd48378">\n+ <brsynth:brsynth xmlns:brsynth="http://brsynth.eu"/>\n+ </rdf:BRSynth>\n+ </rdf:RDF>\n+ </annotation>\n+ <groups:listOfMembers>\n+ <groups:member groups:idRef="MNXM8975"/>\n+ <groups:member groups:idRef="MNXM24"/>\n+ <groups:member groups:idRef="MNXM11"/>\n+ </groups:listOfMembers>\n+ </groups:group>\n+ <groups:group metaid="_58b3b59284e0d918d6d3f3bcadc2d757726da7594cd899cad4e745836ac967a3" groups:id="rp_sink_species" groups:kind="collection">\n+ <annotation>\n+ <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:bqbiol="http://biomodels.net/biology-qualifiers/">\n+ <rdf:BRSynth rdf:about="#_58b3b59284e0d918d6d3f3bcadc2d757726da7594cd899cad4e745836ac967a3">\n+ <brsynth:brsynth xmlns:brsynth="http://brsynth.eu"/>\n+ </rdf:BRSynth>\n+ </rdf:RDF>\n+ </annotation>\n+ <groups:listOfMembers>\n+ <groups:member groups:idRef="MNXM83"/>\n+ <groups:member groups:idRef="MNXM132"/>\n+ <groups:member groups:idRef="MNXM11"/>\n+ </groups:listOfMembers>\n+ </groups:group>\n+ </groups:listOfGroups>\n+ </model>\n+</sbml>\n' |