Mercurial > repos > metexplore > met4j
comparison build/tools/SbmlSetNamesFromFile/SbmlSetNamesFromFile.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_SbmlSetNamesFromFile" name="SbmlSetNamesFromFile" version="1.3.0"> | |
| 3 <description>Set names to network objects from a tabulated file containing the object ids and the names</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.SbmlSetNamesFromFile#if str($colname) != 'nan': | |
| 11 -cname "$colname" | |
| 12 #end if | |
| 13 #if str($colid): | |
| 14 -ci "$colid" | |
| 15 #end if | |
| 16 $p | |
| 17 $s | |
| 18 #if str($o): | |
| 19 -o "$o" | |
| 20 #end if | |
| 21 #if str($nSkip): | |
| 22 -n "$nSkip" | |
| 23 #end if | |
| 24 -sbml "$sbml" | |
| 25 #if str($tab) != 'None': | |
| 26 -tab "$tab" | |
| 27 #end if | |
| 28 #if str($c): | |
| 29 -c "$c" | |
| 30 #end if | |
| 31 -out "$out" | |
| 32 ]]></command> | |
| 33 <inputs> | |
| 34 <param argument="-cname" label="[2] number of the column where are the names" name="colname" optional="true" type="integer" value="2"/> | |
| 35 <param argument="-ci" label="[1] number of the column where are the object ids" name="colid" optional="true" type="text" value="1"> | |
| 36 <sanitizer invalid_char="_"> | |
| 37 <valid initial="string.printable"/> | |
| 38 </sanitizer> | |
| 39 </param> | |
| 40 <param argument="-p" checked="false" falsevalue="" label="[deactivated] To match the objects in the sbml file, adds the prefix R_ to reactions and M_ to metabolites" name="p" truevalue="-p" type="boolean" value="false"/> | |
| 41 <param argument="-s" checked="false" falsevalue="" label="[deactivated] To match the objects in the sbml file, adds the suffix _comparmentID to metabolites" name="s" truevalue="-s" type="boolean" value="false"/> | |
| 42 <param argument="-o" label="[REACTION] Object type in the column id : REACTION;METABOLITE;GENE;PATHWAY" name="o" optional="true" type="text" value="REACTION"> | |
| 43 <sanitizer invalid_char="_"> | |
| 44 <valid initial="string.printable"/> | |
| 45 </sanitizer> | |
| 46 </param> | |
| 47 <param argument="-n" label="[0] Number of lines to skip at the beginning of the tabulated file" name="nSkip" optional="true" type="text" value="0"> | |
| 48 <sanitizer invalid_char="_"> | |
| 49 <valid initial="string.printable"/> | |
| 50 </sanitizer> | |
| 51 </param> | |
| 52 <param argument="-sbml" format="sbml" label="Original sbml file" name="sbml" optional="false" type="data" value=""/> | |
| 53 <param argument="-tab" format="tsv" label="Tabulated file" name="tab" optional="true" type="data" value=""/> | |
| 54 <param argument="-c" label="[#] Comment String in the tabulated file. The lines beginning by this string won't be read" name="c" optional="true" type="text" value="#"> | |
| 55 <sanitizer invalid_char="_"> | |
| 56 <valid initial="string.printable"/> | |
| 57 </sanitizer> | |
| 58 </param> | |
| 59 </inputs> | |
| 60 <outputs> | |
| 61 <data format="sbml" name="out"/> | |
| 62 </outputs> | |
| 63 <tests> | |
| 64 <test> | |
| 65 <param name="sbml" value="toy_model.xml"/> | |
| 66 <param name="tab" value="namesMetabolites.tsv"/> | |
| 67 <param name="o" value="METABOLITE"/> | |
| 68 <output ftype="sbml" name="out"> | |
| 69 <assert_contents> | |
| 70 <is_valid_xml/> | |
| 71 <has_line_matching expression=".*metaboliteA.*" n="1"/> | |
| 72 <has_line_matching expression=".*metaboliteB.*" n="1"/> | |
| 73 </assert_contents> | |
| 74 </output> | |
| 75 </test> | |
| 76 <test> | |
| 77 <param name="sbml" value="toy_model.xml"/> | |
| 78 <param name="tab" value="namesReactions.tsv"/> | |
| 79 <output ftype="sbml" name="out"> | |
| 80 <assert_contents> | |
| 81 <is_valid_xml/> | |
| 82 <has_line_matching expression=".*reaction1.*" n="1"/> | |
| 83 <has_line_matching expression=".*reaction2.*" n="1"/> | |
| 84 </assert_contents> | |
| 85 </output> | |
| 86 </test> | |
| 87 <test> | |
| 88 <param name="sbml" value="XF_network.sbml"/> | |
| 89 <param name="tab" value="namesPathways.tsv"/> | |
| 90 <param name="o" value="PATHWAY"/> | |
| 91 <output ftype="sbml" name="out"> | |
| 92 <assert_contents> | |
| 93 <is_valid_xml/> | |
| 94 <has_line_matching expression=".*groups:name=.CEB.*" n="1"/> | |
| 95 <has_line_matching expression=".*groups:name=.NSP.*" n="1"/> | |
| 96 </assert_contents> | |
| 97 </output> | |
| 98 </test> | |
| 99 <test> | |
| 100 <param name="sbml" value="XF_network.sbml"/> | |
| 101 <param name="tab" value="namesGenes.tsv"/> | |
| 102 <param name="o" value="GENE"/> | |
| 103 <output ftype="sbml" name="out"> | |
| 104 <assert_contents> | |
| 105 <is_valid_xml/> | |
| 106 <has_line_matching expression=".*fbc:name=.G1.*" n="1"/> | |
| 107 <has_line_matching expression=".*fbc:name=.G2.*" n="1"/> | |
| 108 </assert_contents> | |
| 109 </output> | |
| 110 </test> | |
| 111 </tests> | |
| 112 <help><![CDATA[Set names to network objects from a tabulated file containing the object ids and the names | |
| 113 The ids must correspond between the tabulated file and the SBML file. | |
| 114 If prefix or suffix is different in the SBML file, use the -p or the -s options. | |
| 115 ]]></help> | |
| 116 <citations/> | |
| 117 </tool> |
