This repository was archived by the owner on Aug 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtomo_reduce.xml
More file actions
58 lines (58 loc) · 2.58 KB
/
Copy pathtomo_reduce.xml
File metadata and controls
58 lines (58 loc) · 2.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<tool id="tomo_reduce" name="Tomo Reduce" version="1.0.0" python_template_version="3.9">
<description>Reduce tomography images</description>
<macros>
<import>tomo_macros.xml</import>
</macros>
<expand macro="requirements"/>
<command detect_errors="exit_code">
<![CDATA[
mkdir tomo_reduce_plots;
$__tool_directory__/tomo_reduce.py
--input_file "$input_file"
--output_file "output.nex"
--galaxy_flag
#if str($station.type_selector) == "id3b"
#if str($station.img_bounds.type_selector) == "enter_range"
--img_x_bounds $station.img_bounds.low $station.img_bounds.upp
#end if
#end if
-l "$log"
]]>
</command>
<inputs>
<param name="input_file" type="data" optional="false" label="Input file"/>
<conditional name="station">
<param name="type_selector" type="select" display="radio" label="Choose station">
<option value="id3a" selected="true">id3a (SMB)</option>
<option value="id3b">id3b (FMB)</option>
</param>
<when value="id3a"/>
<when value="id3b">
<conditional name="img_bounds">
<param name="type_selector" type="select" display="radio" label="Choose image range for data reduction">
<option value="enter_range" selected="true">Manually enter the image range</option>
<option value="full_range">Use the full image range</option>
</param>
<when value="enter_range">
<param name="low" type="integer" value="-1" optional="false" label="Lower image range index in vertical direction"/>
<param name="upp" type="integer" value="-1" optional="false" label="Upper image range index in vertical direction"/>
</when>
<when value="full_range"/>
</conditional>
</when>
</conditional>
</inputs>
<outputs>
<expand macro="common_outputs"/>
<collection name="tomo_reduce_plots" type="list" label="Data reduction images">
<discover_datasets pattern="__name_and_ext__" directory="tomo_reduce_plots"/>
</collection>
<data name="output_file" format="nex" label="Reduced tomography data" from_work_dir="output.nex"/>
</outputs>
<help>
<![CDATA[
Reduce tomography images.
]]>
</help>
<expand macro="citations"/>
</tool>