Mercurial > repos > imgteam > imagej2_make_binary
comparison imagej2_make_binary.xml @ 1:6e8be21a505c draft
"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/image_processing/imagej2 commit 2afb24f3c81d625312186750a714d702363012b5"
author | imgteam |
---|---|
date | Mon, 28 Sep 2020 16:53:58 +0000 |
parents | baa308e2533a |
children | d3e8ef83f3bf |
comparison
equal
deleted
inserted
replaced
0:baa308e2533a | 1:6e8be21a505c |
---|---|
1 <?xml version='1.0' encoding='UTF-8'?> | |
2 <tool id="imagej2_make_binary" name="Convert to binary" version="@WRAPPER_VERSION@.0"> | 1 <tool id="imagej2_make_binary" name="Convert to binary" version="@WRAPPER_VERSION@.0"> |
3 <description>(black and white)</description> | 2 <description>(black and white)</description> |
4 <macros> | 3 <macros> |
5 <import>imagej2_macros.xml</import> | 4 <import>imagej2_macros.xml</import> |
6 </macros> | 5 </macros> |
7 <expand macro="fiji_requirements" /> | 6 <expand macro="fiji_requirements"/> |
8 <command> | 7 <command detect_errors="exit_code"><![CDATA[ |
9 <![CDATA[ | 8 #import os |
10 python $__tool_directory__/imagej2_make_binary.py | 9 #set error_log = 'output_log.txt' |
11 --input "$input" | 10 #set input_sans_ext = $os.path.splitext($os.path.basename($input.file_name))[0] |
12 --input_datatype $input.ext | 11 #set input_with_ext = '.'.join([input_sans_ext, $input.ext]) |
13 @make_binary_args@ | 12 ln -s '$input.file_name' '$input_with_ext' && |
14 --jython_script $__tool_directory__/imagej2_make_binary_jython_script.py | 13 #set output_filename = '.'.join(['output', $input.ext]) |
15 --output_datatype $output.ext | 14 touch '$output_filename' && |
16 --output "$output" | 15 touch '$error_log' && |
17 ]]> | 16 ImageJ --ij2 --headless --debug |
18 </command> | 17 --jython '$__tool_directory__/imagej2_make_binary_jython_script.py' |
18 '$error_log' | |
19 '$input_with_ext' | |
20 $iterations | |
21 $count | |
22 '$black_background' | |
23 '$pad_edges_when_eroding' | |
24 '$output_filename' | |
25 '$input.ext' | |
26 &>'$error_log'; | |
27 if [[ $? -ne 0 ]]; then | |
28 cat '$error_log' >&2; | |
29 else | |
30 mv '$output_filename' '$output'; | |
31 fi | |
32 ]]></command> | |
19 <inputs> | 33 <inputs> |
20 <param format="bmp,eps,gif,jpg,pcx,pgm,png,psd,tiff" name="input" type="data" label="Select image"/> | 34 <expand macro="param_input"/> |
21 <expand macro="make_binary_params" /> | 35 <expand macro="make_binary_params"/> |
22 </inputs> | 36 </inputs> |
23 <outputs> | 37 <outputs> |
24 <data name="output" format_source="input" label="${tool.name} on ${on_string}"/> | 38 <data name="output" format_source="input"/> |
25 </outputs> | 39 </outputs> |
26 <tests> | 40 <tests> |
27 <test> | 41 <test> |
28 <param name="input" value="clown.jpg" /> | 42 <param name="input" value="clown.jpg"/> |
29 <param name="input_datatype" value="jpg" /> | 43 <output name="output" file="clown_binary.jpg" compare="sim_size"/> |
30 <param name="iterations" value="1" /> | |
31 <param name="count" value="1" /> | |
32 <param name="black_background" value="no" /> | |
33 <param name="pad_edges_when_eroding" value="no" /> | |
34 <param name="output_datatype" value="jpg" /> | |
35 <output name="output" file="clown_binary.jpg" compare="sim_size" /> | |
36 </test> | 44 </test> |
37 </tests> | 45 </tests> |
38 <help> | 46 <help> |
39 **What it does** | 47 **What it does** |
40 | 48 |
48 - **Pad edges when eroding** - If **Yes**, eroding does not erode from the edges of the image. | 56 - **Pad edges when eroding** - If **Yes**, eroding does not erode from the edges of the image. |
49 | 57 |
50 ]]> | 58 ]]> |
51 | 59 |
52 </help> | 60 </help> |
53 <expand macro="fiji_headless_citations" /> | 61 <expand macro="fiji_headless_citations"/> |
54 </tool> | 62 </tool> |