comparison imagej2_shadows.xml @ 3:f7ae316b00e4 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:02:30 +0000
parents f3c9192bd0b9
children
comparison
equal deleted inserted replaced
2:f3c9192bd0b9 3:f7ae316b00e4
1 <tool id="imagej2_shadows" name="Add shadow effect" version="@WRAPPER_VERSION@.2"> 1 <tool id="imagej2_shadows" name="Add shadow effect" 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_shadows_jython_script.py' 22 --jython '$__tool_directory__/imagej2_shadows_jython_script.py'
25 '$error_log'
26 '$input_with_ext' 23 '$input_with_ext'
27 '$direction' 24 '$direction'
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 <param name="direction" type="select" label="Direction" help="Light will appear to come from the selected direction"> 31 <param name="direction" type="select" label="Direction" help="Light will appear to come from the selected direction">
40 <option value="East" selected="True">East</option> 32 <option value="East" selected="True">East</option>
52 </outputs> 44 </outputs>
53 <tests> 45 <tests>
54 <test> 46 <test>
55 <param name="input" value="blobs.gif"/> 47 <param name="input" value="blobs.gif"/>
56 <param name="direction" value="Northwest"/> 48 <param name="direction" value="Northwest"/>
57 <output name="output" file="blobs_northwest.gif" compare="sim_size"/> 49 <output name="output" file="blobs_northwest.gif" compare="image_diff"/>
58 </test> 50 </test>
59 </tests> 51 </tests>
60 <help> 52 <help>
61 53
62 **What it does** 54 **What it does**