comparison tools/networkAnalysis/DistanceMatrix/DistanceMatrix.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 7a6f2380fc1d
children 6a112eaf8f38
comparison
equal deleted inserted replaced
8:1274e2a62479 9:0976a6257300
1 <?xml version="1.0" encoding="UTF-8"?> 1 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2 <tool id="met4j_DistanceMatrix" name="DistanceMatrix" version="MET4J_VERSION_TEST"> 2 <tool id="met4j_DistanceMatrix" name="DistanceMatrix" version="develop">
3 <description>Create a compound to compound distance matrix.</description> 3 <description>Create a compound to compound distance matrix.</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:MET4J_VERSION_TEST</container> 8 <container type="singularity">oras://registry.forgemia.inra.fr/metexplore/met4j/met4j-singularity:develop</container>
9 </requirements> 9 </requirements>
10 <command detect_errors="exit_code"><![CDATA[sh /usr/bin/met4j.sh networkAnalysis.DistanceMatrix -i "$inputPath" 10 <command detect_errors="exit_code"><![CDATA[sh /usr/bin/met4j.sh networkAnalysis.DistanceMatrix -i "$inputPath"
11 #if str($sideCompoundFile) != 'None': 11 #if str($sideCompoundFile) != 'None':
12 -sc "$sideCompoundFile" 12 -sc "$sideCompoundFile"
13 #end if 13 #end if
32 <outputs> 32 <outputs>
33 <data format="csv" name="outputPath"/> 33 <data format="csv" name="outputPath"/>
34 </outputs> 34 </outputs>
35 <tests> 35 <tests>
36 <test> 36 <test>
37
38
39
40
41
42
43
44
45
46
47
37 <param name="inputPath" value="toy_model.xml"/> 48 <param name="inputPath" value="toy_model.xml"/>
49
50
51
52
53
54
55
56
57
58
59
38 <output ftype="csv" name="outputPath"> 60 <output ftype="csv" name="outputPath">
61
62
63
64
65
66
67
68
69
70
71
39 <assert_contents> 72 <assert_contents>
73
74
75
76
77
78
79
80
81
82
83
40 <has_n_lines n="9"/> 84 <has_n_lines n="9"/>
85
86
87
88
89
90
91
92
93
94
95
41 <has_line_matching expression="id,A,A_ext,B,C,D,D_ext,E,E_ext" n="1"/> 96 <has_line_matching expression="id,A,A_ext,B,C,D,D_ext,E,E_ext" n="1"/>
97
98
99
100
101
102
103
104
105
106
107
42 <has_line_matching expression="B,1.0,Infinity,0.0,2.0,1.0,2.0,Infinity,Infinity" n="1"/> 108 <has_line_matching expression="B,1.0,Infinity,0.0,2.0,1.0,2.0,Infinity,Infinity" n="1"/>
109
110
111
112
113
114
115
116
117
118
119
43 </assert_contents> 120 </assert_contents>
121
122
123
124
125
126
127
128
129
130
131
44 </output> 132 </output>
133
134
135
136
137
138
139
140
141
142
143
45 </test> 144 </test>
46 <test> 145 <test>
146
147
148
149
150
151
152
153
154
155
156
47 <param name="inputPath" value="toy_model.xml"/> 157 <param name="inputPath" value="toy_model.xml"/>
158
159
160
161
162
163
164
165
166
167
168
48 <param name="sideCompoundFile" value="sides.txt"/> 169 <param name="sideCompoundFile" value="sides.txt"/>
170
171
172
173
174
175
176
177
178
179
180
49 <param name="degree" value="true"/> 181 <param name="degree" value="true"/>
182
183
184
185
186
187
188
189
190
191
192
50 <param name="undirected" value="true"/> 193 <param name="undirected" value="true"/>
194
195
196
197
198
199
200
201
202
203
204
51 <output ftype="csv" name="outputPath"> 205 <output ftype="csv" name="outputPath">
206
207
208
209
210
211
212
213
214
215
216
52 <assert_contents> 217 <assert_contents>
218
219
220
221
222
223
224
225
226
227
228
53 <has_n_lines n="8"/> 229 <has_n_lines n="8"/>
230
231
232
233
234
235
236
237
238
239
240
54 <has_line_matching expression="id,A,B,C,D,D_ext,E,E_ext" n="1"/> 241 <has_line_matching expression="id,A,B,C,D,D_ext,E,E_ext" n="1"/>
242
243
244
245
246
247
248
249
250
251
252
55 <has_line_matching expression="A,0.0,4.0,4.0,20.0,21.0,24.0,25.0" n="1"/> 253 <has_line_matching expression="A,0.0,4.0,4.0,20.0,21.0,24.0,25.0" n="1"/>
254
255
256
257
258
259
260
261
262
263
264
56 <has_line_matching expression="B,4.0,0.0,8.0,16.0,17.0,20.0,21.0" n="1"/> 265 <has_line_matching expression="B,4.0,0.0,8.0,16.0,17.0,20.0,21.0" n="1"/>
266
267
268
269
270
271
272
273
274
275
276
57 <has_line_matching expression="C,4.0,8.0,0.0,16.0,17.0,20.0,21.0" n="1"/> 277 <has_line_matching expression="C,4.0,8.0,0.0,16.0,17.0,20.0,21.0" n="1"/>
278
279
280
281
282
283
284
285
286
287
288
58 <has_line_matching expression="D,8.0,4.0,4.0,0.0,1.0,4.0,5.0" n="1"/> 289 <has_line_matching expression="D,8.0,4.0,4.0,0.0,1.0,4.0,5.0" n="1"/>
290
291
292
293
294
295
296
297
298
299
300
59 </assert_contents> 301 </assert_contents>
302
303
304
305
306
307
308
309
310
311
312
60 </output> 313 </output>
314
315
316
317
318
319
320
321
322
323
324
61 </test> 325 </test>
62 </tests> 326 </tests>
63 <help><![CDATA[Create a compound to compound distance matrix. 327 <help><![CDATA[Create a compound to compound distance matrix.
64 The distance between two compounds is computed as the length of the shortest path connecting the two in the compound graph, where two compounds are linked if they are respectively substrate and product of the same reaction. 328 The distance between two compounds is computed as the length of the shortest path connecting the two in the compound graph, where two compounds are linked if they are respectively substrate and product of the same reaction.
65 An optional edge weighting can be used, turning the distances into the sum of edge weights in the lightest path, rather than the length of the shortest path.The default weighting use target's degree squared. Alternatively, custom weighting can be provided in a file. In that case, edges without weight are ignored during path search. 329 An optional edge weighting can be used, turning the distances into the sum of edge weights in the lightest path, rather than the length of the shortest path.The default weighting use target's degree squared. Alternatively, custom weighting can be provided in a file. In that case, edges without weight are ignored during path search.