Mercurial > repos > rv43 > tomo
annotate tomo_reduce.xml @ 75:d5e1d4ea2b7e draft default tip
planemo upload for repository https://github.com/rolfverberg/galaxytools commit 6afde341a94586fe3972bdbbfbf5dabd5e8dec69
| author | rv43 |
|---|---|
| date | Thu, 23 Mar 2023 13:39:14 +0000 |
| parents | 4f4ee8db5f67 |
| children |
| rev | line source |
|---|---|
|
75
d5e1d4ea2b7e
planemo upload for repository https://github.com/rolfverberg/galaxytools commit 6afde341a94586fe3972bdbbfbf5dabd5e8dec69
rv43
parents:
74
diff
changeset
|
1 <tool id="tomo_reduce" name="Tomo Reduce" version="1.0.0" python_template_version="3.9"> |
|
69
fba792d5f83b
planemo upload for repository https://github.com/rolfverberg/galaxytools commit ab9f412c362a4ab986d00e21d5185cfcf82485c1
rv43
parents:
diff
changeset
|
2 <description>Reduce tomography images</description> |
|
74
4f4ee8db5f67
planemo upload for repository https://github.com/rolfverberg/galaxytools commit f8c4bdb31c20c468045ad5e6eb255a293244bc6c-dirty
rv43
parents:
73
diff
changeset
|
3 <macros> |
|
4f4ee8db5f67
planemo upload for repository https://github.com/rolfverberg/galaxytools commit f8c4bdb31c20c468045ad5e6eb255a293244bc6c-dirty
rv43
parents:
73
diff
changeset
|
4 <import>tomo_macros.xml</import> |
|
4f4ee8db5f67
planemo upload for repository https://github.com/rolfverberg/galaxytools commit f8c4bdb31c20c468045ad5e6eb255a293244bc6c-dirty
rv43
parents:
73
diff
changeset
|
5 </macros> |
|
75
d5e1d4ea2b7e
planemo upload for repository https://github.com/rolfverberg/galaxytools commit 6afde341a94586fe3972bdbbfbf5dabd5e8dec69
rv43
parents:
74
diff
changeset
|
6 <expand macro="requirements"/> |
|
69
fba792d5f83b
planemo upload for repository https://github.com/rolfverberg/galaxytools commit ab9f412c362a4ab986d00e21d5185cfcf82485c1
rv43
parents:
diff
changeset
|
7 <command detect_errors="exit_code"> |
|
fba792d5f83b
planemo upload for repository https://github.com/rolfverberg/galaxytools commit ab9f412c362a4ab986d00e21d5185cfcf82485c1
rv43
parents:
diff
changeset
|
8 <![CDATA[ |
|
74
4f4ee8db5f67
planemo upload for repository https://github.com/rolfverberg/galaxytools commit f8c4bdb31c20c468045ad5e6eb255a293244bc6c-dirty
rv43
parents:
73
diff
changeset
|
9 mkdir tomo_reduce_plots; |
|
69
fba792d5f83b
planemo upload for repository https://github.com/rolfverberg/galaxytools commit ab9f412c362a4ab986d00e21d5185cfcf82485c1
rv43
parents:
diff
changeset
|
10 $__tool_directory__/tomo_reduce.py |
|
75
d5e1d4ea2b7e
planemo upload for repository https://github.com/rolfverberg/galaxytools commit 6afde341a94586fe3972bdbbfbf5dabd5e8dec69
rv43
parents:
74
diff
changeset
|
11 --input_file "$input_file" |
|
d5e1d4ea2b7e
planemo upload for repository https://github.com/rolfverberg/galaxytools commit 6afde341a94586fe3972bdbbfbf5dabd5e8dec69
rv43
parents:
74
diff
changeset
|
12 --output_file "output.nex" |
|
74
4f4ee8db5f67
planemo upload for repository https://github.com/rolfverberg/galaxytools commit f8c4bdb31c20c468045ad5e6eb255a293244bc6c-dirty
rv43
parents:
73
diff
changeset
|
13 --galaxy_flag |
|
75
d5e1d4ea2b7e
planemo upload for repository https://github.com/rolfverberg/galaxytools commit 6afde341a94586fe3972bdbbfbf5dabd5e8dec69
rv43
parents:
74
diff
changeset
|
14 #if str($station.type_selector) == "id3b" |
|
d5e1d4ea2b7e
planemo upload for repository https://github.com/rolfverberg/galaxytools commit 6afde341a94586fe3972bdbbfbf5dabd5e8dec69
rv43
parents:
74
diff
changeset
|
15 #if str($station.img_bounds.type_selector) == "enter_range" |
|
d5e1d4ea2b7e
planemo upload for repository https://github.com/rolfverberg/galaxytools commit 6afde341a94586fe3972bdbbfbf5dabd5e8dec69
rv43
parents:
74
diff
changeset
|
16 --img_x_bounds $station.img_bounds.low $station.img_bounds.upp |
|
d5e1d4ea2b7e
planemo upload for repository https://github.com/rolfverberg/galaxytools commit 6afde341a94586fe3972bdbbfbf5dabd5e8dec69
rv43
parents:
74
diff
changeset
|
17 #end if |
|
d5e1d4ea2b7e
planemo upload for repository https://github.com/rolfverberg/galaxytools commit 6afde341a94586fe3972bdbbfbf5dabd5e8dec69
rv43
parents:
74
diff
changeset
|
18 #end if |
|
d5e1d4ea2b7e
planemo upload for repository https://github.com/rolfverberg/galaxytools commit 6afde341a94586fe3972bdbbfbf5dabd5e8dec69
rv43
parents:
74
diff
changeset
|
19 -l "$log" |
|
69
fba792d5f83b
planemo upload for repository https://github.com/rolfverberg/galaxytools commit ab9f412c362a4ab986d00e21d5185cfcf82485c1
rv43
parents:
diff
changeset
|
20 ]]> |
|
fba792d5f83b
planemo upload for repository https://github.com/rolfverberg/galaxytools commit ab9f412c362a4ab986d00e21d5185cfcf82485c1
rv43
parents:
diff
changeset
|
21 </command> |
|
74
4f4ee8db5f67
planemo upload for repository https://github.com/rolfverberg/galaxytools commit f8c4bdb31c20c468045ad5e6eb255a293244bc6c-dirty
rv43
parents:
73
diff
changeset
|
22 <inputs> |
|
4f4ee8db5f67
planemo upload for repository https://github.com/rolfverberg/galaxytools commit f8c4bdb31c20c468045ad5e6eb255a293244bc6c-dirty
rv43
parents:
73
diff
changeset
|
23 <param name="input_file" type="data" optional="false" label="Input file"/> |
|
75
d5e1d4ea2b7e
planemo upload for repository https://github.com/rolfverberg/galaxytools commit 6afde341a94586fe3972bdbbfbf5dabd5e8dec69
rv43
parents:
74
diff
changeset
|
24 <conditional name="station"> |
|
d5e1d4ea2b7e
planemo upload for repository https://github.com/rolfverberg/galaxytools commit 6afde341a94586fe3972bdbbfbf5dabd5e8dec69
rv43
parents:
74
diff
changeset
|
25 <param name="type_selector" type="select" display="radio" label="Choose station"> |
|
d5e1d4ea2b7e
planemo upload for repository https://github.com/rolfverberg/galaxytools commit 6afde341a94586fe3972bdbbfbf5dabd5e8dec69
rv43
parents:
74
diff
changeset
|
26 <option value="id3a" selected="true">id3a (SMB)</option> |
|
d5e1d4ea2b7e
planemo upload for repository https://github.com/rolfverberg/galaxytools commit 6afde341a94586fe3972bdbbfbf5dabd5e8dec69
rv43
parents:
74
diff
changeset
|
27 <option value="id3b">id3b (FMB)</option> |
|
d5e1d4ea2b7e
planemo upload for repository https://github.com/rolfverberg/galaxytools commit 6afde341a94586fe3972bdbbfbf5dabd5e8dec69
rv43
parents:
74
diff
changeset
|
28 </param> |
|
d5e1d4ea2b7e
planemo upload for repository https://github.com/rolfverberg/galaxytools commit 6afde341a94586fe3972bdbbfbf5dabd5e8dec69
rv43
parents:
74
diff
changeset
|
29 <when value="id3a"/> |
|
d5e1d4ea2b7e
planemo upload for repository https://github.com/rolfverberg/galaxytools commit 6afde341a94586fe3972bdbbfbf5dabd5e8dec69
rv43
parents:
74
diff
changeset
|
30 <when value="id3b"> |
|
d5e1d4ea2b7e
planemo upload for repository https://github.com/rolfverberg/galaxytools commit 6afde341a94586fe3972bdbbfbf5dabd5e8dec69
rv43
parents:
74
diff
changeset
|
31 <conditional name="img_bounds"> |
|
d5e1d4ea2b7e
planemo upload for repository https://github.com/rolfverberg/galaxytools commit 6afde341a94586fe3972bdbbfbf5dabd5e8dec69
rv43
parents:
74
diff
changeset
|
32 <param name="type_selector" type="select" display="radio" label="Choose image range for data reduction"> |
|
d5e1d4ea2b7e
planemo upload for repository https://github.com/rolfverberg/galaxytools commit 6afde341a94586fe3972bdbbfbf5dabd5e8dec69
rv43
parents:
74
diff
changeset
|
33 <option value="enter_range" selected="true">Manually enter the image range</option> |
|
d5e1d4ea2b7e
planemo upload for repository https://github.com/rolfverberg/galaxytools commit 6afde341a94586fe3972bdbbfbf5dabd5e8dec69
rv43
parents:
74
diff
changeset
|
34 <option value="full_range">Use the full image range</option> |
|
d5e1d4ea2b7e
planemo upload for repository https://github.com/rolfverberg/galaxytools commit 6afde341a94586fe3972bdbbfbf5dabd5e8dec69
rv43
parents:
74
diff
changeset
|
35 </param> |
|
d5e1d4ea2b7e
planemo upload for repository https://github.com/rolfverberg/galaxytools commit 6afde341a94586fe3972bdbbfbf5dabd5e8dec69
rv43
parents:
74
diff
changeset
|
36 <when value="enter_range"> |
|
d5e1d4ea2b7e
planemo upload for repository https://github.com/rolfverberg/galaxytools commit 6afde341a94586fe3972bdbbfbf5dabd5e8dec69
rv43
parents:
74
diff
changeset
|
37 <param name="low" type="integer" value="-1" optional="false" label="Lower image range index in vertical direction"/> |
|
d5e1d4ea2b7e
planemo upload for repository https://github.com/rolfverberg/galaxytools commit 6afde341a94586fe3972bdbbfbf5dabd5e8dec69
rv43
parents:
74
diff
changeset
|
38 <param name="upp" type="integer" value="-1" optional="false" label="Upper image range index in vertical direction"/> |
|
d5e1d4ea2b7e
planemo upload for repository https://github.com/rolfverberg/galaxytools commit 6afde341a94586fe3972bdbbfbf5dabd5e8dec69
rv43
parents:
74
diff
changeset
|
39 </when> |
|
d5e1d4ea2b7e
planemo upload for repository https://github.com/rolfverberg/galaxytools commit 6afde341a94586fe3972bdbbfbf5dabd5e8dec69
rv43
parents:
74
diff
changeset
|
40 <when value="full_range"/> |
|
d5e1d4ea2b7e
planemo upload for repository https://github.com/rolfverberg/galaxytools commit 6afde341a94586fe3972bdbbfbf5dabd5e8dec69
rv43
parents:
74
diff
changeset
|
41 </conditional> |
|
d5e1d4ea2b7e
planemo upload for repository https://github.com/rolfverberg/galaxytools commit 6afde341a94586fe3972bdbbfbf5dabd5e8dec69
rv43
parents:
74
diff
changeset
|
42 </when> |
|
d5e1d4ea2b7e
planemo upload for repository https://github.com/rolfverberg/galaxytools commit 6afde341a94586fe3972bdbbfbf5dabd5e8dec69
rv43
parents:
74
diff
changeset
|
43 </conditional> |
|
74
4f4ee8db5f67
planemo upload for repository https://github.com/rolfverberg/galaxytools commit f8c4bdb31c20c468045ad5e6eb255a293244bc6c-dirty
rv43
parents:
73
diff
changeset
|
44 </inputs> |
|
69
fba792d5f83b
planemo upload for repository https://github.com/rolfverberg/galaxytools commit ab9f412c362a4ab986d00e21d5185cfcf82485c1
rv43
parents:
diff
changeset
|
45 <outputs> |
|
74
4f4ee8db5f67
planemo upload for repository https://github.com/rolfverberg/galaxytools commit f8c4bdb31c20c468045ad5e6eb255a293244bc6c-dirty
rv43
parents:
73
diff
changeset
|
46 <expand macro="common_outputs"/> |
|
75
d5e1d4ea2b7e
planemo upload for repository https://github.com/rolfverberg/galaxytools commit 6afde341a94586fe3972bdbbfbf5dabd5e8dec69
rv43
parents:
74
diff
changeset
|
47 <collection name="tomo_reduce_plots" type="list" label="Data reduction images"> |
|
74
4f4ee8db5f67
planemo upload for repository https://github.com/rolfverberg/galaxytools commit f8c4bdb31c20c468045ad5e6eb255a293244bc6c-dirty
rv43
parents:
73
diff
changeset
|
48 <discover_datasets pattern="__name_and_ext__" directory="tomo_reduce_plots"/> |
|
4f4ee8db5f67
planemo upload for repository https://github.com/rolfverberg/galaxytools commit f8c4bdb31c20c468045ad5e6eb255a293244bc6c-dirty
rv43
parents:
73
diff
changeset
|
49 </collection> |
|
75
d5e1d4ea2b7e
planemo upload for repository https://github.com/rolfverberg/galaxytools commit 6afde341a94586fe3972bdbbfbf5dabd5e8dec69
rv43
parents:
74
diff
changeset
|
50 <data name="output_file" format="nex" label="Reduced tomography data" from_work_dir="output.nex"/> |
|
69
fba792d5f83b
planemo upload for repository https://github.com/rolfverberg/galaxytools commit ab9f412c362a4ab986d00e21d5185cfcf82485c1
rv43
parents:
diff
changeset
|
51 </outputs> |
|
fba792d5f83b
planemo upload for repository https://github.com/rolfverberg/galaxytools commit ab9f412c362a4ab986d00e21d5185cfcf82485c1
rv43
parents:
diff
changeset
|
52 <help> |
|
fba792d5f83b
planemo upload for repository https://github.com/rolfverberg/galaxytools commit ab9f412c362a4ab986d00e21d5185cfcf82485c1
rv43
parents:
diff
changeset
|
53 <![CDATA[ |
|
fba792d5f83b
planemo upload for repository https://github.com/rolfverberg/galaxytools commit ab9f412c362a4ab986d00e21d5185cfcf82485c1
rv43
parents:
diff
changeset
|
54 Reduce tomography images. |
|
fba792d5f83b
planemo upload for repository https://github.com/rolfverberg/galaxytools commit ab9f412c362a4ab986d00e21d5185cfcf82485c1
rv43
parents:
diff
changeset
|
55 ]]> |
|
fba792d5f83b
planemo upload for repository https://github.com/rolfverberg/galaxytools commit ab9f412c362a4ab986d00e21d5185cfcf82485c1
rv43
parents:
diff
changeset
|
56 </help> |
|
74
4f4ee8db5f67
planemo upload for repository https://github.com/rolfverberg/galaxytools commit f8c4bdb31c20c468045ad5e6eb255a293244bc6c-dirty
rv43
parents:
73
diff
changeset
|
57 <expand macro="citations"/> |
|
69
fba792d5f83b
planemo upload for repository https://github.com/rolfverberg/galaxytools commit ab9f412c362a4ab986d00e21d5185cfcf82485c1
rv43
parents:
diff
changeset
|
58 </tool> |
