comparison build/tools/GetReactantsFromReactions/GetReactantsFromReactions.xml @ 6:7a6f2380fc1d draft

planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
author metexplore
date Wed, 17 May 2023 13:26:37 +0000
parents
children 1436e9cde9c9
comparison
equal deleted inserted replaced
5:35c9abcd8934 6:7a6f2380fc1d
1 <?xml version="1.0" encoding="UTF-8"?>
2 <tool id="met4j_GetReactantsFromReactions" name="GetReactantsFromReactions" version="1.3.0">
3 <description>Get reactants lists from a list of reactions and a GSMN.</description>
4 <xrefs>
5 <xref type="bio.tools">met4j</xref>
6 </xrefs>
7 <requirements>
8 <container type="singularity">oras://registry.forgemia.inra.fr/metexplore/met4j/met4j-singularity:1.3.0</container>
9 </requirements>
10 <command detect_errors="exit_code"><![CDATA[sh /usr/bin/met4j.sh attributes.GetReactantsFromReactions -i "$sbml"
11 -r "$reactionFile"
12 #if str($sep):
13 -sep "$sep"
14 #end if
15 $hasHeader
16 #if str($i) != 'nan':
17 -col "$i"
18 #end if
19 $printSubstrates
20 $printProducts
21 -o "$outputFile"
22 ]]></command>
23 <inputs>
24 <param argument="-i" format="sbml" label="Input SBML file" name="sbml" optional="false" type="data" value=""/>
25 <param argument="-r" format="tsv" label="Input Reaction file" name="reactionFile" optional="false" type="data" value=""/>
26 <param argument="-sep" label="Separator in reaction file" name="sep" optional="true" type="text" value="&#9;">
27 <sanitizer invalid_char="_">
28 <valid initial="string.printable"/>
29 </sanitizer>
30 </param>
31 <param argument="-header" checked="false" falsevalue="" label="Skip reaction file header" name="hasHeader" truevalue="-header" type="boolean" value="false"/>
32 <param argument="-col" label="Column number in reaction file (first as 1)" name="i" optional="true" type="integer" value="1"/>
33 <param argument="-s" checked="false" falsevalue="" label="Extract substrates only" name="printSubstrates" truevalue="-s" type="boolean" value="false"/>
34 <param argument="-p" checked="false" falsevalue="" label="Extract products only" name="printProducts" truevalue="-p" type="boolean" value="false"/>
35 </inputs>
36 <outputs>
37 <data format="tsv" name="outputFile"/>
38 </outputs>
39 <tests>
40 <test>
41 <param name="sbml" value="XF_network.sbml"/>
42 <param name="reactionFile" value="XF_network_R_Seed.tab"/>
43 <output ftype="tsv" name="outputFile">
44 <assert_contents>
45 <has_text_matching expression="R_GLUN" n="4"/>
46 <has_text_matching expression="R_ACGS" n="5"/>
47 </assert_contents>
48 </output>
49 </test>
50 <test>
51 <param name="sbml" value="XF_network.sbml"/>
52 <param name="reactionFile" value="XF_network_R_Seed.tab"/>
53 <param name="printSubstrates" value="true"/>
54 <output ftype="tsv" name="outputFile">
55 <assert_contents>
56 <has_text_matching expression="R_GLUN" n="2"/>
57 <has_text_matching expression="R_ACGS" n="5"/>
58 </assert_contents>
59 </output>
60 </test>
61 <test>
62 <param name="sbml" value="XF_network.sbml"/>
63 <param name="reactionFile" value="XF_network_R_Seed.tab"/>
64 <param name="printProducts" value="true"/>
65 <output ftype="tsv" name="outputFile">
66 <assert_contents>
67 <has_text_matching expression="R_GLUN" n="2"/>
68 <has_text_matching expression="R_ACGS" n="5"/>
69 </assert_contents>
70 </output>
71 </test>
72 </tests>
73 <help><![CDATA[Get reactants lists from a list of reactions and a GSMN. Output a tab-separated file with one row per reactant, reaction identifiers in first column, reactant identifiers in second column. It can provides substrates, products, or both (by default). In the case of reversible reactions, all reactants are considered both substrates and products]]></help>
74 <citations/>
75 </tool>