Mercurial > repos > sanbi-uwc > mothur_test
comparison tools/mothur/normalize.shared.xml @ 0:ee4fee239fe7 draft default tip
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
| author | sanbi-uwc |
|---|---|
| date | Fri, 03 Jun 2016 09:32:47 -0400 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:ee4fee239fe7 |
|---|---|
| 1 <tool profile="16.07" id="mothur_normalize_shared" name="Normalize.shared" version="@WRAPPER_VERSION@.0"> | |
| 2 <description>Normalize the number of sequences per group to a specified level</description> | |
| 3 <macros> | |
| 4 <import>macros.xml</import> | |
| 5 </macros> | |
| 6 <expand macro="requirements"/> | |
| 7 <expand macro="version_command"/> | |
| 8 <command detect_errors="aggressive"><![CDATA[ | |
| 9 echo 'normalize.shared( | |
| 10 #if $otu.is_of_type("mothur.relabund"): | |
| 11 relabund=$otu | |
| 12 #elif $otu.is_of_type("mothur.shared"): | |
| 13 shared=$otu, | |
| 14 makerelabund=$makerelabund | |
| 15 #end if | |
| 16 #if $label: | |
| 17 ,label=${ str($label).replace(",","-") } | |
| 18 #end if | |
| 19 #if $groups: | |
| 20 ,groups=${ str($groups).replace(",","-") } | |
| 21 #end if | |
| 22 #if $method: | |
| 23 ,method=${ str($method).replace(",","-") } | |
| 24 #end if | |
| 25 )' | |
| 26 | sed 's/ //g' ## mothur trips over whitespace | |
| 27 | mothur && | |
| 28 | |
| 29 ## move output files to correct destination | |
| 30 prefix="$otu" && | |
| 31 mv mothur.*.logfile "$logfile" && | |
| 32 mv \${prefix%.dat}*.shared . | |
| 33 ]]></command> | |
| 34 <inputs> | |
| 35 <param name="otu" type="data" format="mothur.shared,mothur.relabund" label="shared,relabund - OTU Shared or Relabund file"/> | |
| 36 <param name="label" type="select" label="label - OTU Labels" multiple="true"> | |
| 37 <expand macro="labeloptions"/> | |
| 38 </param> | |
| 39 <param name="groups" type="select" label="groups - Groups to include" multiple="true"> | |
| 40 <options> | |
| 41 <filter type="data_meta" ref="otu" key="groups"/> | |
| 42 </options> | |
| 43 </param> | |
| 44 <param name="method" type="select" label="method - Normalization method"> | |
| 45 <option value="totalgroup" selected="true">Total Group</option> | |
| 46 <option value="zscore">Z Score</option> | |
| 47 </param> | |
| 48 <param name="makerelabund" type="boolean" truevalue="true" falsevalue="false" checked="false" label="makerelabund - convert a shared file to a relabund file before you normalize"/> | |
| 49 </inputs> | |
| 50 <outputs> | |
| 51 <data name="logfile" format="txt" label="${tool.name} on ${on_string}: logfile"/> | |
| 52 <collection name="sharedfiles" type="list" label="${tool.name} on ${on_string}: norm.shared files collection"> | |
| 53 <discover_datasets pattern=".*?\.(?P<designation>.*)\.shared" format="mothur.shared"/> | |
| 54 </collection> | |
| 55 </outputs> | |
| 56 <tests> | |
| 57 <test><!-- test default settings --> | |
| 58 <param name="otu" value="amazon.an.shared" ftype="mothur.shared"/> | |
| 59 <output_collection name="sharedfiles" count="36"> | |
| 60 <element name="0.26.norm" md5="73ad51ce74e5b3efbc1d9ec8ed6e1c07" ftype="mothur.shared"/> | |
| 61 </output_collection> | |
| 62 <expand macro="logfile-test"/> | |
| 63 </test> | |
| 64 <test><!-- test default settings --> | |
| 65 <param name="otu" value="amazon.an.relabund" ftype="mothur.relabund"/> | |
| 66 <param name="label" value="0.03,0.05,0.22,0.26"/> | |
| 67 <param name="groups" value="forest,pasture"/> | |
| 68 <param name="method" value="zscore"/> | |
| 69 <output_collection name="sharedfiles" count="4"> | |
| 70 <element name="0.26.norm" md5="1204d65c732fd880585180e956610026" ftype="mothur.shared"/> | |
| 71 </output_collection> | |
| 72 <expand macro="logfile-test"/> | |
| 73 </test> | |
| 74 </tests> | |
| 75 <help> | |
| 76 <![CDATA[ | |
| 77 | |
| 78 @MOTHUR_OVERVIEW@ | |
| 79 | |
| 80 **Command Documenation** | |
| 81 | |
| 82 The normalize.shared_ command normalizes the number of sequences per group to a specified level. The input is a shared_ or relabund_ file. | |
| 83 | |
| 84 .. _shared: http://www.mothur.org/wiki/Shared_file | |
| 85 .. _relabund: http://www.mothur.org/wiki/Get.relabund | |
| 86 .. _normalize.shared: http://www.mothur.org/wiki/Normalize.shared | |
| 87 ]]> | |
| 88 </help> | |
| 89 <expand macro="citations"/> | |
| 90 </tool> |
