|
3 | 3 | <macros> |
4 | 4 | <import>creators.xml</import> |
5 | 5 | <import>tests.xml</import> |
6 | | - <token name="@TOOL_VERSION@">3.2.1</token> |
7 | | - <token name="@VERSION_SUFFIX@">3</token> |
| 6 | + <import>validators.xml</import> |
| 7 | + <token name="@TOOL_VERSION@">3.6.1</token> |
| 8 | + <token name="@VERSION_SUFFIX@">0</token> |
8 | 9 | </macros> |
9 | 10 | <creator> |
10 | | - <expand macro="creators/bmcv" /> |
| 11 | + <expand macro="creators/bmcv"/> |
| 12 | + <expand macro="creators/kostrykin"/> |
11 | 13 | </creator> |
12 | 14 | <edam_operations> |
13 | 15 | <edam_operation>operation_3443</edam_operation> |
14 | 16 | </edam_operations> |
| 17 | + <xrefs> |
| 18 | + <xref type="bio.tools">galaxy_image_analysis</xref> |
| 19 | + </xrefs> |
15 | 20 | <requirements> |
16 | 21 | <requirement type="package" version="@TOOL_VERSION@">networkx</requirement> |
17 | | - <requirement type="package" version="1.22">numpy</requirement> |
18 | | - <requirement type="package" version="0.18.1">scikit-image</requirement> |
19 | | - <requirement type="package" version="0.1">giatools</requirement> |
| 22 | + <requirement type="package" version="2.3.5">numpy</requirement> |
| 23 | + <requirement type="package" version="0.25.2">scikit-image</requirement> |
| 24 | + <requirement type="package" version="0.7.3">giatools</requirement> |
| 25 | + <requirement type="package" version="3.10.8">matplotlib-base</requirement> |
| 26 | + <requirement type="package" version="0.12.2">ome-zarr</requirement> |
20 | 27 | </requirements> |
| 28 | + <required_files> |
| 29 | + <include type="glob" path="*.py"/> |
| 30 | + </required_files> |
21 | 31 | <command><![CDATA[ |
22 | 32 |
|
23 | | - ## Inputs |
| 33 | + python '$__tool_directory__/colorize_labels.py' |
24 | 34 |
|
25 | | - python '$__tool_directory__/colorize_labels.py' '$input' |
26 | | - --radius $radius |
27 | | - --bg_label $bg_label |
28 | | - --bg_color '$bg_color' |
| 35 | + #if $input.extension == "zarr" |
| 36 | + '$input.extra_files_path/$input.metadata.store_root' |
| 37 | + #else |
| 38 | + '$input' |
| 39 | + #end if |
29 | 40 |
|
30 | | - ## Outputs |
31 | | -
|
32 | | - --output output.png |
| 41 | + --radius $radius |
| 42 | + --bg_label $bg_label |
| 43 | + --bg_color '$bg_color' |
| 44 | + --phase $phase |
| 45 | + --output output.png |
33 | 46 |
|
34 | 47 | ]]> |
35 | 48 | </command> |
36 | 49 | <inputs> |
37 | | - <param name="input" type="data" format="tiff,png" label="Input image (label map)" /> |
38 | | - <param argument="--radius" type="integer" min="1" value="10" label="Radius of the neighborhood" help="Defines the neighborhood (in pixels) where labels are considered to be adjacent." /> |
39 | | - <param argument="--bg_label" type="integer" value="0" label="Background label" /> |
40 | | - <param argument="--bg_color" type="color" value="#000000" label="Background color"/> |
| 50 | + <param name="input" type="data" format="tiff,png,zarr" label="Input image (label map)"> |
| 51 | + <expand macro="validators/is_single_channel"/> |
| 52 | + <expand macro="validators/is_single_frame"/> |
| 53 | + <expand macro="validators/is_2d"/> |
| 54 | + </param> |
| 55 | + <param name="radius" type="integer" min="1" value="10" label="Radius of the neighborhood" help="Defines the neighborhood (in pixels) where labels are considered to be adjacent." /> |
| 56 | + <param name="bg_label" type="integer" value="0" label="Background label" /> |
| 57 | + <param name="bg_color" type="color" value="#000000" label="Background color"/> |
| 58 | + <param name="phase" type="float" min="0" max="1" value="0.55" label="Label phase" |
| 59 | + help="Phase for sampling a color beam. Governs the overall teint of the colorization. Lower values tend to produce bluish colors, while higher values tend to favor reddish colors."/> |
41 | 60 | </inputs> |
42 | 61 | <outputs> |
43 | 62 | <data format="png" name="output" from_work_dir="output.png" /> |
44 | 63 | </outputs> |
45 | 64 | <tests> |
46 | 65 | <!-- int64 --> |
47 | 66 | <test> |
48 | | - <param name="input" value="input1.tiff" /> |
49 | | - <param name="radius" value="1" /> |
50 | | - <param name="bg_label" value="0" /> |
51 | | - <param name="bg_color" value="#5a5a5a" /> |
| 67 | + <param name="input" value="input1.tiff"/> |
| 68 | + <param name="radius" value="1"/> |
| 69 | + <param name="bg_label" value="0"/> |
| 70 | + <param name="bg_color" value="#5a5a5a"/> |
| 71 | + <param name="phase" value="0" /> |
52 | 72 | <expand macro="tests/intensity_image_diff" name="output" value="output1.png" ftype="png"> |
53 | 73 | <has_image_channels channels="3"/> |
54 | 74 | </expand> |
55 | 75 | </test> |
56 | | - <!-- uint8 --> |
| 76 | + <!-- uint8, background label does not exist in image --> |
57 | 77 | <test> |
58 | | - <param name="input" value="input2.tiff" /> |
59 | | - <param name="radius" value="10" /> |
60 | | - <param name="bg_label" value="0" /> |
61 | | - <param name="bg_color" value="#ffffff" /> |
| 78 | + <param name="input" value="input2.tiff"/> |
| 79 | + <param name="radius" value="10"/> |
| 80 | + <param name="bg_label" value="0"/> |
| 81 | + <param name="bg_color" value="#ffffff"/> |
| 82 | + <param name="phase" value="0.55"/> |
62 | 83 | <expand macro="tests/intensity_image_diff" name="output" value="output2.png" ftype="png"> |
63 | 84 | <has_image_channels channels="3"/> |
64 | 85 | </expand> |
65 | 86 | </test> |
| 87 | + <!-- uint8, Zarr --> |
| 88 | + <test> |
| 89 | + <param name="input" value="input13.zarr"/> |
| 90 | + <param name="radius" value="100"/> |
| 91 | + <param name="bg_label" value="0"/> |
| 92 | + <param name="bg_color" value="#ffffff"/> |
| 93 | + <param name="phase" value="1.0"/> |
| 94 | + <expand macro="tests/intensity_image_diff" name="output" value="output13.png" ftype="png"> |
| 95 | + <has_image_channels channels="3"/> |
| 96 | + </expand> |
| 97 | + </test> |
66 | 98 | <!-- uint16 --> |
67 | 99 | <test> |
68 | | - <param name="input" value="input3.tiff" /> |
69 | | - <param name="radius" value="100" /> |
70 | | - <param name="bg_label" value="0" /> |
71 | | - <param name="bg_color" value="#ffffff" /> |
| 100 | + <param name="input" value="input3.tiff"/> |
| 101 | + <param name="radius" value="100"/> |
| 102 | + <param name="bg_label" value="0"/> |
| 103 | + <param name="bg_color" value="#ffffff"/> |
| 104 | + <param name="phase" value="0.55"/> |
72 | 105 | <expand macro="tests/intensity_image_diff" name="output" value="output3.png" ftype="png"> |
73 | 106 | <has_image_channels channels="3"/> |
74 | 107 | </expand> |
|
0 commit comments