Mercurial > repos > sanbi-uwc > mothur_test
diff tools/mothur/make.lefse.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 diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tools/mothur/make.lefse.xml Fri Jun 03 09:32:47 2016 -0400 @@ -0,0 +1,82 @@ +<tool profile="16.07" id="mothur_make_lefse" name="Make.lefse" version="@WRAPPER_VERSION@.0"> + <description>create a lefse formatted input file from mothur's output files</description> + <macros> + <import>macros.xml</import> + </macros> + <expand macro="requirements"/> + <expand macro="version_command"/> + <command detect_errors="aggressive"><![CDATA[ + echo 'make.lefse( + #if $otu.is_of_type("mothur.relabund"): + relabund=$otu, + #else + shared=$otu, + #end if + #if $design: + design=$design, + #end if + #if $constaxonomy: + constaxonomy=$constaxonomy, + #end if + #if $label: + label=${ str($label).replace(",","-") }, + #end if + scale=$scale + )' + | sed 's/ //g' ## mothur trips over whitespace + | mothur && + + ## move output files to correct destination + prefix="$otu" && + mv \${prefix%.dat}*.lefse "$lefse_out" && + mv mothur.*.logfile "$logfile" + ]]></command> + <inputs> + <param name="otu" type="data" format="mothur.shared,mothur.relabund" label="shared or relabund - provide a shared or relabund file"/> + <param name="label" type="select" optional="true" label="label - OTU Labels" help="If none selected, the first label in your file will be used"> + <expand macro="labeloptions"/> + </param> + <param name="constaxonomy" type="data" format="mothur.cons.taxonomy" optional="true" label="constaxonomy - provide a constaxonomy file"/> + <param name="design" type="data" format="tabular" optional="true" label="design - provide your design file"/> + <param name="scale" type="select" multiple="false" label="scale - select what scale you would like to use to convert your shared file abundances to relative abundances" help=""> + <option value="totalgroup" selected="true">totalgroup</option> + <option value="totalotu">totalotu</option> + <option value="averagegroup">averagegroup</option> + <option value="averageotu">averageotu</option> + </param> + </inputs> + <outputs> + <data name="logfile" format="txt" label="${tool.name} on ${on_string}: logfile"/> + <data name="lefse_out" format="tabular" label="${tool.name} on ${on_string}: lefse"/> + </outputs> + <tests> + <test><!-- test with shared file and defaults --> + <param name="otu" value="amazon.an.shared" ftype="mothur.shared"/> + <output name="lefse_out" md5="295633107cd983be73389e8b92164686" ftype="tabular"/> + <expand macro="logfile-test"/> + </test> + <test><!-- test with relabund file --> + <param name="otu" value="amazon.an.relabund" ftype="mothur.relabund"/> + <param name="design" value="toymothur.design2" ftype="tabular"/> + <param name="label" value="0.18"/> + <output name="lefse_out" md5="c1e88702c6db198080c09f3b9c404c63" ftype="tabular"/> + <expand macro="logfile-test"/> + </test> + </tests> + <help> +<![CDATA[ + +@MOTHUR_OVERVIEW@ + +**Command Documenation** + +The make.lefse_ allows you to create a lefse formatted input file from mothur's output files. + +.. _make.lefse: http://www.mothur.org/wiki/Make.lefse + +]]> + </help> + <citations> + <citation type="doi">10.1128/AEM.01541-09</citation> + </citations> +</tool>
