Mercurial > repos > iuc > mothur_normalize_shared
comparison normalize.shared.xml @ 2:0493525c9b4f draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mothur commit 3418f23b9768f5aafb86488f5ec1cb97530d4fb3
author | iuc |
---|---|
date | Tue, 20 Mar 2018 22:05:03 -0400 |
parents | 042fba3006e9 |
children |
comparison
equal
deleted
inserted
replaced
1:7f003a097b79 | 2:0493525c9b4f |
---|---|
5 </macros> | 5 </macros> |
6 <expand macro="requirements"/> | 6 <expand macro="requirements"/> |
7 <expand macro="stdio"/> | 7 <expand macro="stdio"/> |
8 <expand macro="version_command"/> | 8 <expand macro="version_command"/> |
9 <command><![CDATA[ | 9 <command><![CDATA[ |
10 @SHELL_OPTIONS@ | 10 @SHELL_OPTIONS@ |
11 | 11 |
12 ## create symlinks to input datasets | 12 ## create symlinks to input datasets |
13 ln -s "$otu" otu.dat && | 13 ln -s '$otu' otu.dat && |
14 | 14 |
15 echo 'normalize.shared( | 15 echo 'normalize.shared( |
16 #if $otu.is_of_type("mothur.relabund"): | 16 #if $otu.is_of_type("mothur.relabund"): |
17 relabund=otu.dat | 17 relabund=otu.dat |
18 #elif $otu.is_of_type("mothur.shared"): | 18 #elif $otu.is_of_type("mothur.shared"): |
19 shared=otu.dat, | 19 shared=otu.dat, |
20 makerelabund=$makerelabund | 20 makerelabund=$makerelabund |
21 #end if | 21 #end if |
22 #if $label: | 22 #if $label: |
23 ,label=${ str($label).replace(",","-") } | 23 ,label=${ str($label).replace(",","-") } |
24 #end if | 24 #end if |
25 #if $groups: | 25 #if $groups: |
26 ,groups=${ str($groups).replace(",","-") } | 26 ,groups=${ str($groups).replace(",","-") } |
27 #end if | 27 #end if |
28 #if $method: | 28 #if $method: |
29 ,method=${ str($method).replace(",","-") } | 29 ,method=${ str($method).replace(",","-") } |
30 #end if | 30 #end if |
31 )' | 31 )' |
32 | sed 's/ //g' ## mothur trips over whitespace | 32 | sed 's/ //g' ## mothur trips over whitespace |
33 | mothur | 33 | mothur |
34 | tee mothur.out.log | 34 | tee mothur.out.log |
35 ]]></command> | 35 ]]></command> |
36 <inputs> | 36 <inputs> |
37 <param name="otu" type="data" format="mothur.shared,mothur.relabund" label="shared,relabund - OTU Shared or Relabund file"/> | 37 <param name="otu" type="data" format="mothur.shared,mothur.relabund" label="shared,relabund - OTU Shared or Relabund file"/> |
38 <param name="label" type="select" multiple="true" label="label - OTU Labels"> | 38 <param name="label" type="select" multiple="true" label="label - OTU Labels"> |
39 <expand macro="labeloptions"/> | 39 <expand macro="labeloptions"/> |
46 <param name="method" type="select" label="method - Normalization method"> | 46 <param name="method" type="select" label="method - Normalization method"> |
47 <option value="totalgroup" selected="true">Total Group</option> | 47 <option value="totalgroup" selected="true">Total Group</option> |
48 <option value="zscore">Z Score</option> | 48 <option value="zscore">Z Score</option> |
49 </param> | 49 </param> |
50 <param name="makerelabund" type="boolean" truevalue="true" falsevalue="false" checked="false" label="makerelabund - convert a shared file to a relabund file before you normalize"/> | 50 <param name="makerelabund" type="boolean" truevalue="true" falsevalue="false" checked="false" label="makerelabund - convert a shared file to a relabund file before you normalize"/> |
51 <expand macro="param-savelog"/> | |
51 </inputs> | 52 </inputs> |
52 <outputs> | 53 <outputs> |
53 <expand macro="logfile-output"/> | 54 <expand macro="logfile-output"/> |
54 <collection name="sharedfiles" type="list" label="${tool.name} on ${on_string}: norm.shared files collection"> | 55 <collection name="sharedfiles" type="list" label="${tool.name} on ${on_string}: norm.shared files collection"> |
55 <discover_datasets pattern=".*?\.(?P<designation>.*)\.shared" format="mothur.shared"/> | 56 <discover_datasets pattern=".*?\.(?P<designation>.*)\.shared" format="mothur.shared"/> |
59 <test><!-- test default settings --> | 60 <test><!-- test default settings --> |
60 <param name="otu" value="amazon.an.shared" ftype="mothur.shared"/> | 61 <param name="otu" value="amazon.an.shared" ftype="mothur.shared"/> |
61 <output_collection name="sharedfiles" count="36"> | 62 <output_collection name="sharedfiles" count="36"> |
62 <element name="0.26.norm" md5="73ad51ce74e5b3efbc1d9ec8ed6e1c07" ftype="mothur.shared"/> | 63 <element name="0.26.norm" md5="73ad51ce74e5b3efbc1d9ec8ed6e1c07" ftype="mothur.shared"/> |
63 </output_collection> | 64 </output_collection> |
65 <param name="savelog" value="true"/> | |
64 <expand macro="logfile-test"/> | 66 <expand macro="logfile-test"/> |
65 </test> | 67 </test> |
66 <test><!-- test default settings --> | 68 <test><!-- test default settings --> |
67 <param name="otu" value="amazon.an.relabund" ftype="mothur.relabund"/> | 69 <param name="otu" value="amazon.an.relabund" ftype="mothur.relabund"/> |
68 <param name="label" value="0.03,0.05,0.22,0.26"/> | 70 <param name="label" value="0.03,0.05,0.22,0.26"/> |
69 <param name="groups" value="forest,pasture"/> | 71 <param name="groups" value="forest,pasture"/> |
70 <param name="method" value="zscore"/> | 72 <param name="method" value="zscore"/> |
71 <output_collection name="sharedfiles" count="4"> | 73 <output_collection name="sharedfiles" count="4"> |
72 <element name="0.26.norm" md5="1204d65c732fd880585180e956610026" ftype="mothur.shared"/> | 74 <element name="0.26.norm" md5="1204d65c732fd880585180e956610026" ftype="mothur.shared"/> |
73 </output_collection> | 75 </output_collection> |
76 <param name="savelog" value="true"/> | |
74 <expand macro="logfile-test"/> | 77 <expand macro="logfile-test"/> |
75 </test> | 78 </test> |
76 </tests> | 79 </tests> |
77 <help> | 80 <help><![CDATA[ |
78 <![CDATA[ | |
79 | 81 |
80 @MOTHUR_OVERVIEW@ | 82 @MOTHUR_OVERVIEW@ |
81 | 83 |
82 **Command Documentation** | 84 **Command Documentation** |
83 | 85 |
84 The normalize.shared_ command normalizes the number of sequences per group to a specified level. The input is a shared_ or relabund_ file. | 86 The normalize.shared_ command normalizes the number of sequences per group to a specified level. The input is a shared_ or relabund_ file. |
85 | 87 |
86 .. _shared: https://www.mothur.org/wiki/Shared_file | 88 .. _shared: https://www.mothur.org/wiki/Shared_file |
87 .. _relabund: https://www.mothur.org/wiki/Get.relabund | 89 .. _relabund: https://www.mothur.org/wiki/Get.relabund |
88 .. _normalize.shared: https://www.mothur.org/wiki/Normalize.shared | 90 .. _normalize.shared: https://www.mothur.org/wiki/Normalize.shared |
89 ]]> | 91 |
90 </help> | 92 ]]></help> |
91 <expand macro="citations"/> | 93 <expand macro="citations"/> |
92 </tool> | 94 </tool> |