Mercurial > repos > ximgchess > chap_test_20230411
annotate tomo/tomo_reduce.xml @ 55:55740619de5e draft
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit eda217fb0afe5af50380a24b578c668db9c004f4-dirty
author | ximgchess |
---|---|
date | Wed, 12 Apr 2023 18:45:40 +0000 |
parents | 70992f91d75f |
children | 2abfae6df4f8 |
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"> |
25
99598d07fe7f
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 3e8c1c54d5e12fdbc4f6c5cdae88b6d054db7c45-dirty
ximgchess
parents:
24
diff
changeset
|
8 <![CDATA[ |
55
55740619de5e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit eda217fb0afe5af50380a24b578c668db9c004f4-dirty
ximgchess
parents:
54
diff
changeset
|
9 $__tool_directory__/pip_install.sh 'certif-pyspec==1.5.3' && |
54
70992f91d75f
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit eda217fb0afe5af50380a24b578c668db9c004f4-dirty
ximgchess
parents:
53
diff
changeset
|
10 echo $__tool_directory__ && |
70992f91d75f
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit eda217fb0afe5af50380a24b578c668db9c004f4-dirty
ximgchess
parents:
53
diff
changeset
|
11 ls $__tool_directory__/.. && |
51
b98d83e1396a
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit eda217fb0afe5af50380a24b578c668db9c004f4-dirty
ximgchess
parents:
50
diff
changeset
|
12 cp $tool_config reduce.yaml |
1
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
13 ]]> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
14 </command> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
15 <configfiles> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
16 <configfile name="tool_config"> |
23
530ccdd4cb8c
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 3e8c1c54d5e12fdbc4f6c5cdae88b6d054db7c45-dirty
ximgchess
parents:
22
diff
changeset
|
17 <![CDATA[#slurp |
31
33506016d5fe
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 3e8c1c54d5e12fdbc4f6c5cdae88b6d054db7c45-dirty
ximgchess
parents:
30
diff
changeset
|
18 #* |
25
99598d07fe7f
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 3e8c1c54d5e12fdbc4f6c5cdae88b6d054db7c45-dirty
ximgchess
parents:
24
diff
changeset
|
19 #if str($map.type_selector) == "yaml" |
27
b6ad2eb6590f
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 3e8c1c54d5e12fdbc4f6c5cdae88b6d054db7c45-dirty
ximgchess
parents:
26
diff
changeset
|
20 #echo 'detector:' # |
31
33506016d5fe
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 3e8c1c54d5e12fdbc4f6c5cdae88b6d054db7c45-dirty
ximgchess
parents:
30
diff
changeset
|
21 #echo ' file: ' + str($__tool_directory__) + '/andor2.yaml' # |
25
99598d07fe7f
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 3e8c1c54d5e12fdbc4f6c5cdae88b6d054db7c45-dirty
ximgchess
parents:
24
diff
changeset
|
22 #end if |
31
33506016d5fe
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 3e8c1c54d5e12fdbc4f6c5cdae88b6d054db7c45-dirty
ximgchess
parents:
30
diff
changeset
|
23 *# |
27
b6ad2eb6590f
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 3e8c1c54d5e12fdbc4f6c5cdae88b6d054db7c45-dirty
ximgchess
parents:
26
diff
changeset
|
24 #echo 'img_x_bounds:' # |
14
48ca4aca043a
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 3e8c1c54d5e12fdbc4f6c5cdae88b6d054db7c45-dirty
ximgchess
parents:
13
diff
changeset
|
25 #if str($img_x_bounds.type_selector) == "full_range" |
48ca4aca043a
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 3e8c1c54d5e12fdbc4f6c5cdae88b6d054db7c45-dirty
ximgchess
parents:
13
diff
changeset
|
26 #echo '- -1' # |
48ca4aca043a
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 3e8c1c54d5e12fdbc4f6c5cdae88b6d054db7c45-dirty
ximgchess
parents:
13
diff
changeset
|
27 #echo '- -1' # |
48ca4aca043a
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 3e8c1c54d5e12fdbc4f6c5cdae88b6d054db7c45-dirty
ximgchess
parents:
13
diff
changeset
|
28 #else |
48ca4aca043a
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 3e8c1c54d5e12fdbc4f6c5cdae88b6d054db7c45-dirty
ximgchess
parents:
13
diff
changeset
|
29 #echo '- ' + str($img_x_bounds.low) # |
48ca4aca043a
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 3e8c1c54d5e12fdbc4f6c5cdae88b6d054db7c45-dirty
ximgchess
parents:
13
diff
changeset
|
30 #echo '- ' + str($img_x_bounds.upp) # |
48ca4aca043a
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 3e8c1c54d5e12fdbc4f6c5cdae88b6d054db7c45-dirty
ximgchess
parents:
13
diff
changeset
|
31 #end if |
1
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
32 ]]> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
33 </configfile> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
34 </configfiles> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
35 <inputs> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
36 <conditional name="map"> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
37 <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
|
38 <option value="yaml">YAML</option> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
39 <option value="nexus">NeXus</option> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
40 </param> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
41 <when value="yaml"> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
42 <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
|
43 <conditional name="detector"> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
44 <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
|
45 <option value="andor2">andor2</option> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
46 <option value="manta">manta</option> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
47 <option value="retiga">retiga</option> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
48 </param> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
49 <when value="andor2"/> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
50 <when value="manta"/> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
51 <when value="retiga"/> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
52 </conditional> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
53 </when> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
54 <when value="nexus"> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
55 <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
|
56 </when> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
57 </conditional> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
58 <conditional name="img_x_bounds"> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
59 <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
|
60 <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
|
61 <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
|
62 </param> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
63 <when value="full_range"/> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
64 <when value="enter_range"> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
65 <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
|
66 <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
|
67 </when> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
68 </conditional> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
69 </inputs> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
70 <outputs> |
9
2ff8120ca4d4
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 3e8c1c54d5e12fdbc4f6c5cdae88b6d054db7c45-dirty
ximgchess
parents:
8
diff
changeset
|
71 <data name="tool_config" format="yaml" label="Tool config" from_work_dir="reduce.yaml" hidden="false"/> |
1
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
72 </outputs> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
73 <help> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
74 <![CDATA[ |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
75 usage: PROG [-h] [--config CONFIG] [--verbose] |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
76 |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
77 options: |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
78 -h, --help show this help message and exit |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
79 --config CONFIG Input configuration file |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
80 --verbose verbose output |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
81 |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
82 ]]> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
83 </help> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
84 <expand macro="citations"/> |
84a215623d9e
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit f4980be19456f3f51758e06e2eb7520924ce1e3a
ximgchess
parents:
diff
changeset
|
85 </tool> |