Mercurial > repos > sanbi-uwc > mothur_test
view tools/mothur/rarefaction.single.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 |
line wrap: on
line source
<tool profile="16.07" id="mothur_rarefaction_single" name="Rarefaction.single" version="@WRAPPER_VERSION@.0"> <description>Generate intra-sample rarefaction curves for OTUs</description> <macros> <import>macros.xml</import> </macros> <expand macro="requirements"/> <expand macro="version_command"/> <command detect_errors="aggressive"><![CDATA[ echo 'rarefaction.single( #if $otu.is_of_type("mothur.rabund"): rabund=$otu, #elif $otu.is_of_type("mothur.sabund"): sabund=$otu, #elif $otu.is_of_type("mothur.shared"): shared=$otu, #elif $otu.is_of_type("mothur.list"): list=$otu, #end if #if $label: label=${ str($label).replace(",","-") }, #end if calc=${ str($calc).replace(",","-") }, abund=$abund, iters=$iters, freq=$freq, processors='\${GALAXY_SLOTS:-8}' )' | sed 's/ //g' ## mothur trips over whitespace | mothur && ## move output files to correct destination prefix="$otu" && mv \${prefix%.dat}*.groups.* . && mv mothur.*.logfile "$logfile" ]]></command> <inputs> <param name="otu" type="data" format="mothur.list,mothur.rabund,mothur.sabund,mothur.shared" label="list,rabund,sabund,shared - OTU List"/> <param name="label" type="select" label="label - OTU Labels" multiple="true"> <expand macro="labeloptions"/> </param> <param name="calc" type="select" label="calc - Calculators (Uses defaults if none selected)" multiple="true"> <option value="ace">ace - Community richness the ACE estimator</option> <option value="bootstrap">bootstrap - Community richness the bootstrap estimator</option> <option value="chao">chao - Community richness the Chao1 estimator</option> <option value="jack">jack - Community richness the jackknife estimator</option> <option value="sobs" selected="true">sobs - Community richness the observed richness</option> <option value="simpsoneven">simpsoneven - Community evenness a Simpson index-based measure of evenness</option> <option value="shannoneven">shannoneven - Community evenness a Shannon index-based measure of evenness</option> <option value="heip">heip - Community evenness Heip's metric of community evenness</option> <option value="smithwilson">smithwilson - Community evenness Smith and Wilson's metric of community evenness</option> <option value="coverage">coverage - Community diversity the sampling coverage </option> <option value="simpson">simpson - Community diversity the Simpson index</option> <option value="invsimpson">invsimpson - Community diversity the Simpson index</option> <option value="shannon">shannon - Community diversity the Shannon index</option> <option value="npshannon">npshannon - Community diversity the non-parametric Shannon index</option> <option value="nseqs">nseqs - Utility the number of sequences in a sample</option> </param> <param name="abund" type="integer" value="10" min="0" label="abund - ACE Estimator threshold for abundant versus rare OTUs"/> <param name="iters" type="integer" value="1000" min="0" label="iters - Number of randomizations"/> <param name="freq" type="float" value="100" min="0" max="100" label="freq - Reporting frequency" help="if between 0 and 1 the fraction of sequences to sample, if greater than one - report every n iterations"/> </inputs> <outputs> <data name="logfile" format="txt" label="${tool.name} on ${on_string}: logfile"/> <collection name="rarefactioncurves" type="list" label="${tool.name} on ${on_string}: rarefaction curves"> <discover_datasets pattern=".*?\.groups\.(?P<designation>.*)" format="tabular"/> </collection> </outputs> <tests> <test><!-- test with default values --> <param name="otu" value="amazon.an.shared" ftype="mothur.shared"/> <output_collection name="rarefactioncurves" count="1"> <element name="rarefaction" md5="c4c1f1970edf87ea5103e0704130f079" ftype="tabular"/> </output_collection> <expand macro="logfile-test"/> </test> <test><!-- test with all calculators and subset of labels --> <param name="otu" value="amazon.an.shared" ftype="mothur.shared"/> <param name="calc" value="ace,bootstrap,chao,jack,sobs,simpsoneven,shannoneven,heip,smithwilson,coverage,simpson,invsimpson,shannon,npshannon,nseqs"/> <param name="label" value="0.03,0.05,0.36,0.55"/> <output_collection name="rarefactioncurves" count="15"> <element name="r_simpson" md5="8d6b7ad9a68c30c882e93b17d343042a" ftype="tabular"/> </output_collection> <expand macro="logfile-test"/> </test> </tests> <help> <![CDATA[ @MOTHUR_OVERVIEW@ **Command Documenation** The rarefaction.single_ command generates intra-sample rarefaction curves using a re-sampling without replacement approach. Rarefaction curves provide a way of comparing the richness observed in different samples. For calc parameter choices see: http://www.mothur.org/wiki/Calculators .. _rarefaction.single: http://www.mothur.org/wiki/Rarefaction.single ]]> </help> <expand macro="citations"/> </tool>