Mercurial > repos > ximgchess > chap_test_20230411
annotate tomo/tomo_find_center.xml @ 120:00eb84d2c84a draft
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 6697892ecc504b00077394d0c167431ec3ac12f7-dirty
author | ximgchess |
---|---|
date | Tue, 30 May 2023 14:41:09 +0000 |
parents | 7bdea19f695c |
children | 49985da419b8 |
rev | line source |
---|---|
66
3b1dbe3fb91b
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff
changeset
|
1 <tool id="CHAP_tomo_find_center" name="Tomo Find Center" version="@TOOL_VERSION@+galaxy0" profile="@PROFILE@" python_template_version="@PYTHON_TEMPLATE_VERSION@"> |
3b1dbe3fb91b
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff
changeset
|
2 <description>Find rotation axis centers for the tomography stacks</description> |
3b1dbe3fb91b
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff
changeset
|
3 <macros> |
3b1dbe3fb91b
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff
changeset
|
4 <import>tomo_macros.xml</import> |
3b1dbe3fb91b
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff
changeset
|
5 </macros> |
3b1dbe3fb91b
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff
changeset
|
6 <expand macro="requirements"/> |
3b1dbe3fb91b
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff
changeset
|
7 <command detect_errors="exit_code"> |
3b1dbe3fb91b
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff
changeset
|
8 <![CDATA[ |
3b1dbe3fb91b
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff
changeset
|
9 mkdir tomo_find_center_plots; |
3b1dbe3fb91b
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff
changeset
|
10 cp $input_file reduced.nex && |
71
0473fdc7f9b0
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 919e80fa3f8a9160766ff4d2c6b8956ec5553ad3-dirty
ximgchess
parents:
66
diff
changeset
|
11 cp $tool_config find_center.yaml && |
66
3b1dbe3fb91b
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff
changeset
|
12 CHAP --config |
3b1dbe3fb91b
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff
changeset
|
13 $__tool_directory__/pipeline_find_center.yaml |
3b1dbe3fb91b
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff
changeset
|
14 ]]> |
3b1dbe3fb91b
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff
changeset
|
15 </command> |
3b1dbe3fb91b
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff
changeset
|
16 <configfiles> |
3b1dbe3fb91b
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff
changeset
|
17 <configfile name="tool_config"> |
3b1dbe3fb91b
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff
changeset
|
18 <![CDATA[#slurp |
118
c90f17a31ed5
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 6697892ecc504b00077394d0c167431ec3ac12f7-dirty
ximgchess
parents:
117
diff
changeset
|
19 #if str($center_rows.type_selector) == "enter_range" |
66
3b1dbe3fb91b
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff
changeset
|
20 #echo 'lower_row: ' + str($center_rows.low) # |
73
0476dee34886
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 919e80fa3f8a9160766ff4d2c6b8956ec5553ad3-dirty
ximgchess
parents:
72
diff
changeset
|
21 #echo 'upper_row: ' + str($center_rows.upp) # |
66
3b1dbe3fb91b
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff
changeset
|
22 #end if |
120
00eb84d2c84a
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 6697892ecc504b00077394d0c167431ec3ac12f7-dirty
ximgchess
parents:
119
diff
changeset
|
23 #echo 'gaussian_sigma: ' + str($gaussian_sigma) # |
00eb84d2c84a
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 6697892ecc504b00077394d0c167431ec3ac12f7-dirty
ximgchess
parents:
119
diff
changeset
|
24 #echo 'ring_width: ' + str($ring_width) # |
66
3b1dbe3fb91b
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff
changeset
|
25 ]]> |
3b1dbe3fb91b
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff
changeset
|
26 </configfile> |
3b1dbe3fb91b
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff
changeset
|
27 </configfiles> |
3b1dbe3fb91b
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff
changeset
|
28 <inputs> |
3b1dbe3fb91b
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff
changeset
|
29 <param name="input_file" type="data" format="nex" optional="false" label="Reduce tomography data file"/> |
3b1dbe3fb91b
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff
changeset
|
30 <conditional name="center_rows"> |
3b1dbe3fb91b
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff
changeset
|
31 <param name="type_selector" type="select" label="Choose axis center image rows"> |
3b1dbe3fb91b
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff
changeset
|
32 <option value="full_range" selected="true">Use the first and last detector row</option> |
3b1dbe3fb91b
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff
changeset
|
33 <option value="enter_range">Manually enter the center image rows</option> |
3b1dbe3fb91b
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff
changeset
|
34 </param> |
3b1dbe3fb91b
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff
changeset
|
35 <when value="full_range"/> |
3b1dbe3fb91b
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff
changeset
|
36 <when value="enter_range"> |
117
bca3d915f662
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 6697892ecc504b00077394d0c167431ec3ac12f7-dirty
ximgchess
parents:
73
diff
changeset
|
37 <param name="low" type="integer" value="" optional="false" min="0" label="Lower detector row index"/> |
bca3d915f662
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 6697892ecc504b00077394d0c167431ec3ac12f7-dirty
ximgchess
parents:
73
diff
changeset
|
38 <param name="upp" type="integer" value="" optional="false" min="0" label="Upper detector row index"/> |
66
3b1dbe3fb91b
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff
changeset
|
39 </when> |
3b1dbe3fb91b
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff
changeset
|
40 </conditional> |
120
00eb84d2c84a
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 6697892ecc504b00077394d0c167431ec3ac12f7-dirty
ximgchess
parents:
119
diff
changeset
|
41 <param name="gaussian_sigma" type="float" value="0.05" optional="false" min="0" label="Standard deviation for the Gaussian filter"/> |
00eb84d2c84a
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 6697892ecc504b00077394d0c167431ec3ac12f7-dirty
ximgchess
parents:
119
diff
changeset
|
42 <param name="ring_width" type="float" value="1" optional="false" min="1" label="Maximum filtered ring width in pixels"/> |
66
3b1dbe3fb91b
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff
changeset
|
43 </inputs> |
3b1dbe3fb91b
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff
changeset
|
44 <outputs> |
3b1dbe3fb91b
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff
changeset
|
45 <data name="tool_config" format="yaml" label="Tool config" from_work_dir="find_center.yaml" hidden="false"/> |
3b1dbe3fb91b
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff
changeset
|
46 <collection name="tomo_find_center_plots" type="list" label="Find rotation axis center images"> |
3b1dbe3fb91b
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff
changeset
|
47 <discover_datasets pattern="__name_and_ext__" directory="tomo_find_center_plots"/> |
3b1dbe3fb91b
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff
changeset
|
48 </collection> |
3b1dbe3fb91b
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff
changeset
|
49 <data name="output_file" format="yaml" label="Rotation axis centers data" from_work_dir="output.yaml"/> |
3b1dbe3fb91b
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff
changeset
|
50 </outputs> |
3b1dbe3fb91b
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff
changeset
|
51 <help> |
3b1dbe3fb91b
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff
changeset
|
52 <![CDATA[ |
3b1dbe3fb91b
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff
changeset
|
53 usage: PROG [-h] [--config CONFIG] [--verbose] |
3b1dbe3fb91b
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff
changeset
|
54 |
3b1dbe3fb91b
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff
changeset
|
55 options: |
3b1dbe3fb91b
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff
changeset
|
56 -h, --help show this help message and exit |
3b1dbe3fb91b
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff
changeset
|
57 --config CONFIG Input configuration file |
3b1dbe3fb91b
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff
changeset
|
58 --verbose verbose output |
3b1dbe3fb91b
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff
changeset
|
59 |
3b1dbe3fb91b
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff
changeset
|
60 ]]> |
3b1dbe3fb91b
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff
changeset
|
61 </help> |
3b1dbe3fb91b
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff
changeset
|
62 <expand macro="citations"/> |
3b1dbe3fb91b
planemo upload for repository https://github.com/CHESSComputing/ChessAnalysisPipeline commit 922ced93dce7a89190712f1ad9abad569fe52683
ximgchess
parents:
diff
changeset
|
63 </tool> |