Mercurial > repos > metexplore > met4j_setnames
comparison SetNames.xml @ 0:781a75338fba draft
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit e28ca123295d50b85ba872e5a4720fd72697ecc3
| author | metexplore |
|---|---|
| date | Thu, 13 Mar 2025 15:51:56 +0000 |
| parents | |
| children | d4c80ff95a3e |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:781a75338fba |
|---|---|
| 1 <?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
| 2 <tool id="met4j_SetNames" name="SetNames" version="@TOOL_VERSION@"> | |
| 3 <description>Set names to network objects in a SBML file from a tabulated file containing the object ids and the names</description> | |
| 4 <macros> | |
| 5 <import>macros.xml</import> | |
| 6 </macros> | |
| 7 <expand macro="bio_tools"/> | |
| 8 <expand macro="requirements"/> | |
| 9 <command detect_errors="exit_code"><![CDATA[met4j fr.inrae.toulouse.metexplore.met4j_toolbox.attributes.SetNames#if str($colname) != 'nan': | |
| 10 -cname "$colname" | |
| 11 #end if | |
| 12 #if str($colid): | |
| 13 -ci "$colid" | |
| 14 #end if | |
| 15 $p | |
| 16 $s | |
| 17 #if str($o): | |
| 18 -t "$o" | |
| 19 #end if | |
| 20 #if str($nSkip): | |
| 21 -n "$nSkip" | |
| 22 #end if | |
| 23 -i "$sbml" | |
| 24 #if str($tab) != 'None': | |
| 25 -tab "$tab" | |
| 26 #end if | |
| 27 #if str($c): | |
| 28 -c "$c" | |
| 29 #end if | |
| 30 -o "$out" | |
| 31 ]]></command> | |
| 32 <inputs> | |
| 33 <param argument="-cname" label="[2] number of the column where are the names" name="colname" optional="true" type="integer" value="2"/> | |
| 34 <param argument="-ci" label="[1] number of the column where are the object ids" name="colid" optional="true" type="text" value="1"> | |
| 35 <sanitizer invalid_char="_"> | |
| 36 <valid initial="string.printable"/> | |
| 37 </sanitizer> | |
| 38 </param> | |
| 39 <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"/> | |
| 40 <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"/> | |
| 41 <param argument="-t" label="[REACTION] Object type in the column id : REACTION;METABOLITE;GENE;PATHWAY" name="o" optional="true" type="text" value="REACTION"> | |
| 42 <sanitizer invalid_char="_"> | |
| 43 <valid initial="string.printable"/> | |
| 44 </sanitizer> | |
| 45 </param> | |
| 46 <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"> | |
| 47 <sanitizer invalid_char="_"> | |
| 48 <valid initial="string.printable"/> | |
| 49 </sanitizer> | |
| 50 </param> | |
| 51 <param argument="-i" format="sbml" label="Original SBML file" name="sbml" optional="false" type="data" value=""/> | |
| 52 <param argument="-tab" format="tsv" label="Input Tabulated file" name="tab" optional="true" type="data" value=""/> | |
| 53 <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="#"> | |
| 54 <sanitizer invalid_char="_"> | |
| 55 <valid initial="string.printable"/> | |
| 56 </sanitizer> | |
| 57 </param> | |
| 58 </inputs> | |
| 59 <outputs> | |
| 60 <data format="sbml" name="out"/> | |
| 61 </outputs> | |
| 62 <tests> | |
| 63 <test> | |
| 64 <param name="sbml" value="toy_model.xml"/> | |
| 65 <param name="tab" value="namesMetabolites.tsv"/> | |
| 66 <param name="o" value="METABOLITE"/> | |
| 67 <output ftype="sbml" name="out"> | |
| 68 <assert_contents> | |
| 69 <is_valid_xml/> | |
| 70 <has_line_matching expression=".*metaboliteA.*" n="1"/> | |
| 71 <has_line_matching expression=".*metaboliteB.*" n="1"/> | |
| 72 </assert_contents> | |
| 73 </output> | |
| 74 </test> | |
| 75 <test> | |
| 76 <param name="sbml" value="toy_model.xml"/> | |
| 77 <param name="tab" value="namesReactions.tsv"/> | |
| 78 <output ftype="sbml" name="out"> | |
| 79 <assert_contents> | |
| 80 <is_valid_xml/> | |
| 81 <has_line_matching expression=".*reaction1.*" n="1"/> | |
| 82 <has_line_matching expression=".*reaction2.*" n="1"/> | |
| 83 </assert_contents> | |
| 84 </output> | |
| 85 </test> | |
| 86 <test> | |
| 87 <param name="sbml" value="XF_network.sbml"/> | |
| 88 <param name="tab" value="namesPathways.tsv"/> | |
| 89 <param name="o" value="PATHWAY"/> | |
| 90 <output ftype="sbml" name="out"> | |
| 91 <assert_contents> | |
| 92 <is_valid_xml/> | |
| 93 <has_line_matching expression=".*groups:name=.CEB.*" n="1"/> | |
| 94 <has_line_matching expression=".*groups:name=.NSP.*" n="1"/> | |
| 95 </assert_contents> | |
| 96 </output> | |
| 97 </test> | |
| 98 <test> | |
| 99 <param name="sbml" value="XF_network.sbml"/> | |
| 100 <param name="tab" value="namesGenes.tsv"/> | |
| 101 <param name="o" value="GENE"/> | |
| 102 <output ftype="sbml" name="out"> | |
| 103 <assert_contents> | |
| 104 <is_valid_xml/> | |
| 105 <has_line_matching expression=".*fbc:name=.G1.*" n="1"/> | |
| 106 <has_line_matching expression=".*fbc:name=.G2.*" n="1"/> | |
| 107 </assert_contents> | |
| 108 </output> | |
| 109 </test> | |
| 110 </tests> | |
| 111 <help><![CDATA[Set names to network objects in a SBML file from a tabulated file containing the object ids and the names | |
| 112 The ids must correspond between the tabulated file and the SBML file. | |
| 113 If prefix or suffix is different in the SBML file, use the -p or the -s options. | |
| 114 @ATTRIBUTION@]]></help> | |
| 115 <citations/> | |
| 116 </tool> |
