Mercurial > repos > metexplore > met4j
comparison tools/attributes/SetReferences/SetReferences.xml @ 9:0976a6257300 draft
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 05db35f63cadb9d56dafff594a3507c59cd85273
| author | metexplore |
|---|---|
| date | Fri, 31 Jan 2025 18:28:53 +0000 |
| parents | |
| children | 6a112eaf8f38 |
comparison
equal
deleted
inserted
replaced
| 8:1274e2a62479 | 9:0976a6257300 |
|---|---|
| 1 <?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
| 2 <tool id="met4j_SetReferences" name="SetReferences" version="develop"> | |
| 3 <description>Add references to network objects in a SBML file from a tabulated file containing the metabolite ids and the references</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:develop</container> | |
| 9 </requirements> | |
| 10 <command detect_errors="exit_code"><![CDATA[sh /usr/bin/met4j.sh attributes.SetReferences#if str($colRef) != 'nan': | |
| 11 -cr "$colRef" | |
| 12 #end if | |
| 13 -ref "$ref" | |
| 14 #if str($colid): | |
| 15 -ci "$colid" | |
| 16 #end if | |
| 17 $p | |
| 18 $s | |
| 19 #if str($o): | |
| 20 -t "$o" | |
| 21 #end if | |
| 22 #if str($nSkip): | |
| 23 -n "$nSkip" | |
| 24 #end if | |
| 25 -i "$sbml" | |
| 26 #if str($tab) != 'None': | |
| 27 -tab "$tab" | |
| 28 #end if | |
| 29 #if str($c): | |
| 30 -c "$c" | |
| 31 #end if | |
| 32 -o "$out" | |
| 33 ]]></command> | |
| 34 <inputs> | |
| 35 <param argument="-cr" label="[2] number of the column where are the references" name="colRef" optional="true" type="integer" value="2"/> | |
| 36 <param argument="-ref" label="Name of the reference. Must exist in identifiers.org (https://registry.identifiers.org/registry)" name="ref" optional="false" type="text" value=""> | |
| 37 <sanitizer invalid_char="_"> | |
| 38 <valid initial="string.printable"/> | |
| 39 </sanitizer> | |
| 40 </param> | |
| 41 <param argument="-ci" label="[1] number of the column where are the object ids" name="colid" optional="true" type="text" value="1"> | |
| 42 <sanitizer invalid_char="_"> | |
| 43 <valid initial="string.printable"/> | |
| 44 </sanitizer> | |
| 45 </param> | |
| 46 <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"/> | |
| 47 <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"/> | |
| 48 <param argument="-t" label="[REACTION] Object type in the column id : REACTION;METABOLITE;GENE;PATHWAY" name="o" optional="true" type="text" value="REACTION"> | |
| 49 <sanitizer invalid_char="_"> | |
| 50 <valid initial="string.printable"/> | |
| 51 </sanitizer> | |
| 52 </param> | |
| 53 <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"> | |
| 54 <sanitizer invalid_char="_"> | |
| 55 <valid initial="string.printable"/> | |
| 56 </sanitizer> | |
| 57 </param> | |
| 58 <param argument="-i" format="sbml" label="Original SBML file" name="sbml" optional="false" type="data" value=""/> | |
| 59 <param argument="-tab" format="tsv" label="Input Tabulated file" name="tab" optional="true" type="data" value=""/> | |
| 60 <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="#"> | |
| 61 <sanitizer invalid_char="_"> | |
| 62 <valid initial="string.printable"/> | |
| 63 </sanitizer> | |
| 64 </param> | |
| 65 </inputs> | |
| 66 <outputs> | |
| 67 <data format="sbml" name="out"/> | |
| 68 </outputs> | |
| 69 <tests> | |
| 70 <test> | |
| 71 | |
| 72 | |
| 73 | |
| 74 | |
| 75 | |
| 76 | |
| 77 <param name="sbml" value="toy_model.xml"/> | |
| 78 | |
| 79 | |
| 80 | |
| 81 | |
| 82 | |
| 83 | |
| 84 <param name="tab" value="refs.tsv"/> | |
| 85 | |
| 86 | |
| 87 | |
| 88 | |
| 89 | |
| 90 | |
| 91 <param name="ref" value="InChi"/> | |
| 92 | |
| 93 | |
| 94 | |
| 95 | |
| 96 | |
| 97 | |
| 98 <param name="o" value="METABOLITE"/> | |
| 99 | |
| 100 | |
| 101 | |
| 102 | |
| 103 | |
| 104 | |
| 105 <output ftype="sbml" name="out"> | |
| 106 | |
| 107 | |
| 108 | |
| 109 | |
| 110 | |
| 111 | |
| 112 <assert_contents> | |
| 113 | |
| 114 | |
| 115 | |
| 116 | |
| 117 | |
| 118 | |
| 119 <is_valid_xml/> | |
| 120 | |
| 121 | |
| 122 | |
| 123 | |
| 124 | |
| 125 | |
| 126 <has_line_matching expression=".*C2H6O.*" n="3"/> | |
| 127 | |
| 128 | |
| 129 | |
| 130 | |
| 131 | |
| 132 | |
| 133 <has_line_matching expression=".*C6H8O6.*" n="1"/> | |
| 134 | |
| 135 | |
| 136 | |
| 137 | |
| 138 | |
| 139 | |
| 140 </assert_contents> | |
| 141 | |
| 142 | |
| 143 | |
| 144 | |
| 145 | |
| 146 | |
| 147 </output> | |
| 148 | |
| 149 | |
| 150 | |
| 151 | |
| 152 | |
| 153 | |
| 154 </test> | |
| 155 </tests> | |
| 156 <help><![CDATA[Add references to network objects in a SBML file from a tabulated file containing the metabolite ids and the references | |
| 157 Reference name given as parameter (-ref) must correspond to an existing id in the registry of identifiers.org (https://registry.identifiers.org/registry) | |
| 158 The corresponding key:value pair will be written as metabolite or reaction MIRIAM annotation (see https://pubmed.ncbi.nlm.nih.gov/16333295/)]]></help> | |
| 159 <citations> | |
| 160 <citation type="doi">10.1038/nbt1156</citation> | |
| 161 </citations> | |
| 162 </tool> |
