Mercurial > repos > metexplore > met4j
comparison build/tools/SetEcNumbers/SetEcNumbers.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_SetEcNumbers" name="SetEcNumbers" version="develop"> | |
3 <description>Set EC numbers to reactions in a SBML file from a tabulated file containing the reaction ids and the EC numbers</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.SetEcNumbers#if str($colec) != 'nan': | |
11 -cec "$colec" | |
12 #end if | |
13 #if str($colid) != 'nan': | |
14 -ci "$colid" | |
15 #end if | |
16 $p | |
17 #if str($nSkip): | |
18 -n "$nSkip" | |
19 #end if | |
20 -i "$sbml" | |
21 #if str($tab) != 'None': | |
22 -tab "$tab" | |
23 #end if | |
24 #if str($c): | |
25 -c "$c" | |
26 #end if | |
27 -o "$out" | |
28 ]]></command> | |
29 <inputs> | |
30 <param argument="-cec" label="[2] number of the column where are the ecs" name="colec" optional="true" type="integer" value="2"/> | |
31 <param argument="-ci" label="[1] number of the column where are the reaction ids" name="colid" optional="true" type="integer" value="1"/> | |
32 <param argument="-p" checked="false" falsevalue="" label="[deactivated] To match the objects in the sbml file, adds the prefix R_ to reactions" name="p" truevalue="-p" type="boolean" value="false"/> | |
33 <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"> | |
34 <sanitizer invalid_char="_"> | |
35 <valid initial="string.printable"/> | |
36 </sanitizer> | |
37 </param> | |
38 <param argument="-i" format="sbml" label="Original SBML file" name="sbml" optional="false" type="data" value=""/> | |
39 <param argument="-tab" format="tsv" label="Input Tabulated file" name="tab" optional="true" type="data" value=""/> | |
40 <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="#"> | |
41 <sanitizer invalid_char="_"> | |
42 <valid initial="string.printable"/> | |
43 </sanitizer> | |
44 </param> | |
45 </inputs> | |
46 <outputs> | |
47 <data format="sbml" name="out"/> | |
48 </outputs> | |
49 <tests> | |
50 <test> | |
51 | |
52 | |
53 | |
54 | |
55 | |
56 | |
57 <param name="sbml" value="toy_model.xml"/> | |
58 | |
59 | |
60 | |
61 | |
62 | |
63 | |
64 <param name="tab" value="ec.tsv"/> | |
65 | |
66 | |
67 | |
68 | |
69 | |
70 | |
71 <output ftype="sbml" name="out"> | |
72 | |
73 | |
74 | |
75 | |
76 | |
77 | |
78 <assert_contents> | |
79 | |
80 | |
81 | |
82 | |
83 | |
84 | |
85 <is_valid_xml/> | |
86 | |
87 | |
88 | |
89 | |
90 | |
91 | |
92 <has_line_matching expression=".*1.1.1.1.*" n="2"/> | |
93 | |
94 | |
95 | |
96 | |
97 | |
98 | |
99 <has_line_matching expression=".*1.2.3.4.*" n="2"/> | |
100 | |
101 | |
102 | |
103 | |
104 | |
105 | |
106 </assert_contents> | |
107 | |
108 | |
109 | |
110 | |
111 | |
112 | |
113 </output> | |
114 | |
115 | |
116 | |
117 | |
118 | |
119 | |
120 </test> | |
121 <test expect_failure="true"> | |
122 | |
123 | |
124 | |
125 | |
126 | |
127 | |
128 <param name="sbml" value="toy_model.xml"/> | |
129 | |
130 | |
131 | |
132 | |
133 | |
134 | |
135 <param name="tab" value="ecBad.tsv"/> | |
136 | |
137 | |
138 | |
139 | |
140 | |
141 | |
142 </test> | |
143 </tests> | |
144 <help><![CDATA[Set EC numbers to reactions in a SBML file from a tabulated file containing the reaction ids and the EC numbers | |
145 The ids must correspond between the tabulated file and the SBML file. | |
146 If prefix R_ is present in the ids in the SBML file and not in the tabulated file, use the -p option. | |
147 The EC will be written in the SBML file in two locations: | |
148 - in the reaction HTML notes (e.g. EC_NUMBER: 2.4.2.14) | |
149 - as a reaction MIRIAM annotation (see https://pubmed.ncbi.nlm.nih.gov/16333295/) with ec-code identifiers link (https://registry.identifiers.org/registry/ec-code)]]></help> | |
150 <citations> | |
151 <citation type="doi">10.1038/nbt1156</citation> | |
152 </citations> | |
153 </tool> |