Mercurial > repos > ximgchess > chap_test_20230411
comparison tomo/tomo_reduce.xml @ 1:84a215623d9e draft
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
author | ximgchess |
---|---|
date | Tue, 11 Apr 2023 15:49:53 +0000 |
parents | |
children | 79081cef336b |
comparison
equal
deleted
inserted
replaced
0:47d2a1f087d1 | 1:84a215623d9e |
---|---|
1 <tool id="CHAP_tomo_reduce" name="Tomo Reduce" version="@TOOL_VERSION@+galaxy0" profile="@PROFILE@" python_template_version="@PYTHON_TEMPLATE_VERSION@"> | |
2 <description>Reduce tomography images</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_reduce_plots; | |
10 pip --exists-action i install certif-pyspec==1.5.3 && | |
11 #if str($map.type_selector) == "YAML" | |
12 cp '$input_file' map.yaml && | |
13 #else | |
14 cp '$input_file' setup.nex && | |
15 #end if | |
16 cp '$tool_config' reduce.yaml && | |
17 CHAP --config | |
18 #if str($map.type_selector) == "YAML" | |
19 '$__tool_directory__/pipeline_reduce_yaml.yaml' | |
20 #else | |
21 '$__tool_directory__/pipeline_reduce_nexus.yaml' | |
22 #end if | |
23 ]]> | |
24 </command> | |
25 <configfiles> | |
26 <configfile name="tool_config"> | |
27 <![CDATA[#slurp | |
28 #if str($map.type_selector) == "YAML" | |
29 #if str($detector.type_selector) == "andor2" | |
30 #cat andor2.yaml | |
31 #elif str($detector.type_selector) == "manta" | |
32 #cat manta.yaml | |
33 #else str($detector.type_selector) == "retiga" | |
34 #cat retiga.yaml | |
35 #end if | |
36 #end if | |
37 #echo 'img_x_bounds:' # | |
38 #if str($img_x_bounds.type_selector) == "full_range" | |
39 #echo '- -1' | |
40 #echo '- -1' | |
41 #else | |
42 #echo '- ' + str($img_x_bounds.low) | |
43 #echo '- ' + str($img_x_bounds.upp) | |
44 #end if | |
45 ]]> | |
46 </configfile> | |
47 </configfiles> | |
48 <inputs> | |
49 <conditional name="map"> | |
50 <param name="type_selector" type="select" display="radio" label="Choose map file type"> | |
51 <option value="yaml">YAML</option> | |
52 <option value="nexus">NeXus</option> | |
53 </param> | |
54 <when value="yaml"> | |
55 <param name="input_file" type="data" format="yaml" optional="false" label="Map config file"/> | |
56 <conditional name="detector"> | |
57 <param name="type_selector" type="select" display="radio" label="Choose detector prefix"> | |
58 <option value="andor2">andor2</option> | |
59 <option value="manta">manta</option> | |
60 <option value="retiga">retiga</option> | |
61 </param> | |
62 <when value="andor2"/> | |
63 <when value="manta"/> | |
64 <when value="retiga"/> | |
65 </conditional> | |
66 </when> | |
67 <when value="nexus"> | |
68 <param name="input_file" type="data" format="nex" optional="false" label="Tomography setup file"/> | |
69 </when> | |
70 </conditional> | |
71 <conditional name="img_x_bounds"> | |
72 <param name="type_selector" type="select" label="Choose vertical detector image bounds"> | |
73 <option value="full_range" selected="true">Use the full image range</option> | |
74 <option value="enter_range">Manually enter the image range</option> | |
75 </param> | |
76 <when value="full_range"/> | |
77 <when value="enter_range"> | |
78 <param name="low" type="integer" value="-1" optional="false" label="Lower image range index"/> | |
79 <param name="upp" type="integer" value="-1" optional="false" label="Upper image range index"/> | |
80 </when> | |
81 </conditional> | |
82 </inputs> | |
83 <outputs> | |
84 <data name="tool_config" format="yaml" label="Tool config" from_work_dir="reduce.yaml" hidden="false"/> | |
85 <collection name="tomo_reduce_plots" type="list" label="Data reduction images"> | |
86 <discover_datasets pattern="__name_and_ext__" directory="tomo_reduce_plots"/> | |
87 </collection> | |
88 <data name="output_file" format="nex" label="Reduced tomography data" from_work_dir="output.nex"/> | |
89 </outputs> | |
90 <help> | |
91 <![CDATA[ | |
92 usage: PROG [-h] [--config CONFIG] [--verbose] | |
93 | |
94 options: | |
95 -h, --help show this help message and exit | |
96 --config CONFIG Input configuration file | |
97 --verbose verbose output | |
98 | |
99 ]]> | |
100 </help> | |
101 <expand macro="citations"/> | |
102 </tool> |