comparison tomo/tomo_reconstruct.xml @ 66:3b1dbe3fb91b draft

planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
author ximgchess
date Mon, 24 Apr 2023 16:39:59 +0000
parents
children 0473fdc7f9b0
comparison
equal deleted inserted replaced
65:3af7a69bd3d6 66:3b1dbe3fb91b
1 <tool id="CHAP_tomo_reconstruct" name="Tomo Reconstruct" version="@TOOL_VERSION@+galaxy0" profile="@PROFILE@" python_template_version="@PYTHON_TEMPLATE_VERSION@">
2 <description>Reconstruct tomography stacks</description>
3 <macros>
4 <import>tomo_macros.xml</import>
5 </macros>
6 <expand macro="requirements"/>
7 <command detect_errors="exit_code">
8 <![CDATA[
9 mkdir tomo_reconstruct_plots;
10 $__tool_directory__/../pip_install.sh 'certif-pyspec==1.5.3' &&
11 cp $input_file reduced.nex &&
12 cp $center_file centers.yaml &&
13 cp $tool_config reconstruct.yaml
14 CHAP --config
15 $__tool_directory__/pipeline_reconstruct.yaml
16 ]]>
17 </command>
18 <configfiles>
19 <configfile name="tool_config">
20 <![CDATA[#slurp
21 #echo 'x_bounds:' #
22 #if str($x_bounds.type_selector) == "full_range"
23 #echo '- -1' #
24 #echo '- -1' #
25 #else
26 #echo '- ' + str($x_bounds.low) #
27 #echo '- ' + str($x_bounds.upp) #
28 #end if
29 #echo 'y_bounds:' #
30 #if str($y_bounds.type_selector) == "full_range"
31 #echo '- -1' #
32 #echo '- -1' #
33 #else
34 #echo '- ' + str($y_bounds.low) #
35 #echo '- ' + str($y_bounds.upp) #
36 #end if
37 ]]>
38 </configfile>
39 </configfiles>
40 <inputs>
41 <param name="input_file" type="data" format="nex" optional="false" label="Reduce tomography data file"/>
42 <param name="center_file" type="data" format="yaml" optional="false" label="Rotation axis centers data file"/>
43 <conditional name="x_bounds">
44 <param name="type_selector" type="select" label="Choose reconstructed image range in the x-direction">
45 <option value="full_range" selected="true">Use the full image range</option>
46 <option value="enter_range">Manually enter the image range in the x-direction</option>
47 </param>
48 <when value="full_range"/>
49 <when value="enter_range">
50 <param name="low" type="integer" value="-1" optional="false" label="Lower image x-range index"/>
51 <param name="upp" type="integer" value="-1" optional="false" label="Upper image x-range index"/>
52 </when>
53 </conditional>
54 <conditional name="y_bounds">
55 <param name="type_selector" type="select" label="Choose reconstructed image range in the y-direction">
56 <option value="full_range" selected="true">Use the full image range</option>
57 <option value="enter_range">Manually enter the image range in the y-direction</option>
58 </param>
59 <when value="full_range"/>
60 <when value="enter_range">
61 <param name="low" type="integer" value="-1" optional="false" label="Lower image y-range index"/>
62 <param name="upp" type="integer" value="-1" optional="false" label="Upper image y-range index"/>
63 </when>
64 </conditional>
65 </inputs>
66 <outputs>
67 <data name="tool_config" format="yaml" label="Tool config" from_work_dir="reconstruct.yaml" hidden="false"/>
68 <collection name="tomo_reconstruct_plots" type="list" label="Data reconstruction images">
69 <discover_datasets pattern="__name_and_ext__" directory="tomo_reconstruct_plots"/>
70 </collection>
71 <data name="output_file" format="nex" label="Reconstructed tomography data" from_work_dir="output.nex"/>
72 </outputs>
73 <help>
74 <![CDATA[
75 usage: PROG [-h] [--config CONFIG] [--verbose]
76
77 options:
78 -h, --help show this help message and exit
79 --config CONFIG Input configuration file
80 --verbose verbose output
81
82 ]]>
83 </help>
84 <expand macro="citations"/>
85 </tool>