comparison build/tools/ReactionDistanceMatrix/ReactionDistanceMatrix.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 1274e2a62479
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_ReactionDistanceMatrix" name="ReactionDistanceMatrix" version="1.5.0"> 2 <tool id="met4j_ReactionDistanceMatrix" name="ReactionDistanceMatrix" version="develop">
3 <description>Create a reaction to reaction distance matrix.</description> 3 <description>Create a reaction to reaction 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:1.5.0</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.ReactionDistanceMatrix -i "$inputPath" 10 <command detect_errors="exit_code"><![CDATA[sh /usr/bin/met4j.sh networkAnalysis.ReactionDistanceMatrix -i "$inputPath"
11 #if str($sideCompoundFile) != 'None': 11 #if str($sideCompoundFile) != 'None':
12 -sc "$sideCompoundFile" 12 -sc "$sideCompoundFile"
13 #end if 13 #end if
36 <outputs> 36 <outputs>
37 <data format="csv" name="outputPath"/> 37 <data format="csv" name="outputPath"/>
38 </outputs> 38 </outputs>
39 <tests> 39 <tests>
40 <test> 40 <test>
41
42
43
44
45
46
47
48
49
50
51
41 <param name="inputPath" value="toy_model.xml"/> 52 <param name="inputPath" value="toy_model.xml"/>
53
54
55
56
57
58
59
60
61
62
63
42 <output ftype="csv" name="outputPath"> 64 <output ftype="csv" name="outputPath">
65
66
67
68
69
70
71
72
73
74
75
43 <assert_contents> 76 <assert_contents>
77
78
79
80
81
82
83
84
85
86
87
44 <has_n_lines n="8"/> 88 <has_n_lines n="8"/>
89
90
91
92
93
94
95
96
97
98
99
45 <has_line_matching expression="id,reac1,reac2,reac3,reac4,reac5,reac6,reac7" n="1"/> 100 <has_line_matching expression="id,reac1,reac2,reac3,reac4,reac5,reac6,reac7" n="1"/>
101
102
103
104
105
106
107
108
109
110
111
46 <has_line_matching expression="reac1,0.0,1.0,1.0,2.0,3.0,Infinity,Infinity" n="1"/> 112 <has_line_matching expression="reac1,0.0,1.0,1.0,2.0,3.0,Infinity,Infinity" n="1"/>
113
114
115
116
117
118
119
120
121
122
123
47 <has_line_matching expression="reac2,Infinity,0.0,1.0,1.0,2.0,Infinity,Infinity" n="1"/> 124 <has_line_matching expression="reac2,Infinity,0.0,1.0,1.0,2.0,Infinity,Infinity" n="1"/>
125
126
127
128
129
130
131
132
133
134
135
48 </assert_contents> 136 </assert_contents>
137
138
139
140
141
142
143
144
145
146
147
49 </output> 148 </output>
149
150
151
152
153
154
155
156
157
158
159
50 </test> 160 </test>
51 <test> 161 <test>
162
163
164
165
166
167
168
169
170
171
172
52 <param name="inputPath" value="toy_model.xml"/> 173 <param name="inputPath" value="toy_model.xml"/>
174
175
176
177
178
179
180
181
182
183
184
53 <param name="undirected" value="true"/> 185 <param name="undirected" value="true"/>
186
187
188
189
190
191
192
193
194
195
196
54 <output ftype="csv" name="outputPath"> 197 <output ftype="csv" name="outputPath">
198
199
200
201
202
203
204
205
206
207
208
55 <assert_contents> 209 <assert_contents>
210
211
212
213
214
215
216
217
218
219
220
56 <has_n_lines n="8"/> 221 <has_n_lines n="8"/>
222
223
224
225
226
227
228
229
230
231
232
57 <has_line_matching expression="id,reac1,reac2,reac3,reac4,reac5,reac6,reac7" n="1"/> 233 <has_line_matching expression="id,reac1,reac2,reac3,reac4,reac5,reac6,reac7" n="1"/>
234
235
236
237
238
239
240
241
242
243
244
58 <has_line_matching expression="reac1,0.0,1.0,1.0,2.0,3.0,5.0,4.0" n="1"/> 245 <has_line_matching expression="reac1,0.0,1.0,1.0,2.0,3.0,5.0,4.0" n="1"/>
246
247
248
249
250
251
252
253
254
255
256
59 <has_line_matching expression="reac2,1.0,0.0,1.0,1.0,2.0,4.0,3.0" n="1"/> 257 <has_line_matching expression="reac2,1.0,0.0,1.0,1.0,2.0,4.0,3.0" n="1"/>
258
259
260
261
262
263
264
265
266
267
268
60 </assert_contents> 269 </assert_contents>
270
271
272
273
274
275
276
277
278
279
280
61 </output> 281 </output>
282
283
284
285
286
287
288
289
290
291
292
62 </test> 293 </test>
63 <test> 294 <test>
295
296
297
298
299
300
301
302
303
304
305
64 <param name="inputPath" value="toy_model.xml"/> 306 <param name="inputPath" value="toy_model.xml"/>
307
308
309
310
311
312
313
314
315
316
317
65 <param name="undirected" value="true"/> 318 <param name="undirected" value="true"/>
319
320
321
322
323
324
325
326
327
328
329
66 <param name="sideCompoundFile" value="sides.txt"/> 330 <param name="sideCompoundFile" value="sides.txt"/>
331
332
333
334
335
336
337
338
339
340
341
67 <output ftype="csv" name="outputPath"> 342 <output ftype="csv" name="outputPath">
343
344
345
346
347
348
349
350
351
352
353
68 <assert_contents> 354 <assert_contents>
355
356
357
358
359
360
361
362
363
364
365
69 <has_n_lines n="8"/> 366 <has_n_lines n="8"/>
367
368
369
370
371
372
373
374
375
376
377
70 <has_line_matching expression="id,reac1,reac2,reac3,reac4,reac5,reac6,reac7" n="1"/> 378 <has_line_matching expression="id,reac1,reac2,reac3,reac4,reac5,reac6,reac7" n="1"/>
379
380
381
382
383
384
385
386
387
388
389
71 <has_line_matching expression="reac1,0.0,1.0,1.0,2.0,3.0,5.0,4.0" n="1"/> 390 <has_line_matching expression="reac1,0.0,1.0,1.0,2.0,3.0,5.0,4.0" n="1"/>
391
392
393
394
395
396
397
398
399
400
401
72 <has_line_matching expression="reac2,1.0,0.0,1.0,2.0,3.0,5.0,4.0" n="1"/> 402 <has_line_matching expression="reac2,1.0,0.0,1.0,2.0,3.0,5.0,4.0" n="1"/>
403
404
405
406
407
408
409
410
411
412
413
73 <has_line_matching expression="reac3,1.0,1.0,0.0,1.0,2.0,4.0,3.0" n="1"/> 414 <has_line_matching expression="reac3,1.0,1.0,0.0,1.0,2.0,4.0,3.0" n="1"/>
415
416
417
418
419
420
421
422
423
424
425
74 <has_line_matching expression="reac4,2.0,2.0,1.0,0.0,1.0,3.0,2.0" n="1"/> 426 <has_line_matching expression="reac4,2.0,2.0,1.0,0.0,1.0,3.0,2.0" n="1"/>
427
428
429
430
431
432
433
434
435
436
437
75 </assert_contents> 438 </assert_contents>
439
440
441
442
443
444
445
446
447
448
449
76 </output> 450 </output>
451
452
453
454
455
456
457
458
459
460
461
77 </test> 462 </test>
78 <test> 463 <test>
464
465
466
467
468
469
470
471
472
473
474
79 <param name="inputPath" value="toy_model.xml"/> 475 <param name="inputPath" value="toy_model.xml"/>
476
477
478
479
480
481
482
483
484
485
486
80 <param name="undirected" value="true"/> 487 <param name="undirected" value="true"/>
488
489
490
491
492
493
494
495
496
497
498
81 <param name="rExclude" value="rexclude.txt"/> 499 <param name="rExclude" value="rexclude.txt"/>
500
501
502
503
504
505
506
507
508
509
510
82 <output ftype="csv" name="outputPath"> 511 <output ftype="csv" name="outputPath">
512
513
514
515
516
517
518
519
520
521
522
83 <assert_contents> 523 <assert_contents>
524
525
526
527
528
529
530
531
532
533
534
84 <has_n_lines n="6"/> 535 <has_n_lines n="6"/>
536
537
538
539
540
541
542
543
544
545
546
85 <has_line_matching expression="id,reac1,reac2,reac3,reac4,reac5" n="1"/> 547 <has_line_matching expression="id,reac1,reac2,reac3,reac4,reac5" n="1"/>
548
549
550
551
552
553
554
555
556
557
558
86 <has_line_matching expression="reac1,0.0,1.0,1.0,2.0,3.0" n="1"/> 559 <has_line_matching expression="reac1,0.0,1.0,1.0,2.0,3.0" n="1"/>
560
561
562
563
564
565
566
567
568
569
570
87 <has_line_matching expression="reac2,1.0,0.0,1.0,1.0,2.0" n="1"/> 571 <has_line_matching expression="reac2,1.0,0.0,1.0,1.0,2.0" n="1"/>
572
573
574
575
576
577
578
579
580
581
582
88 <has_line_matching expression="reac3,1.0,1.0,0.0,1.0,2.0" n="1"/> 583 <has_line_matching expression="reac3,1.0,1.0,0.0,1.0,2.0" n="1"/>
584
585
586
587
588
589
590
591
592
593
594
89 <has_line_matching expression="reac4,2.0,1.0,1.0,0.0,1.0" n="1"/> 595 <has_line_matching expression="reac4,2.0,1.0,1.0,0.0,1.0" n="1"/>
596
597
598
599
600
601
602
603
604
605
606
90 <has_line_matching expression="reac5,3.0,2.0,2.0,1.0,0.0" n="1"/> 607 <has_line_matching expression="reac5,3.0,2.0,2.0,1.0,0.0" n="1"/>
608
609
610
611
612
613
614
615
616
617
618
91 </assert_contents> 619 </assert_contents>
620
621
622
623
624
625
626
627
628
629
630
92 </output> 631 </output>
632
633
634
635
636
637
638
639
640
641
642
93 </test> 643 </test>
94 <test> 644 <test>
645
646
647
648
649
650
651
652
653
654
655
95 <param name="inputPath" value="toy_model.xml"/> 656 <param name="inputPath" value="toy_model.xml"/>
657
658
659
660
661
662
663
664
665
666
667
96 <param name="undirected" value="true"/> 668 <param name="undirected" value="true"/>
669
670
671
672
673
674
675
676
677
678
679
97 <param name="sideCompoundFile" value="sides.txt"/> 680 <param name="sideCompoundFile" value="sides.txt"/>
681
682
683
684
685
686
687
688
689
690
691
98 <param name="rExclude" value="rexclude.txt"/> 692 <param name="rExclude" value="rexclude.txt"/>
693
694
695
696
697
698
699
700
701
702
703
99 <output ftype="csv" name="outputPath"> 704 <output ftype="csv" name="outputPath">
705
706
707
708
709
710
711
712
713
714
715
100 <assert_contents> 716 <assert_contents>
717
718
719
720
721
722
723
724
725
726
727
101 <has_n_lines n="6"/> 728 <has_n_lines n="6"/>
729
730
731
732
733
734
735
736
737
738
739
102 <has_line_matching expression="id,reac1,reac2,reac3,reac4,reac5" n="1"/> 740 <has_line_matching expression="id,reac1,reac2,reac3,reac4,reac5" n="1"/>
741
742
743
744
745
746
747
748
749
750
751
103 <has_line_matching expression="reac1,0.0,1.0,1.0,2.0,3.0" n="1"/> 752 <has_line_matching expression="reac1,0.0,1.0,1.0,2.0,3.0" n="1"/>
753
754
755
756
757
758
759
760
761
762
763
104 <has_line_matching expression="reac2,1.0,0.0,1.0,2.0,3.0" n="1"/> 764 <has_line_matching expression="reac2,1.0,0.0,1.0,2.0,3.0" n="1"/>
765
766
767
768
769
770
771
772
773
774
775
105 <has_line_matching expression="reac3,1.0,1.0,0.0,1.0,2.0" n="1"/> 776 <has_line_matching expression="reac3,1.0,1.0,0.0,1.0,2.0" n="1"/>
777
778
779
780
781
782
783
784
785
786
787
106 <has_line_matching expression="reac4,2.0,2.0,1.0,0.0,1.0" n="1"/> 788 <has_line_matching expression="reac4,2.0,2.0,1.0,0.0,1.0" n="1"/>
789
790
791
792
793
794
795
796
797
798
799
107 <has_line_matching expression="reac5,3.0,3.0,2.0,1.0,0.0" n="1"/> 800 <has_line_matching expression="reac5,3.0,3.0,2.0,1.0,0.0" n="1"/>
801
802
803
804
805
806
807
808
809
810
811
108 </assert_contents> 812 </assert_contents>
813
814
815
816
817
818
819
820
821
822
823
109 </output> 824 </output>
825
826
827
828
829
830
831
832
833
834
835
110 </test> 836 </test>
111 <test> 837 <test>
838
839
840
841
842
843
844
845
846
847
848
112 <param name="inputPath" value="toy_model.xml"/> 849 <param name="inputPath" value="toy_model.xml"/>
850
851
852
853
854
855
856
857
858
859
860
113 <param name="sideCompoundFile" value="sides.txt"/> 861 <param name="sideCompoundFile" value="sides.txt"/>
862
863
864
865
866
867
868
869
870
871
872
114 <param name="rExclude" value="rexclude.txt"/> 873 <param name="rExclude" value="rexclude.txt"/>
874
875
876
877
878
879
880
881
882
883
884
115 <output ftype="csv" name="outputPath"> 885 <output ftype="csv" name="outputPath">
886
887
888
889
890
891
892
893
894
895
896
116 <assert_contents> 897 <assert_contents>
898
899
900
901
902
903
904
905
906
907
908
117 <has_n_lines n="6"/> 909 <has_n_lines n="6"/>
910
911
912
913
914
915
916
917
918
919
920
118 <has_line_matching expression="id,reac1,reac2,reac3,reac4,reac5" n="1"/> 921 <has_line_matching expression="id,reac1,reac2,reac3,reac4,reac5" n="1"/>
922
923
924
925
926
927
928
929
930
931
932
119 <has_line_matching expression="reac1,0.0,1.0,1.0,2.0,3.0" n="1"/> 933 <has_line_matching expression="reac1,0.0,1.0,1.0,2.0,3.0" n="1"/>
934
935
936
937
938
939
940
941
942
943
944
120 <has_line_matching expression="reac2,Infinity,0.0,1.0,2.0,3.0" n="1"/> 945 <has_line_matching expression="reac2,Infinity,0.0,1.0,2.0,3.0" n="1"/>
946
947
948
949
950
951
952
953
954
955
956
121 <has_line_matching expression="reac3,Infinity,Infinity,0.0,1.0,2.0" n="1"/> 957 <has_line_matching expression="reac3,Infinity,Infinity,0.0,1.0,2.0" n="1"/>
958
959
960
961
962
963
964
965
966
967
968
122 <has_line_matching expression="reac4,Infinity,Infinity,Infinity,0.0,1.0" n="1"/> 969 <has_line_matching expression="reac4,Infinity,Infinity,Infinity,0.0,1.0" n="1"/>
970
971
972
973
974
975
976
977
978
979
980
123 <has_line_matching expression="reac5,Infinity,Infinity,Infinity,Infinity,0.0" n="1"/> 981 <has_line_matching expression="reac5,Infinity,Infinity,Infinity,Infinity,0.0" n="1"/>
982
983
984
985
986
987
988
989
990
991
992
124 </assert_contents> 993 </assert_contents>
994
995
996
997
998
999
1000
1001
1002
1003
1004
125 </output> 1005 </output>
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
126 </test> 1017 </test>
127 </tests> 1018 </tests>
128 <help><![CDATA[Create a reaction to reaction distance matrix. 1019 <help><![CDATA[Create a reaction to reaction distance matrix.
129 The distance between two reactions is computed as the length of the shortest path connecting the two in the reaction graph, where two reactions are linked if they produce a metabolite consumed by the other or the other way around. 1020 The distance between two reactions is computed as the length of the shortest path connecting the two in the reaction graph, where two reactions are linked if they produce a metabolite consumed by the other or the other way around.
130 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. 1021 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.