Mercurial > repos > ximgchess > chap_test_20230411
annotate tomo/tomo_reduce.xml @ 13:5a9ee90cbc1e draft
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 3e8c1c54d5e12fdbc4f6c5cdae88b6d054db7c45-dirty
author | ximgchess |
---|---|
date | Wed, 12 Apr 2023 10:58:39 +0000 |
parents | a0fd4c4e1139 |
children | 48ca4aca043a |
rev | line source |
---|---|
1
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
1 <tool id="CHAP_tomo_reduce" name="Tomo Reduce" version="@TOOL_VERSION@+galaxy0" profile="@PROFILE@" python_template_version="@PYTHON_TEMPLATE_VERSION@"> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
2 <description>Reduce tomography images</description> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
3 <macros> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
4 <import>tomo_macros.xml</import> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
5 </macros> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
6 <expand macro="requirements"/> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
7 <command detect_errors="exit_code"> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
8 <![CDATA[ |
7
65855348c64a
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 3e8c1c54d5e12fdbc4f6c5cdae88b6d054db7c45-dirty
ximgchess
parents:
6
diff
changeset
|
9 cp '$tool_config' reduce.yaml && |
6
39bdb54c661d
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 3e8c1c54d5e12fdbc4f6c5cdae88b6d054db7c45-dirty
ximgchess
parents:
5
diff
changeset
|
10 cat reduce.yaml |
1
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
11 ]]> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
12 </command> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
13 <configfiles> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
14 <configfile name="tool_config"> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
15 <![CDATA[#slurp |
3
a865a7d1cd91
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 3e8c1c54d5e12fdbc4f6c5cdae88b6d054db7c45-dirty
ximgchess
parents:
2
diff
changeset
|
16 #if str($map.type_selector) == "YAML" |
10
7776e1e73c56
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 3e8c1c54d5e12fdbc4f6c5cdae88b6d054db7c45-dirty
ximgchess
parents:
9
diff
changeset
|
17 #cat andor2.yaml |
3
a865a7d1cd91
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 3e8c1c54d5e12fdbc4f6c5cdae88b6d054db7c45-dirty
ximgchess
parents:
2
diff
changeset
|
18 #end if |
1
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
19 #echo 'img_x_bounds:' # |
13
5a9ee90cbc1e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 3e8c1c54d5e12fdbc4f6c5cdae88b6d054db7c45-dirty
ximgchess
parents:
12
diff
changeset
|
20 #echo str($img_x_bounds.type_selector) # |
1
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
21 #if str($img_x_bounds.type_selector) == "full_range" |
12
a0fd4c4e1139
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 3e8c1c54d5e12fdbc4f6c5cdae88b6d054db7c45-dirty
ximgchess
parents:
11
diff
changeset
|
22 #echo '- -1' # |
a0fd4c4e1139
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 3e8c1c54d5e12fdbc4f6c5cdae88b6d054db7c45-dirty
ximgchess
parents:
11
diff
changeset
|
23 #echo '- -1' # |
1
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
24 #else |
13
5a9ee90cbc1e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 3e8c1c54d5e12fdbc4f6c5cdae88b6d054db7c45-dirty
ximgchess
parents:
12
diff
changeset
|
25 #echo '- ' + str($img_x_bounds.low) # |
5a9ee90cbc1e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 3e8c1c54d5e12fdbc4f6c5cdae88b6d054db7c45-dirty
ximgchess
parents:
12
diff
changeset
|
26 #echo '- ' + str($img_x_bounds.upp) # |
1
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
27 #end if |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
28 ]]> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
29 </configfile> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
30 </configfiles> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
31 <inputs> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
32 <conditional name="map"> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
33 <param name="type_selector" type="select" display="radio" label="Choose map file type"> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
34 <option value="yaml">YAML</option> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
35 <option value="nexus">NeXus</option> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
36 </param> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
37 <when value="yaml"> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
38 <param name="input_file" type="data" format="yaml" optional="false" label="Map config file"/> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
39 <conditional name="detector"> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
40 <param name="type_selector" type="select" display="radio" label="Choose detector prefix"> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
41 <option value="andor2">andor2</option> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
42 <option value="manta">manta</option> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
43 <option value="retiga">retiga</option> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
44 </param> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
45 <when value="andor2"/> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
46 <when value="manta"/> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
47 <when value="retiga"/> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
48 </conditional> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
49 </when> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
50 <when value="nexus"> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
51 <param name="input_file" type="data" format="nex" optional="false" label="Tomography setup file"/> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
52 </when> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
53 </conditional> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
54 <conditional name="img_x_bounds"> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
55 <param name="type_selector" type="select" label="Choose vertical detector image bounds"> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
56 <option value="full_range" selected="true">Use the full image range</option> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
57 <option value="enter_range">Manually enter the image range</option> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
58 </param> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
59 <when value="full_range"/> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
60 <when value="enter_range"> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
61 <param name="low" type="integer" value="-1" optional="false" label="Lower image range index"/> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
62 <param name="upp" type="integer" value="-1" optional="false" label="Upper image range index"/> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
63 </when> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
64 </conditional> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
65 </inputs> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
66 <outputs> |
9
2ff8120ca4d4
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 3e8c1c54d5e12fdbc4f6c5cdae88b6d054db7c45-dirty
ximgchess
parents:
8
diff
changeset
|
67 <data name="tool_config" format="yaml" label="Tool config" from_work_dir="reduce.yaml" hidden="false"/> |
5
47a0648cdfd1
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 3e8c1c54d5e12fdbc4f6c5cdae88b6d054db7c45
ximgchess
parents:
4
diff
changeset
|
68 <!-- |
1
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
69 <collection name="tomo_reduce_plots" type="list" label="Data reduction images"> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
70 <discover_datasets pattern="__name_and_ext__" directory="tomo_reduce_plots"/> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
71 </collection> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
72 <data name="output_file" format="nex" label="Reduced tomography data" from_work_dir="output.nex"/> |
5
47a0648cdfd1
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 3e8c1c54d5e12fdbc4f6c5cdae88b6d054db7c45
ximgchess
parents:
4
diff
changeset
|
73 --> |
13
5a9ee90cbc1e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 3e8c1c54d5e12fdbc4f6c5cdae88b6d054db7c45-dirty
ximgchess
parents:
12
diff
changeset
|
74 <data name="output_file" format="yaml" label="Output" from_work_dir="reduce.yaml"/> |
1
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
75 </outputs> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
76 <help> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
77 <![CDATA[ |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
78 usage: PROG [-h] [--config CONFIG] [--verbose] |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
79 |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
80 options: |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
81 -h, --help show this help message and exit |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
82 --config CONFIG Input configuration file |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
83 --verbose verbose output |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
84 |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
85 ]]> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
86 </help> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
87 <expand macro="citations"/> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
88 </tool> |