comparison tools/attributes/SetNames/SetNames.xml @ 10:6a112eaf8f38 draft

planemo upload for repository https://forgemia.inra.fr/metexplore/met4j-galaxy commit 71071300dd662ad01bd064abcf6866a192eeea95
author metexplore
date Mon, 03 Feb 2025 15:59:46 +0000
parents 0976a6257300
children 40c15b7467f1
comparison
equal deleted inserted replaced
9:0976a6257300 10:6a112eaf8f38
1 <?xml version="1.0" encoding="UTF-8" standalone="no"?> 1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 <tool id="met4j_SetNames" name="SetNames" version="develop"> 2 <tool id="met4j_SetNames" name="SetNames" version="2.0.0">
3 <description>Set names to network objects in a SBML file from a tabulated file containing the object ids and the names</description> 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> 4 <xrefs>
5 <xref type="bio.tools">met4j</xref> 5 <xref type="bio.tools">met4j</xref>
6 </xrefs> 6 </xrefs>
7 <requirements> 7 <requirements>
8 <container type="singularity">oras://registry.forgemia.inra.fr/metexplore/met4j/met4j-singularity:develop</container> 8 <container type="singularity">oras://registry.forgemia.inra.fr/metexplore/met4j/met4j-singularity:2.0.0</container>
9 </requirements> 9 </requirements>
10 <command detect_errors="exit_code"><![CDATA[sh /usr/bin/met4j.sh attributes.SetNames#if str($colname) != 'nan': 10 <command detect_errors="exit_code"><![CDATA[sh /usr/bin/met4j.sh attributes.SetNames#if str($colname) != 'nan':
11 -cname "$colname" 11 -cname "$colname"
12 #end if 12 #end if
13 #if str($colid): 13 #if str($colid):
60 <outputs> 60 <outputs>
61 <data format="sbml" name="out"/> 61 <data format="sbml" name="out"/>
62 </outputs> 62 </outputs>
63 <tests> 63 <tests>
64 <test> 64 <test>
65
66
67
68
69
70
71 <param name="sbml" value="toy_model.xml"/> 65 <param name="sbml" value="toy_model.xml"/>
72
73
74
75
76
77
78 <param name="tab" value="namesMetabolites.tsv"/> 66 <param name="tab" value="namesMetabolites.tsv"/>
79
80
81
82
83
84
85 <param name="o" value="METABOLITE"/> 67 <param name="o" value="METABOLITE"/>
86
87
88
89
90
91
92 <output ftype="sbml" name="out"> 68 <output ftype="sbml" name="out">
93
94
95
96
97
98
99 <assert_contents> 69 <assert_contents>
100
101
102
103
104
105
106 <is_valid_xml/> 70 <is_valid_xml/>
107
108
109
110
111
112
113 <has_line_matching expression=".*metaboliteA.*" n="1"/> 71 <has_line_matching expression=".*metaboliteA.*" n="1"/>
114
115
116
117
118
119
120 <has_line_matching expression=".*metaboliteB.*" n="1"/> 72 <has_line_matching expression=".*metaboliteB.*" n="1"/>
121
122
123
124
125
126
127 </assert_contents> 73 </assert_contents>
128
129
130
131
132
133
134 </output> 74 </output>
135
136
137
138
139
140
141 </test> 75 </test>
142 <test> 76 <test>
143
144
145
146
147
148
149 <param name="sbml" value="toy_model.xml"/> 77 <param name="sbml" value="toy_model.xml"/>
150
151
152
153
154
155
156 <param name="tab" value="namesReactions.tsv"/> 78 <param name="tab" value="namesReactions.tsv"/>
157
158
159
160
161
162
163 <output ftype="sbml" name="out"> 79 <output ftype="sbml" name="out">
164
165
166
167
168
169
170 <assert_contents> 80 <assert_contents>
171
172
173
174
175
176
177 <is_valid_xml/> 81 <is_valid_xml/>
178
179
180
181
182
183
184 <has_line_matching expression=".*reaction1.*" n="1"/> 82 <has_line_matching expression=".*reaction1.*" n="1"/>
185
186
187
188
189
190
191 <has_line_matching expression=".*reaction2.*" n="1"/> 83 <has_line_matching expression=".*reaction2.*" n="1"/>
192
193
194
195
196
197
198 </assert_contents> 84 </assert_contents>
199
200
201
202
203
204
205 </output> 85 </output>
206
207
208
209
210
211
212 </test> 86 </test>
213 <test> 87 <test>
214
215
216
217
218
219
220 <param name="sbml" value="XF_network.sbml"/> 88 <param name="sbml" value="XF_network.sbml"/>
221
222
223
224
225
226
227 <param name="tab" value="namesPathways.tsv"/> 89 <param name="tab" value="namesPathways.tsv"/>
228
229
230
231
232
233
234 <param name="o" value="PATHWAY"/> 90 <param name="o" value="PATHWAY"/>
235
236
237
238
239
240
241 <output ftype="sbml" name="out"> 91 <output ftype="sbml" name="out">
242
243
244
245
246
247
248 <assert_contents> 92 <assert_contents>
249
250
251
252
253
254
255 <is_valid_xml/> 93 <is_valid_xml/>
256
257
258
259
260
261
262 <has_line_matching expression=".*groups:name=.CEB.*" n="1"/> 94 <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"/> 95 <has_line_matching expression=".*groups:name=.NSP.*" n="1"/>
270
271
272
273
274
275
276 </assert_contents> 96 </assert_contents>
277
278
279
280
281
282
283 </output> 97 </output>
284
285
286
287
288
289
290 </test> 98 </test>
291 <test> 99 <test>
292
293
294
295
296
297
298 <param name="sbml" value="XF_network.sbml"/> 100 <param name="sbml" value="XF_network.sbml"/>
299
300
301
302
303
304
305 <param name="tab" value="namesGenes.tsv"/> 101 <param name="tab" value="namesGenes.tsv"/>
306
307
308
309
310
311
312 <param name="o" value="GENE"/> 102 <param name="o" value="GENE"/>
313
314
315
316
317
318
319 <output ftype="sbml" name="out"> 103 <output ftype="sbml" name="out">
320
321
322
323
324
325
326 <assert_contents> 104 <assert_contents>
327
328
329
330
331
332
333 <is_valid_xml/> 105 <is_valid_xml/>
334
335
336
337
338
339
340 <has_line_matching expression=".*fbc:name=.G1.*" n="1"/> 106 <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"/> 107 <has_line_matching expression=".*fbc:name=.G2.*" n="1"/>
348
349
350
351
352
353
354 </assert_contents> 108 </assert_contents>
355
356
357
358
359
360
361 </output> 109 </output>
362
363
364
365
366
367
368 </test> 110 </test>
369 </tests> 111 </tests>
370 <help><![CDATA[Set names to network objects in a SBML file from a tabulated file containing the object ids and the names 112 <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. 113 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. 114 If prefix or suffix is different in the SBML file, use the -p or the -s options.