comparison imagej2_watershed_binary.xml @ 3:29aca8eebdaa draft default tip

planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/image_processing/imagej2 commit 8f49f3c66b5a1de99ec15e65c2519a56792f1d56
author imgteam
date Wed, 25 Sep 2024 16:00:05 +0000
parents aeae7e29d525
children
comparison
equal deleted inserted replaced
2:aeae7e29d525 3:29aca8eebdaa
1 <tool id="imagej2_watershed_binary" name="Perform segmentation using watershed transformation" version="@WRAPPER_VERSION@.2"> 1 <tool id="imagej2_watershed_binary" name="Perform segmentation using watershed transformation" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="23.0">
2 <description>with ImageJ2</description> 2 <description>with ImageJ2</description>
3 <macros> 3 <macros>
4 <import>imagej2_macros.xml</import> 4 <import>imagej2_macros.xml</import>
5 </macros> 5 </macros>
6 <edam_operations> 6 <edam_operations>
11 <xref type="biii">imagej2</xref> 11 <xref type="biii">imagej2</xref>
12 </xrefs> 12 </xrefs>
13 <expand macro="fiji_requirements"/> 13 <expand macro="fiji_requirements"/>
14 <command detect_errors="exit_code"><![CDATA[ 14 <command detect_errors="exit_code"><![CDATA[
15 #import os 15 #import os
16 #set error_log = 'output_log.txt'
17 touch '$error_log' &&
18 #set input_sans_ext = $os.path.splitext($os.path.basename($input.file_name))[0] 16 #set input_sans_ext = $os.path.splitext($os.path.basename($input.file_name))[0]
19 #set input_with_ext = '.'.join([input_sans_ext, $input.ext]) 17 #set input_with_ext = './' + '.'.join([input_sans_ext, $input.ext])
20 ln -s '$input.file_name' '$input_with_ext' && 18 ln -s '$input.file_name' '$input_with_ext' &&
21 #set output_filename = '.'.join(['output', $input.ext]) 19 #set output_filename = '.'.join(['output', $input.ext])
22 touch '$output_filename' && 20 touch '$output_filename' &&
23 ImageJ --ij2 --headless --debug 21 ImageJ --ij2 --headless --debug
24 --jython '$__tool_directory__/imagej2_watershed_binary_jython_script.py' 22 --jython '$__tool_directory__/imagej2_watershed_binary_jython_script.py'
25 '$error_log'
26 '$input_with_ext' 23 '$input_with_ext'
27 '$black_background' 24 '$black_background'
28 '$output_filename' 25 '$output_filename'
29 '$input.ext' 26 '$input.ext'
30 &>'$error_log'; 27 && mv '$output_filename' '$output';
31 if [[ $? -ne 0 ]]; then
32 cat '$error_log' >&2;
33 else
34 mv '$output_filename' '$output';
35 fi
36 ]]></command> 28 ]]></command>
37 <inputs> 29 <inputs>
38 <expand macro="param_input"/> 30 <expand macro="param_input"/>
39 <expand macro="black_background_param"/> 31 <expand macro="black_background_param"/>
40 </inputs> 32 </inputs>
42 <data name="output" format_source="input" label="${tool.name} on ${on_string}"/> 34 <data name="output" format_source="input" label="${tool.name} on ${on_string}"/>
43 </outputs> 35 </outputs>
44 <tests> 36 <tests>
45 <test> 37 <test>
46 <param name="input" value="blobs.gif"/> 38 <param name="input" value="blobs.gif"/>
47 <output name="output" file="blobs_watershed_binary.gif" compare="sim_size"/> 39 <output name="output" file="blobs_watershed_binary.gif" compare="image_diff"/>
40 </test>
41 <test>
42 <param name="input" value="confocal-series-first-channel_threshold_default.tiff"/>
43 <param name="black_background" value="yes"/>
44 <output name="output" file="confocal-series-first-channel_default_threshold_watershed.tiff" compare="sim_size"/>
48 </test> 45 </test>
49 </tests> 46 </tests>
50 <help> 47 <help>
51 .. class:: warningmark 48 .. class:: warningmark
52 49