annotate validators.xml @ 10:519fad2c552a draft default tip

planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_feature_extraction/ commit b8e0b656d417db6e2ad0f187fc3c5afff0c3acd7
author imgteam
date Tue, 06 Jan 2026 09:25:53 +0000
parents 0b5ddf7b2924
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
8
0b5ddf7b2924 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_feature_extraction/ commit bb2d58ed37d8eb09583b86e3cdd9f5d1b56c42a0
imgteam
parents:
diff changeset
1 <macros>
0b5ddf7b2924 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_feature_extraction/ commit bb2d58ed37d8eb09583b86e3cdd9f5d1b56c42a0
imgteam
parents:
diff changeset
2
0b5ddf7b2924 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_feature_extraction/ commit bb2d58ed37d8eb09583b86e3cdd9f5d1b56c42a0
imgteam
parents:
diff changeset
3 <!-- Macros for validation of inputs -->
0b5ddf7b2924 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_feature_extraction/ commit bb2d58ed37d8eb09583b86e3cdd9f5d1b56c42a0
imgteam
parents:
diff changeset
4
0b5ddf7b2924 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_feature_extraction/ commit bb2d58ed37d8eb09583b86e3cdd9f5d1b56c42a0
imgteam
parents:
diff changeset
5 <xml name="validators/is_single_channel">
0b5ddf7b2924 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_feature_extraction/ commit bb2d58ed37d8eb09583b86e3cdd9f5d1b56c42a0
imgteam
parents:
diff changeset
6 <!--
0b5ddf7b2924 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_feature_extraction/ commit bb2d58ed37d8eb09583b86e3cdd9f5d1b56c42a0
imgteam
parents:
diff changeset
7 The OME-Zarr datatype in Galaxy is currently not derived from the Image datatype, and it does
0b5ddf7b2924 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_feature_extraction/ commit bb2d58ed37d8eb09583b86e3cdd9f5d1b56c42a0
imgteam
parents:
diff changeset
8 hence not inherit the metadata fields like `channels`. To cope with that, we allow all datasets
0b5ddf7b2924 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_feature_extraction/ commit bb2d58ed37d8eb09583b86e3cdd9f5d1b56c42a0
imgteam
parents:
diff changeset
9 except those where we *know* that they are *not* single-channel.
0b5ddf7b2924 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_feature_extraction/ commit bb2d58ed37d8eb09583b86e3cdd9f5d1b56c42a0
imgteam
parents:
diff changeset
10 -->
0b5ddf7b2924 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_feature_extraction/ commit bb2d58ed37d8eb09583b86e3cdd9f5d1b56c42a0
imgteam
parents:
diff changeset
11 <validator type="expression" message="Dataset is a multi-channel image"
0b5ddf7b2924 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_feature_extraction/ commit bb2d58ed37d8eb09583b86e3cdd9f5d1b56c42a0
imgteam
parents:
diff changeset
12 ><![CDATA[getattr(value.metadata, "channels", None) in (None, '') or int(value.metadata.channels) < 2]]></validator>
0b5ddf7b2924 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_feature_extraction/ commit bb2d58ed37d8eb09583b86e3cdd9f5d1b56c42a0
imgteam
parents:
diff changeset
13 </xml>
0b5ddf7b2924 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_feature_extraction/ commit bb2d58ed37d8eb09583b86e3cdd9f5d1b56c42a0
imgteam
parents:
diff changeset
14
0b5ddf7b2924 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_feature_extraction/ commit bb2d58ed37d8eb09583b86e3cdd9f5d1b56c42a0
imgteam
parents:
diff changeset
15 <xml name="validators/is_single_frame">
0b5ddf7b2924 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_feature_extraction/ commit bb2d58ed37d8eb09583b86e3cdd9f5d1b56c42a0
imgteam
parents:
diff changeset
16 <!--
0b5ddf7b2924 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_feature_extraction/ commit bb2d58ed37d8eb09583b86e3cdd9f5d1b56c42a0
imgteam
parents:
diff changeset
17 The OME-Zarr datatype in Galaxy is currently not derived from the Image datatype, and it does
0b5ddf7b2924 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_feature_extraction/ commit bb2d58ed37d8eb09583b86e3cdd9f5d1b56c42a0
imgteam
parents:
diff changeset
18 hence not inherit the metadata fields like `frames`. To cope with that, we allow all datasets
0b5ddf7b2924 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_feature_extraction/ commit bb2d58ed37d8eb09583b86e3cdd9f5d1b56c42a0
imgteam
parents:
diff changeset
19 except those where we *know* that they are *not* single-frame.
0b5ddf7b2924 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_feature_extraction/ commit bb2d58ed37d8eb09583b86e3cdd9f5d1b56c42a0
imgteam
parents:
diff changeset
20 -->
0b5ddf7b2924 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_feature_extraction/ commit bb2d58ed37d8eb09583b86e3cdd9f5d1b56c42a0
imgteam
parents:
diff changeset
21 <validator type="expression" message="Dataset is a multi-frame image"
0b5ddf7b2924 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_feature_extraction/ commit bb2d58ed37d8eb09583b86e3cdd9f5d1b56c42a0
imgteam
parents:
diff changeset
22 ><![CDATA[getattr(value.metadata, "frames", None) in (None, '') or int(value.metadata.frames) < 2]]></validator>
0b5ddf7b2924 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_feature_extraction/ commit bb2d58ed37d8eb09583b86e3cdd9f5d1b56c42a0
imgteam
parents:
diff changeset
23 </xml>
0b5ddf7b2924 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_feature_extraction/ commit bb2d58ed37d8eb09583b86e3cdd9f5d1b56c42a0
imgteam
parents:
diff changeset
24
0b5ddf7b2924 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_feature_extraction/ commit bb2d58ed37d8eb09583b86e3cdd9f5d1b56c42a0
imgteam
parents:
diff changeset
25 <xml name="validators/is_2d">
0b5ddf7b2924 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_feature_extraction/ commit bb2d58ed37d8eb09583b86e3cdd9f5d1b56c42a0
imgteam
parents:
diff changeset
26 <!--
0b5ddf7b2924 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_feature_extraction/ commit bb2d58ed37d8eb09583b86e3cdd9f5d1b56c42a0
imgteam
parents:
diff changeset
27 The OME-Zarr datatype in Galaxy is currently not derived from the Image datatype, and it does
0b5ddf7b2924 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_feature_extraction/ commit bb2d58ed37d8eb09583b86e3cdd9f5d1b56c42a0
imgteam
parents:
diff changeset
28 hence not inherit the metadata fields like `depth`. To cope with that, we allow all datasets
0b5ddf7b2924 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_feature_extraction/ commit bb2d58ed37d8eb09583b86e3cdd9f5d1b56c42a0
imgteam
parents:
diff changeset
29 except those where we *know* that they are *not* 2-D.
0b5ddf7b2924 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_feature_extraction/ commit bb2d58ed37d8eb09583b86e3cdd9f5d1b56c42a0
imgteam
parents:
diff changeset
30 -->
0b5ddf7b2924 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_feature_extraction/ commit bb2d58ed37d8eb09583b86e3cdd9f5d1b56c42a0
imgteam
parents:
diff changeset
31 <validator type="expression" message="Dataset is a 3-D image"
0b5ddf7b2924 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_feature_extraction/ commit bb2d58ed37d8eb09583b86e3cdd9f5d1b56c42a0
imgteam
parents:
diff changeset
32 ><![CDATA[getattr(value.metadata, "depth", None) in (None, '') or int(value.metadata.depth) < 2]]></validator>
0b5ddf7b2924 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_feature_extraction/ commit bb2d58ed37d8eb09583b86e3cdd9f5d1b56c42a0
imgteam
parents:
diff changeset
33 </xml>
0b5ddf7b2924 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_feature_extraction/ commit bb2d58ed37d8eb09583b86e3cdd9f5d1b56c42a0
imgteam
parents:
diff changeset
34
10
519fad2c552a planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_feature_extraction/ commit b8e0b656d417db6e2ad0f187fc3c5afff0c3acd7
imgteam
parents: 8
diff changeset
35 <xml name="validators/is_3d">
519fad2c552a planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_feature_extraction/ commit b8e0b656d417db6e2ad0f187fc3c5afff0c3acd7
imgteam
parents: 8
diff changeset
36 <!--
519fad2c552a planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_feature_extraction/ commit b8e0b656d417db6e2ad0f187fc3c5afff0c3acd7
imgteam
parents: 8
diff changeset
37 The OME-Zarr datatype in Galaxy is currently not derived from the Image datatype, and it does
519fad2c552a planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_feature_extraction/ commit b8e0b656d417db6e2ad0f187fc3c5afff0c3acd7
imgteam
parents: 8
diff changeset
38 hence not inherit the metadata fields like `depth`. To cope with that, we allow all datasets
519fad2c552a planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_feature_extraction/ commit b8e0b656d417db6e2ad0f187fc3c5afff0c3acd7
imgteam
parents: 8
diff changeset
39 except those where we *know* that they are *not* 3-D.
519fad2c552a planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_feature_extraction/ commit b8e0b656d417db6e2ad0f187fc3c5afff0c3acd7
imgteam
parents: 8
diff changeset
40 -->
519fad2c552a planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_feature_extraction/ commit b8e0b656d417db6e2ad0f187fc3c5afff0c3acd7
imgteam
parents: 8
diff changeset
41 <validator type="expression" message="Dataset is a 2-D image"
519fad2c552a planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_feature_extraction/ commit b8e0b656d417db6e2ad0f187fc3c5afff0c3acd7
imgteam
parents: 8
diff changeset
42 ><![CDATA[getattr(value.metadata, "depth", None) in (None, '') or int(value.metadata.depth) >= 2]]></validator>
519fad2c552a planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_feature_extraction/ commit b8e0b656d417db6e2ad0f187fc3c5afff0c3acd7
imgteam
parents: 8
diff changeset
43 </xml>
519fad2c552a planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_feature_extraction/ commit b8e0b656d417db6e2ad0f187fc3c5afff0c3acd7
imgteam
parents: 8
diff changeset
44
8
0b5ddf7b2924 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_feature_extraction/ commit bb2d58ed37d8eb09583b86e3cdd9f5d1b56c42a0
imgteam
parents:
diff changeset
45 <xml name="validators/is_binary">
0b5ddf7b2924 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_feature_extraction/ commit bb2d58ed37d8eb09583b86e3cdd9f5d1b56c42a0
imgteam
parents:
diff changeset
46 <!--
0b5ddf7b2924 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_feature_extraction/ commit bb2d58ed37d8eb09583b86e3cdd9f5d1b56c42a0
imgteam
parents:
diff changeset
47 The OME-Zarr datatype in Galaxy is currently not derived from the Image datatype, and it does
0b5ddf7b2924 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_feature_extraction/ commit bb2d58ed37d8eb09583b86e3cdd9f5d1b56c42a0
imgteam
parents:
diff changeset
48 hence not inherit the metadata fields like `num_unique_values`. To cope with that, we allow all
0b5ddf7b2924 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_feature_extraction/ commit bb2d58ed37d8eb09583b86e3cdd9f5d1b56c42a0
imgteam
parents:
diff changeset
49 datasets except those where we *know* that they are *not* binary.
0b5ddf7b2924 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_feature_extraction/ commit bb2d58ed37d8eb09583b86e3cdd9f5d1b56c42a0
imgteam
parents:
diff changeset
50 -->
0b5ddf7b2924 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_feature_extraction/ commit bb2d58ed37d8eb09583b86e3cdd9f5d1b56c42a0
imgteam
parents:
diff changeset
51 <validator type="expression" message="Dataset is not a binary image"
0b5ddf7b2924 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_feature_extraction/ commit bb2d58ed37d8eb09583b86e3cdd9f5d1b56c42a0
imgteam
parents:
diff changeset
52 ><![CDATA[getattr(value.metadata, "num_unique_values", None) in (None, '') or int(value.metadata.num_unique_values) <= 2]]></validator>
0b5ddf7b2924 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_feature_extraction/ commit bb2d58ed37d8eb09583b86e3cdd9f5d1b56c42a0
imgteam
parents:
diff changeset
53 </xml>
0b5ddf7b2924 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_feature_extraction/ commit bb2d58ed37d8eb09583b86e3cdd9f5d1b56c42a0
imgteam
parents:
diff changeset
54
0b5ddf7b2924 planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/2d_feature_extraction/ commit bb2d58ed37d8eb09583b86e3cdd9f5d1b56c42a0
imgteam
parents:
diff changeset
55 </macros>