Mercurial > repos > imgteam > imagej2_find_edges
comparison imagej2_find_edges.xml @ 3:633bea9c8ee0 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 15:57:43 +0000 |
parents | 5023cbf98ca3 |
children |
comparison
equal
deleted
inserted
replaced
2:5023cbf98ca3 | 3:633bea9c8ee0 |
---|---|
1 <tool id="imagej2_find_edges" name="Find edges" version="@WRAPPER_VERSION@.2"> | 1 <tool id="imagej2_find_edges" name="Find edges" 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 #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] |
18 #set input_with_ext = '.'.join([input_sans_ext, $input.ext]) | 17 #set input_with_ext = './' + '.'.join([input_sans_ext, $input.ext]) |
19 ln -s '$input.file_name' '$input_with_ext' && | 18 ln -s '$input.file_name' '$input_with_ext' && |
20 #set output_filename = '.'.join(['output', $input.ext]) | 19 #set output_filename = '.'.join(['output', $input.ext]) |
21 touch '$output_filename' && | 20 touch '$output_filename' && |
22 ImageJ --ij2 --headless --debug | 21 ImageJ --ij2 --headless --debug |
23 --jython '$__tool_directory__/imagej2_find_edges_jython_script.py' | 22 --jython '$__tool_directory__/imagej2_find_edges_jython_script.py' |
24 '$error_log' | |
25 '$input_with_ext' | 23 '$input_with_ext' |
26 '$output_filename' | 24 '$output_filename' |
27 '$input.ext' | 25 '$input.ext' |
28 &>'$error_log'; | 26 && mv '$output_filename' '$output'; |
29 if [[ $? -ne 0 ]]; then | |
30 cat '$error_log' >&2; | |
31 else | |
32 mv '$output_filename' '$output'; | |
33 fi | |
34 ]]></command> | 27 ]]></command> |
35 <inputs> | 28 <inputs> |
36 <expand macro="param_input"/> | 29 <expand macro="param_input"/> |
37 </inputs> | 30 </inputs> |
38 <outputs> | 31 <outputs> |
39 <data name="output" format_source="input"/> | 32 <data name="output" format_source="input"/> |
40 </outputs> | 33 </outputs> |
41 <tests> | 34 <tests> |
42 <test> | 35 <test> |
43 <param name="input" value="blobs.gif"/> | 36 <param name="input" value="blobs.gif"/> |
44 <output name="output" file="blobs_find_edges.gif" compare="sim_size"/> | 37 <output name="output" file="blobs_find_edges.gif" compare="image_diff"/> |
45 </test> | 38 </test> |
46 </tests> | 39 </tests> |
47 <help> | 40 <help> |
48 | 41 |
49 **What it does** | 42 **What it does** |