comparison tests.xml @ 3:be70a57d7174 draft default tip

planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/color_deconvolution/ commit 07aba15c8f753d650fee9cdd455896a77086a615
author imgteam
date Tue, 29 Oct 2024 13:49:19 +0000
parents
children
comparison
equal deleted inserted replaced
2:612aa1478fe1 3:be70a57d7174
1 <macros>
2
3 <!-- Macros for verification of image outputs -->
4
5 <xml
6 name="tests/binary_image_diff"
7 tokens="name,value,ftype,metric,eps"
8 token_metric="mae"
9 token_eps="0.01">
10
11 <output name="@NAME@" value="@VALUE@" ftype="@FTYPE@" compare="image_diff" metric="@METRIC@" eps="@EPS@" pin_labels="0">
12 <assert_contents>
13 <has_image_n_labels n="2"/>
14 <yield/>
15 </assert_contents>
16 </output>
17
18 </xml>
19
20 <xml
21 name="tests/label_image_diff"
22 tokens="name,value,ftype,metric,eps,pin_labels"
23 token_metric="iou"
24 token_eps="0.01"
25 token_pin_labels="0">
26
27 <output name="@NAME@" value="@VALUE@" ftype="@FTYPE@" compare="image_diff" metric="@METRIC@" eps="@EPS@" pin_labels="@PIN_LABELS@">
28 <assert_contents>
29 <yield/>
30 </assert_contents>
31 </output>
32
33 </xml>
34
35 <xml
36 name="tests/intensity_image_diff"
37 tokens="name,value,ftype,metric,eps"
38 token_metric="rms"
39 token_eps="0.01">
40
41 <output name="@NAME@" value="@VALUE@" ftype="@FTYPE@" compare="image_diff" metric="@METRIC@" eps="@EPS@">
42 <assert_contents>
43 <yield/>
44 </assert_contents>
45 </output>
46
47 </xml>
48
49 <!-- Variants of the above for verification of collection elements -->
50
51 <xml
52 name="tests/binary_image_diff/element"
53 tokens="name,value,ftype,metric,eps"
54 token_metric="mae"
55 token_eps="0.01">
56
57 <element name="@NAME@" value="@VALUE@" ftype="@FTYPE@" compare="image_diff" metric="@METRIC@" eps="@EPS@" pin_labels="0">
58 <assert_contents>
59 <has_image_n_labels n="2"/>
60 <yield/>
61 </assert_contents>
62 </element>
63
64 </xml>
65
66 <xml
67 name="tests/label_image_diff/element"
68 tokens="name,value,ftype,metric,eps"
69 token_metric="iou"
70 token_eps="0.01"
71 token_pin_labels="0">
72
73 <element name="@NAME@" value="@VALUE@" ftype="@FTYPE@" compare="image_diff" metric="@METRIC@" eps="@EPS@" pin_labels="@PIN_LABELS@">
74 <assert_contents>
75 <yield/>
76 </assert_contents>
77 </element>
78
79 </xml>
80
81 <xml
82 name="tests/intensity_image_diff/element"
83 tokens="name,value,ftype,metric,eps"
84 token_metric="rms"
85 token_eps="0.01">
86
87 <element name="@NAME@" value="@VALUE@" ftype="@FTYPE@" compare="image_diff" metric="@METRIC@" eps="@EPS@">
88 <assert_contents>
89 <yield/>
90 </assert_contents>
91 </element>
92
93 </xml>
94
95 </macros>