This repository has been 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
/
Copy pathtomo_reconstruct.xml
61 lines (61 loc) · 3.02 KB
/
tomo_reconstruct.xml
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
59
60
61
<tool id="tomo_reconstruct" name="Tomo Reconstruction" version="1.0.0" python_template_version="3.9">
<description>Perform a tomography reconstruction</description>
<macros>
<import>tomo_macros.xml</import>
</macros>
<expand macro="requirements"/>
<command detect_errors="exit_code">
<![CDATA[
mkdir tomo_reconstruct_plots;
$__tool_directory__/tomo_reconstruct.py
--input_file "$input_file"
--center_file "$center_file"
--output_file "output.nex"
--galaxy_flag
#if str($x_bounds.type_selector) == "enter_range"
--x_bounds $x_bounds.low $x_bounds.upp
#end if
#if str($y_bounds.type_selector) == "enter_range"
--y_bounds $y_bounds.low $y_bounds.upp
#end if
-l "$log"
]]>
</command>
<inputs>
<param name="input_file" type="data" format="nex" optional="false" label="Reduced tomography data"/>
<param name="center_file" type="data" format="yaml" optional="false" label="Center axis input file"/>
<conditional name="x_bounds">
<param name="type_selector" type="select" label="Choose reconstructed image range in x-direction">
<option value="full_range" selected="true">Use the full image range</option>
<option value="enter_range">Manually enter the image range</option>
</param>
<when value="full_range"/>
<when value="enter_range">
<param name="low" type="integer" value="-1" optional="false" label="Lower image range index in x-direction"/>
<param name="upp" type="integer" value="-1" optional="false" label="Upper image range index in x-direction"/>
</when>
</conditional>
<conditional name="y_bounds">
<param name="type_selector" type="select" label="Choose reconstructed image range in y-direction">
<option value="full_range" selected="true">Use the full image range</option>
<option value="enter_range">Manually enter the image range</option>
</param>
<when value="full_range"/>
<when value="enter_range">
<param name="low" type="integer" value="-1" optional="false" label="Lower image range index in y-direction"/>
<param name="upp" type="integer" value="-1" optional="false" label="Upper image range index in y-direction"/>
</when>
</conditional>
</inputs>
<outputs>
<expand macro="common_outputs"/>
<collection name="tomo_reconstruct_plots" type="list" label="Data recontruction images">
<discover_datasets pattern="__name_and_ext__" directory="tomo_reconstruct_plots"/>
</collection>
<data name="output_file" format="nex" label="Reconstructed tomography data" from_work_dir="output.nex"/>
</outputs>
<help><![CDATA[
Reconstruct tomography images.
]]></help>
<expand macro="citations"/>
</tool>