comparison imagej2_create_image.xml @ 0:dc3935a0165a draft

"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/image_processing/imagej2 commit b08f0e6d1546caaf627b21f8c94044285d5d5b9c-dirty"
author imgteam
date Tue, 17 Sep 2019 16:57:52 -0400
parents
children 1a7c29d5fc11
comparison
equal deleted inserted replaced
-1:000000000000 0:dc3935a0165a
1 <?xml version='1.0' encoding='UTF-8'?>
2 <tool id="imagej2_create_image" name="Create new image" version="@WRAPPER_VERSION@.0">
3 <description></description>
4 <macros>
5 <import>imagej2_macros.xml</import>
6 </macros>
7 <expand macro="fiji_requirements" />
8 <command>
9 <![CDATA[
10 python $__tool_directory__/imagej2_create_image.py
11 --width $width
12 --height $height
13 --depth $depth
14 --image_type $image_type
15 --image_title "$image_title"
16 --jython_script $__tool_directory__/imagej2_create_image_jython_script.py
17 --output_datatype $output_datatype
18 --out_fname "$output"
19 ]]>
20 </command>
21 <inputs>
22 <expand macro="image_type" />
23 <param name="image_title" type="text" label="Image title" help="Leave blank for no title" />
24 <param name="width" type="integer" value="512" min="1" label="Image width in pixels" />
25 <param name="height" type="integer" value="512" min="1" label="Image height in pixels" />
26 <param name="depth" type="integer" value="1" min="1" label="Image depth" help="Specifies the number of stack slices" />
27 <param name="output_datatype" type="select" label="Save as format">
28 <expand macro="image_datatypes" />
29 </param>
30 </inputs>
31 <outputs>
32 <data name="output" format="jpg">
33 <actions>
34 <action type="format">
35 <option type="from_param" name="output_datatype" />
36 </action>
37 </actions>
38 </data>
39 </outputs>
40 <tests>
41 <test>
42 <param name="image_type" value="8-bit_ramp" />
43 <param name="image_title" value="MyTitle" />
44 <param name="width" value="256" />
45 <param name="height" value="256" />
46 <param name="depth" value="1" />
47 <param name="output_datatype" value="jpg" />
48 <output name="output" file="create_image1.jpg" ftype="jpg" />
49 </test>
50 </tests>
51 <help>
52 **What it does**
53
54 <![CDATA[
55 Creates a new image based on the following entries.
56
57 - **Type** specifies the image type "8-bit", "16-bit", "32-bit" or "RGB" with options
58 - **Title** is associated with the image, but not displayed in the image
59 - **Width** specifies the width of the image in pixels
60 - **Height** specifies the height of the image in pixels
61 - **Depth** specifies the number of stack slices
62 - **Format** specifies the image format "jpg", "png", etc
63 ]]>
64
65 </help>
66 <expand macro="fiji_headless_citations" />
67 </tool>