Mercurial > repos > sanbi-uwc > mothur_test
diff tools/mothur/list.otulabels.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/list.otulabels.xml Fri Jun 03 09:32:47 2016 -0400 @@ -0,0 +1,91 @@ +<tool profile="16.07" id="mothur_list_otulabels" name="List.otulabels" version="@WRAPPER_VERSION@.0"> + <description>Lists otu labels from shared or relabund file</description> + <macros> + <import>macros.xml</import> + </macros> + <expand macro="requirements"/> + <expand macro="version_command"/> + <command detect_errors="aggressive"><![CDATA[ + echo 'list.otulabels( + #if $otu.is_of_type("mothur.relabund"): + relabund=$otu + #elif $otu.is_of_type("mothur.shared"): + shared=$otu + #else + list=$otu + #end if + #if $label: + ,label=${ str($label).replace(",","-") } + #end if + #if $groups: + ,groups=${ str($groups).replace(",","-") } + #end if + )' + | sed 's/ //g' ## mothur trips over whitespace + | mothur && + + ## move output files to correct destination + prefix="$otu" && + mv mothur.*.logfile "$logfile" && + mv \${prefix%.dat}*.otulabels . + ]]></command> + <inputs> + <param name="otu" type="data" format="mothur.shared,mothur.relabund,mothur.list" label="list or shared or relabund - OTU List or Shared or Relabund"/> + <param name="label" type="select" label="label - OTU Labels" multiple="true"> + <expand macro="labeloptions"/> + </param> + <param name="groups" type="select" label="groups - Pairwise comparision groups" multiple="true"> + <options> + <filter type="data_meta" ref="otu" key="groups"/> + </options> + </param> + </inputs> + <outputs> + <data name="logfile" format="txt" label="${tool.name} on ${on_string}: logfile"/> + <collection name="otulabels" type="list" label="${tool.name} on ${on_string}: otulabels"> + <discover_datasets pattern=".*?\.(?P<designation>.*)\.otulabels" format="mothur.otulabels"/> + </collection> + </outputs> + <tests> + <test> + <param name="infile" value="otulist"/> + <param name="otu" value="amazon.an.list" ftype="mothur.list"/> + <output_collection name="otulabels" count="36"> + <element name="unique" md5="c901cebfbc87559f1667546111408a22" ftype="mothur.otulabels"/> + <element name="0.55" md5="0e0dcf8a91c03e1cc6adbf2593addf20" ftype="mothur.otulabels"/> + </output_collection> + <expand macro="logfile-test"/> + </test> + <test><!-- test with group select --> + <param name="infile" value="otulist"/> + <param name="otu" value="amazon.an.shared" ftype="mothur.shared"/> + <param name="groups" value="forest"/> + <output_collection name="otulabels" count="36"> + <element name="unique" md5="8a4d85496fdcfdf99337129989350e7e" ftype="mothur.otulabels"/> + </output_collection> + <expand macro="logfile-test"/> + </test> + </tests> + <help> +<![CDATA[ + +@MOTHUR_OVERVIEW@ + +**Command Documenation** + +The list.otulabels_ command lists otu labels from shared_ or relabund_ file. This list can be used especially with subsampled datasets when used with output from classify.otu_, otu.association_, or corr.axes_ to select specific otus using the get.otulabels_ or remove.otulabels_ commands. + +.. _list.otulabels: http://www.mothur.org/wiki/List.otulabels +.. _classify.otu: http://www.mothur.org/wiki/Classify.otu +.. _otu.association: http://www.mothur.org/wiki/Otu.association +.. _corr.axes: http://www.mothur.org/wiki/Corr.axes +.. _get.otulabels: http://www.mothur.org/wiki/Get.otulabels +.. _remove.otulabels: http://www.mothur.org/wiki/Remove.otulabels +.. _shared: http://www.mothur.org/wiki/Shared_file +.. _relabund: http://www.mothur.org/wiki/Get.relabund + +v.1.27.0: Updated to mothur 1.33, added list file for otu +]]> + </help> + <expand macro="citations"/> +</tool>