Mercurial > repos > metexplore > met4j
annotate build/tools/SbmlSetRefsFromFile/SbmlSetRefsFromFile.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 |
rev | line source |
---|---|
6
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
1 <?xml version="1.0" encoding="UTF-8"?> |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
2 <tool id="met4j_SbmlSetRefsFromFile" name="SbmlSetRefsFromFile" version="1.3.0"> |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
3 <description>Add refs to network objects from a tabulated file containing the metabolite ids and the formulas</description> |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
4 <xrefs> |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
5 <xref type="bio.tools">met4j</xref> |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
6 </xrefs> |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
7 <requirements> |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
8 <container type="singularity">oras://registry.forgemia.inra.fr/metexplore/met4j/met4j-singularity:1.3.0</container> |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
9 </requirements> |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
10 <command detect_errors="exit_code"><![CDATA[sh /usr/bin/met4j.sh attributes.SbmlSetRefsFromFile#if str($colRef) != 'nan': |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
11 -cr "$colRef" |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
12 #end if |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
13 -ref "$ref" |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
14 #if str($colid): |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
15 -ci "$colid" |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
16 #end if |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
17 $p |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
18 $s |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
19 #if str($o): |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
20 -o "$o" |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
21 #end if |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
22 #if str($nSkip): |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
23 -n "$nSkip" |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
24 #end if |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
25 -sbml "$sbml" |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
26 #if str($tab) != 'None': |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
27 -tab "$tab" |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
28 #end if |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
29 #if str($c): |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
30 -c "$c" |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
31 #end if |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
32 -out "$out" |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
33 ]]></command> |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
34 <inputs> |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
35 <param argument="-cr" label="[2] number of the column where are the references" name="colRef" optional="true" type="integer" value="2"/> |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
36 <param argument="-ref" label="Name of the ref. Must exist in identifiers.org" name="ref" optional="false" type="text" value=""> |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
37 <sanitizer invalid_char="_"> |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
38 <valid initial="string.printable"/> |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
39 </sanitizer> |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
40 </param> |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
41 <param argument="-ci" label="[1] number of the column where are the object ids" name="colid" optional="true" type="text" value="1"> |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
42 <sanitizer invalid_char="_"> |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
43 <valid initial="string.printable"/> |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
44 </sanitizer> |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
45 </param> |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
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"/> |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
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"/> |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
48 <param argument="-o" label="[REACTION] Object type in the column id : REACTION;METABOLITE;GENE;PATHWAY" name="o" optional="true" type="text" value="REACTION"> |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
49 <sanitizer invalid_char="_"> |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
50 <valid initial="string.printable"/> |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
51 </sanitizer> |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
52 </param> |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
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"> |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
54 <sanitizer invalid_char="_"> |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
55 <valid initial="string.printable"/> |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
56 </sanitizer> |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
57 </param> |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
58 <param argument="-sbml" format="sbml" label="Original sbml file" name="sbml" optional="false" type="data" value=""/> |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
59 <param argument="-tab" format="tsv" label="Tabulated file" name="tab" optional="true" type="data" value=""/> |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
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="#"> |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
61 <sanitizer invalid_char="_"> |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
62 <valid initial="string.printable"/> |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
63 </sanitizer> |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
64 </param> |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
65 </inputs> |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
66 <outputs> |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
67 <data format="sbml" name="out"/> |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
68 </outputs> |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
69 <tests> |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
70 <test> |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
71 <param name="sbml" value="toy_model.xml"/> |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
72 <param name="tab" value="refs.tsv"/> |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
73 <param name="ref" value="InChi"/> |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
74 <param name="o" value="METABOLITE"/> |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
75 <output ftype="sbml" name="out"> |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
76 <assert_contents> |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
77 <is_valid_xml/> |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
78 <has_line_matching expression=".*C2H6O.*" n="3"/> |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
79 <has_line_matching expression=".*C6H8O6.*" n="1"/> |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
80 </assert_contents> |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
81 </output> |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
82 </test> |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
83 </tests> |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
84 <help><![CDATA[Add refs to network objects from a tabulated file containing the metabolite ids and the formulas |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
85 Reference name given as parameter (-ref) must correspond to an existing id the registry of identifiers.org (https://registry.identifiers.org/registry) |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
86 The corresponding key:value pair will be written as metabolite or reaction annotation]]></help> |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
87 <citations/> |
7a6f2380fc1d
planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy
metexplore
parents:
diff
changeset
|
88 </tool> |