Mercurial > repos > iuc > mothur_create_database
diff create.database.xml @ 0:6efb9d6ab2b1 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mothur commit 180a403421967d36f995941b1a4561349d75cfc5
| author | iuc |
|---|---|
| date | Fri, 24 Jun 2016 16:28:52 -0400 |
| parents | |
| children | 122c47c8dad6 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/create.database.xml Fri Jun 24 16:28:52 2016 -0400 @@ -0,0 +1,83 @@ +<tool profile="16.07" id="mothur_create_database" name="Create.database" version="@WRAPPER_VERSION@.0"> + <description>creates a database file from a list, repnames, repfasta and contaxonomy file</description> + <macros> + <import>macros.xml</import> + </macros> + <expand macro="requirements"/> + <expand macro="version_command"/> + <command detect_errors="aggressive"><![CDATA[ + ## create symlinks to input datasets + ln -s "$otu" otu.dat && + ln -s "$group" group.dat && + ln -s "$count" count.dat && + ln -s "$repfasta" repfasta.dat && + ln -s "$repname" repname.dat && + ln -s "$constaxonomy" constaxonomy.dat && + + echo 'create.database( + #if $otu.is_of_type("mothur.list"): + list=otu.dat + #else + shared=otu.dat + #end if + ,repfasta=repfasta.dat + ,repname=repname.dat + ,constaxonomy=constaxonomy.dat + #if $label: + ,label=$label + #end if + #if $group: + ,group=group.dat + #end if + #if $count: + ,count=count.dat + #end if + )' + | sed 's/ //g' ## mothur trips over whitespace + | mothur + ]]></command> + <inputs> + <param name="otu" type="data" format="mothur.list,mothur.shared" label="list or shared - OTU List of Shared"/> + <param name="repfasta" type="data" format="fasta" label="repfasta - rep.fasta" help="rep.fasta file output by get.oturep"/> + <param name="repname" type="data" format="mothur.names" label="repname - rep.names" help="rep.names file output by get.oturep"/> + <param name="constaxonomy" type="data" format="mothur.cons.taxonomy" label="constaxonomy - Consensus Taxonomy" help="consensus taxonomy file output by classify.otu"/> + <param name="count" type="data" format="mothur.count_table" optional="true" label="count file - count_table"/> + <param name="group" type="data" format="mothur.groups" optional="true" label="group - Groups for summary file"/> + <param name="label" type="select" label="label - OTU Labels" optional="true" help="Select exactly one label. If none selected, first label in your list or shared file will be used"> + <expand macro="labeloptions"/> + </param> + </inputs> + <outputs> + <expand macro="logfile-output"/> + <data name="database" format="tabular" from_work_dir="otu*.database" label="${tool.name} on ${on_string}: database"/> + </outputs> + <tests> + <test> + <param name="otu" value="cd-test.list" ftype="mothur.list"/> + <param name="repfasta" value="cd-test.repfasta" ftype="fasta"/> + <param name="repname" value="cd-test.repname" ftype="mothur.names"/> + <param name="label" value="unique"/> + <param name="constaxonomy" value="cd-test.constaxonomy" ftype="mothur.cons.taxonomy"/> + <output name="database" file="cd-test.database" ftype="tabular"/> + <expand macro="logfile-test"/> + </test> + </tests> + <help> +<![CDATA[ + +@MOTHUR_OVERVIEW@ + +**Command Documenation** + +The create.database_ command reads a list_ or shared_ file, .cons.taxonomy, .rep.fasta, .rep.names and optional group file, and creates a database file. + +.. _list: http://www.mothur.org/wiki/List_file +.. _shared: http://www.mothur.org/wiki/Shared_file +.. _create.database: http://www.mothur.org/wiki/Create.database + +v.1.28.0: Updated to Mothur 1.33, added count paramter. + +]]> + </help> + <expand macro="citations"/> +</tool>
