Mercurial > repos > imgteam > crop_image
annotate crop_image.xml @ 1:2852af87036d draft default tip
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
| author | imgteam |
|---|---|
| date | Fri, 09 Jan 2026 14:55:04 +0000 |
| parents | d52317f0ac21 |
| children |
| rev | line source |
|---|---|
|
0
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
1 <tool id="ip_crop_image" name="Crop image" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="20.05"> |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
2 <description>with giatools</description> |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
3 <macros> |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
4 <import>creators.xml</import> |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
5 <import>tests.xml</import> |
|
1
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
6 <token name="@TOOL_VERSION@">0.7.3</token> |
|
0
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
7 <token name="@VERSION_SUFFIX@">0</token> |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
8 </macros> |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
9 <creator> |
|
1
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
10 <expand macro="creators/bmcv"/> |
|
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
11 <expand macro="creators/kostrykin"/> |
|
0
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
12 </creator> |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
13 <edam_operations> |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
14 <edam_operation>operation_3443</edam_operation> |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
15 </edam_operations> |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
16 <xrefs> |
|
1
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
17 <xref type="bio.tools">galaxy_image_analysis</xref> |
|
0
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
18 <xref type="bio.tools">giatools</xref> |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
19 </xrefs> |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
20 <requirements> |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
21 <requirement type="package" version="@TOOL_VERSION@">giatools</requirement> |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
22 </requirements> |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
23 <command detect_errors="aggressive"><![CDATA[ |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
24 |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
25 mkdir ./output && |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
26 python '$__tool_directory__/crop_image.py' |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
27 |
|
1
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
28 #if $image.extension == "zarr" |
|
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
29 '$image.extra_files_path/$image.metadata.store_root' |
|
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
30 #else |
|
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
31 '$image' |
|
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
32 #end if |
|
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
33 |
|
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
34 #if $labelmap.extension == "zarr" |
|
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
35 '$labelmap.extra_files_path/$labelmap.metadata.store_root' |
|
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
36 #else |
|
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
37 '$labelmap' |
|
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
38 #end if |
|
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
39 |
|
0
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
40 '$skip_labels' |
|
1
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
41 |
|
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
42 #if str($image.ext).lower() == 'png' |
|
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
43 'png' |
|
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
44 #else |
|
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
45 'tiff' |
|
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
46 #end if |
|
0
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
47 |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
48 ./output |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
49 |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
50 ]]></command> |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
51 <inputs> |
|
1
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
52 <param name="image" type="data" format="png,tiff,zarr" label="Image file" |
|
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
53 help="The image to be cropped."/> |
|
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
54 <param name="labelmap" type="data" format="png,tiff,zarr" label="Label map" |
|
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
55 help="Each label identifies an individual region of interest, for which a cropped image is produced."/> |
|
0
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
56 <param name="skip_labels" type="text" label="Skip labels" value="0" optional="true" help="Comma-separated list of labels for which no cropped image shall be produced."> |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
57 <validator type="regex">^\d+(,\d+)*$|^$</validator> |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
58 </param> |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
59 </inputs> |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
60 <outputs> |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
61 <collection type="list" name="output" label="Crop ${on_string}" format_source="image"> |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
62 <discover_datasets directory="output" pattern="__name_and_ext__"/> |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
63 </collection> |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
64 </outputs> |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
65 <tests> |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
66 <!-- Test 2D TIFF --> |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
67 <test> |
|
1
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
68 <param name="image" value="yx_float32.tiff"/> |
|
0
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
69 <param name="labelmap" value="yx_uint8.tiff"/> |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
70 <output_collection name="output" type="list" count="2"> |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
71 <expand macro="tests/intensity_image_diff/element" name="1" value="yx_float32_uint8_1.tiff" ftype="tiff"/> |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
72 <expand macro="tests/intensity_image_diff/element" name="2" value="yx_float32_uint8_2.tiff" ftype="tiff"/> |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
73 </output_collection> |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
74 </test> |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
75 <!-- Test with `skip_labels` --> |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
76 <test> |
|
1
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
77 <param name="image" value="yx_float32.tiff"/> |
|
0
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
78 <param name="labelmap" value="yx_uint8.tiff"/> |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
79 <param name="skip_labels" value="0,1"/> |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
80 <output_collection name="output" type="list" count="1"> |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
81 <expand macro="tests/intensity_image_diff/element" name="2" value="yx_float32_uint8_2.tiff" ftype="tiff"/> |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
82 </output_collection> |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
83 </test> |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
84 <!-- Test with empty `skip_labels` --> |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
85 <test> |
|
1
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
86 <param name="image" value="yx_float32.tiff"/> |
|
0
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
87 <param name="labelmap" value="yx_uint8.tiff"/> |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
88 <param name="skip_labels" value=""/> |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
89 <output_collection name="output" type="list" count="3"> |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
90 <expand macro="tests/intensity_image_diff/element" name="0" value="yx_float32_uint8_0.tiff" ftype="tiff"/> |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
91 <expand macro="tests/intensity_image_diff/element" name="1" value="yx_float32_uint8_1.tiff" ftype="tiff"/> |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
92 <expand macro="tests/intensity_image_diff/element" name="2" value="yx_float32_uint8_2.tiff" ftype="tiff"/> |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
93 </output_collection> |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
94 </test> |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
95 <!-- Test 3D TIFF (multi-frame) --> |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
96 <test> |
|
1
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
97 <param name="image" value="zyx_uint16.tiff"/> |
|
0
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
98 <param name="labelmap" value="yxz_uint8.tiff"/> |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
99 <output_collection name="output" type="list" count="1"> |
|
1
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
100 <expand macro="tests/intensity_image_diff/element" name="1" value="zyx_uint16_uint8_1.tiff" ftype="tiff"> |
|
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
101 <has_image_width width="5"/> |
|
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
102 <has_image_height height="3"/> |
|
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
103 <has_image_depth depth="6"/> |
|
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
104 </expand> |
|
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
105 </output_collection> |
|
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
106 </test> |
|
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
107 <!-- Test PNG (multi-channel) --> |
|
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
108 <test> |
|
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
109 <param name="image" value="yxc_uint8.png"/> |
|
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
110 <param name="labelmap" value="yxc_uint8_mask.png"/> |
|
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
111 <output_collection name="output" type="list" count="1"> |
|
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
112 <expand macro="tests/intensity_image_diff/element" name="2" value="yxc_uint8_uint8_2.png" ftype="png"> |
|
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
113 <has_image_width width="10"/> |
|
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
114 <has_image_height height="12"/> |
|
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
115 <has_image_channels channels="3"/> |
|
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
116 </expand> |
|
0
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
117 </output_collection> |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
118 </test> |
|
1
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
119 <!-- Test PNG+Zarr (multi-channel `image` PNG with single-channel `labelmap` Zarr) --> |
|
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
120 <test> |
|
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
121 <param name="image" value="yxc_uint8.png"/> |
|
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
122 <param name="labelmap" value="yx_uint8_mask.zarr"/> |
|
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
123 <output_collection name="output" type="list" count="1"> |
|
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
124 <expand macro="tests/intensity_image_diff/element" name="2" value="yxc_uint8_uint8_2.png" ftype="png"> |
|
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
125 <has_image_width width="10"/> |
|
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
126 <has_image_height height="12"/> |
|
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
127 <has_image_channels channels="3"/> |
|
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
128 </expand> |
|
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
129 </output_collection> |
|
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
130 </test> |
|
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
131 <!-- Test Zarr+TIFF (multi-channel `image` Zarr with single-channel `labelmap` TIFF) --> |
|
0
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
132 <test> |
|
1
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
133 <param name="image" value="cyx_uint8.zarr"/> |
|
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
134 <param name="labelmap" value="yx_uint8_mask.tiff"/> |
|
0
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
135 <output_collection name="output" type="list" count="1"> |
|
1
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
136 <!-- |
|
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
137 OME-Zarr requires a specific axes order. For this reason, it is not possible to generally write "any" image as an OME-Zarr. |
|
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
138 This would require adapting the axes order, which is do-able, but changes the image. This might be unintended or unexpected |
|
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
139 in many cases, which is why it is not happening automatically. We might change this behaviour somehow in the future. |
|
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
140 --> |
|
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
141 <expand macro="tests/intensity_image_diff/element" name="2" value="cyx_uint8_uint8.tiff" ftype="tiff"> |
|
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
142 <has_image_width width="10"/> |
|
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
143 <has_image_height height="12"/> |
|
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
144 <has_image_channels channels="3"/> |
|
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
145 </expand> |
|
0
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
146 </output_collection> |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
147 </test> |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
148 </tests> |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
149 <help> |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
150 |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
151 **Crops an image using one or more regions of interest.** |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
152 |
|
1
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
153 The image is cropped using a label map that identifies individual regions of interest. The image and the label map must be of |
|
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
154 compatible size. The sizes are compatible if they are equal, or, if the label map can be broadcasted to the size of the image |
|
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
155 (e.g., if the image is a multi-channel image and the label map is single-channel but has identical width and height). |
|
0
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
156 |
|
1
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
157 This operation preserves the brightness and the range of values of the input image. The file format is also preserved, unless |
|
2852af87036d
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 52a95105291e38f3410e347ed3b60d6acd6d5daa
imgteam
parents:
0
diff
changeset
|
158 the input image is a Zarr, for which the output image file format is TIFF. |
|
0
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
159 |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
160 </help> |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
161 <citations> |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
162 <citation type="doi">10.1016/j.jbiotec.2017.07.019</citation> |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
163 </citations> |
|
d52317f0ac21
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/crop_image/ commit 7a5037206d267aa7d9b7e5e062327c3464942471
imgteam
parents:
diff
changeset
|
164 </tool> |
