Mercurial > repos > metexplore > met4j
comparison tools/attributes/SetNames/SetNames.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_SetNames" name="SetNames" version="develop"> | |
| 3 <description>Set names to network objects in a SBML file 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:develop</container> | |
| 9 </requirements> | |
| 10 <command detect_errors="exit_code"><![CDATA[sh /usr/bin/met4j.sh attributes.SetNames#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 -t "$o" | |
| 20 #end if | |
| 21 #if str($nSkip): | |
| 22 -n "$nSkip" | |
| 23 #end if | |
| 24 -i "$sbml" | |
| 25 #if str($tab) != 'None': | |
| 26 -tab "$tab" | |
| 27 #end if | |
| 28 #if str($c): | |
| 29 -c "$c" | |
| 30 #end if | |
| 31 -o "$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="-t" 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="-i" format="sbml" label="Original SBML file" name="sbml" optional="false" type="data" value=""/> | |
| 53 <param argument="-tab" format="tsv" label="Input 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 | |
| 66 | |
| 67 | |
| 68 | |
| 69 | |
| 70 | |
| 71 <param name="sbml" value="toy_model.xml"/> | |
| 72 | |
| 73 | |
| 74 | |
| 75 | |
| 76 | |
| 77 | |
| 78 <param name="tab" value="namesMetabolites.tsv"/> | |
| 79 | |
| 80 | |
| 81 | |
| 82 | |
| 83 | |
| 84 | |
| 85 <param name="o" value="METABOLITE"/> | |
| 86 | |
| 87 | |
| 88 | |
| 89 | |
| 90 | |
| 91 | |
| 92 <output ftype="sbml" name="out"> | |
| 93 | |
| 94 | |
| 95 | |
| 96 | |
| 97 | |
| 98 | |
| 99 <assert_contents> | |
| 100 | |
| 101 | |
| 102 | |
| 103 | |
| 104 | |
| 105 | |
| 106 <is_valid_xml/> | |
| 107 | |
| 108 | |
| 109 | |
| 110 | |
| 111 | |
| 112 | |
| 113 <has_line_matching expression=".*metaboliteA.*" n="1"/> | |
| 114 | |
| 115 | |
| 116 | |
| 117 | |
| 118 | |
| 119 | |
| 120 <has_line_matching expression=".*metaboliteB.*" n="1"/> | |
| 121 | |
| 122 | |
| 123 | |
| 124 | |
| 125 | |
| 126 | |
| 127 </assert_contents> | |
| 128 | |
| 129 | |
| 130 | |
| 131 | |
| 132 | |
| 133 | |
| 134 </output> | |
| 135 | |
| 136 | |
| 137 | |
| 138 | |
| 139 | |
| 140 | |
| 141 </test> | |
| 142 <test> | |
| 143 | |
| 144 | |
| 145 | |
| 146 | |
| 147 | |
| 148 | |
| 149 <param name="sbml" value="toy_model.xml"/> | |
| 150 | |
| 151 | |
| 152 | |
| 153 | |
| 154 | |
| 155 | |
| 156 <param name="tab" value="namesReactions.tsv"/> | |
| 157 | |
| 158 | |
| 159 | |
| 160 | |
| 161 | |
| 162 | |
| 163 <output ftype="sbml" name="out"> | |
| 164 | |
| 165 | |
| 166 | |
| 167 | |
| 168 | |
| 169 | |
| 170 <assert_contents> | |
| 171 | |
| 172 | |
| 173 | |
| 174 | |
| 175 | |
| 176 | |
| 177 <is_valid_xml/> | |
| 178 | |
| 179 | |
| 180 | |
| 181 | |
| 182 | |
| 183 | |
| 184 <has_line_matching expression=".*reaction1.*" n="1"/> | |
| 185 | |
| 186 | |
| 187 | |
| 188 | |
| 189 | |
| 190 | |
| 191 <has_line_matching expression=".*reaction2.*" n="1"/> | |
| 192 | |
| 193 | |
| 194 | |
| 195 | |
| 196 | |
| 197 | |
| 198 </assert_contents> | |
| 199 | |
| 200 | |
| 201 | |
| 202 | |
| 203 | |
| 204 | |
| 205 </output> | |
| 206 | |
| 207 | |
| 208 | |
| 209 | |
| 210 | |
| 211 | |
| 212 </test> | |
| 213 <test> | |
| 214 | |
| 215 | |
| 216 | |
| 217 | |
| 218 | |
| 219 | |
| 220 <param name="sbml" value="XF_network.sbml"/> | |
| 221 | |
| 222 | |
| 223 | |
| 224 | |
| 225 | |
| 226 | |
| 227 <param name="tab" value="namesPathways.tsv"/> | |
| 228 | |
| 229 | |
| 230 | |
| 231 | |
| 232 | |
| 233 | |
| 234 <param name="o" value="PATHWAY"/> | |
| 235 | |
| 236 | |
| 237 | |
| 238 | |
| 239 | |
| 240 | |
| 241 <output ftype="sbml" name="out"> | |
| 242 | |
| 243 | |
| 244 | |
| 245 | |
| 246 | |
| 247 | |
| 248 <assert_contents> | |
| 249 | |
| 250 | |
| 251 | |
| 252 | |
| 253 | |
| 254 | |
| 255 <is_valid_xml/> | |
| 256 | |
| 257 | |
| 258 | |
| 259 | |
| 260 | |
| 261 | |
| 262 <has_line_matching expression=".*groups:name=.CEB.*" n="1"/> | |
| 263 | |
| 264 | |
| 265 | |
| 266 | |
| 267 | |
| 268 | |
| 269 <has_line_matching expression=".*groups:name=.NSP.*" n="1"/> | |
| 270 | |
| 271 | |
| 272 | |
| 273 | |
| 274 | |
| 275 | |
| 276 </assert_contents> | |
| 277 | |
| 278 | |
| 279 | |
| 280 | |
| 281 | |
| 282 | |
| 283 </output> | |
| 284 | |
| 285 | |
| 286 | |
| 287 | |
| 288 | |
| 289 | |
| 290 </test> | |
| 291 <test> | |
| 292 | |
| 293 | |
| 294 | |
| 295 | |
| 296 | |
| 297 | |
| 298 <param name="sbml" value="XF_network.sbml"/> | |
| 299 | |
| 300 | |
| 301 | |
| 302 | |
| 303 | |
| 304 | |
| 305 <param name="tab" value="namesGenes.tsv"/> | |
| 306 | |
| 307 | |
| 308 | |
| 309 | |
| 310 | |
| 311 | |
| 312 <param name="o" value="GENE"/> | |
| 313 | |
| 314 | |
| 315 | |
| 316 | |
| 317 | |
| 318 | |
| 319 <output ftype="sbml" name="out"> | |
| 320 | |
| 321 | |
| 322 | |
| 323 | |
| 324 | |
| 325 | |
| 326 <assert_contents> | |
| 327 | |
| 328 | |
| 329 | |
| 330 | |
| 331 | |
| 332 | |
| 333 <is_valid_xml/> | |
| 334 | |
| 335 | |
| 336 | |
| 337 | |
| 338 | |
| 339 | |
| 340 <has_line_matching expression=".*fbc:name=.G1.*" n="1"/> | |
| 341 | |
| 342 | |
| 343 | |
| 344 | |
| 345 | |
| 346 | |
| 347 <has_line_matching expression=".*fbc:name=.G2.*" n="1"/> | |
| 348 | |
| 349 | |
| 350 | |
| 351 | |
| 352 | |
| 353 | |
| 354 </assert_contents> | |
| 355 | |
| 356 | |
| 357 | |
| 358 | |
| 359 | |
| 360 | |
| 361 </output> | |
| 362 | |
| 363 | |
| 364 | |
| 365 | |
| 366 | |
| 367 | |
| 368 </test> | |
| 369 </tests> | |
| 370 <help><![CDATA[Set names to network objects in a SBML file from a tabulated file containing the object ids and the names | |
| 371 The ids must correspond between the tabulated file and the SBML file. | |
| 372 If prefix or suffix is different in the SBML file, use the -p or the -s options. | |
| 373 ]]></help> | |
| 374 <citations/> | |
| 375 </tool> |
