Mercurial > repos > iuc > mothur_get_oturep
diff get.oturep.xml @ 3:899ef1660676 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mothur commit 4648c7574a78601e03ae6a318cbcd5b492a8a9f4
author | iuc |
---|---|
date | Wed, 14 Feb 2018 09:44:01 -0500 |
parents | 17b63c3cc04d |
children | 2ac0e471b97a |
line wrap: on
line diff
--- a/get.oturep.xml Tue Sep 05 16:46:21 2017 -0400 +++ b/get.oturep.xml Wed Feb 14 09:44:01 2018 -0500 @@ -7,77 +7,79 @@ <expand macro="stdio"/> <expand macro="version_command"/> <command><![CDATA[ - @SHELL_OPTIONS@ +@SHELL_OPTIONS@ + +## create symlinks to input datasets +ln -s '$otu' otu.dat && +#if $method_condition.method_switch == "distance": + ln -s '$method_condition.matrix_condition.dist' dist.dat && + ln -s '$method_condition.matrix_condition.nameOrCount' nameOrCount.dat && + ln -s '$method_condition.fasta' fasta.dat && + #if $method_condition.pick.type == "yes": + ln -s '$method_condition.pick.group' group.dat && + #end if +#elif $method_condition.method_switch == "abundance": + ln -s '$method_condition.nameOrCount' nameOrCount.dat && +#end if - ## create symlinks to input datasets - ln -s "$otu" otu.dat && - #if $method_condition.method_switch == "distance": - ln -s "$method_condition.matrix_condition.dist" dist.dat && - ln -s "$method_condition.matrix_condition.nameOrCount" nameOrCount.dat && - ln -s "$method_condition.fasta" fasta.dat && - #if $method_condition.pick.type == "yes": - ln -s "$method_condition.pick.group" group.dat && - #end if - #elif $method_condition.method_switch == "abundance": - ln -s "$method_condition.nameOrCount" nameOrCount.dat && - #end if - - echo 'get.oturep( - list=otu.dat, - #if $sorted: - sorted=$sorted, - #end if - #if $label: - label=${ str($label).replace(",","-") }, +echo 'get.oturep( + list=otu.dat, + #if $sorted: + sorted=$sorted, + #end if + #if $label: + label=${ str($label).replace(",","-") }, + #end if + #if $method_condition.method_switch == "distance": + method=distance, + #if $method_condition.matrix_condition.matrix_format == "column": + column=dist.dat, + #if $method_condition.matrix_condition.nameOrCount.is_of_type("mothur.names"): + name=nameOrCount.dat, + #elif $method_condition.matrix_condition.nameOrCount.is_of_type("mothur.count_table"): + count=nameOrCount.dat, #end if - #if $method_condition.method_switch == "distance": - method=distance, - #if $method_condition.matrix_condition.matrix_format == "column": - column=dist.dat, - #if $method_condition.matrix_condition.nameOrCount.is_of_type("mothur.names"): - name=nameOrCount.dat, - #elif $method_condition.matrix_condition.nameOrCount.is_of_type("mothur.count_table"): - count=nameOrCount.dat, - #end if - #elif $method_condition.matrix_condition.matrix_format == "phylip": - phylip=dist.dat, - #if $method_condition.matrix_condition.nameOrCount: - #if $method_condition.matrix_condition.nameOrCount.is_of_type("mothur.names"): - name=nameOrCount.dat, - #elif $method_condition.matrix_condition.nameOrCount.is_of_type("mothur.count_table"): - count=nameOrCount.dat, - #end if - #end if - #end if - #if $method_condition.fasta: - fasta=fasta.dat, - #end if - #if $method_condition.pick.type == "yes": - #if $method_condition.pick.group: - group=group.dat, - #end if - #if $method_condition.pick.groups: - groups=${ str($method_condition.pick.groups).replace(",","-") }, - #end if - #end if - large=$method_condition.large - #elif $method_condition.method_switch == "abundance": - method=abundance, - #if $method_condition.nameOrCount.is_of_type("mothur.names"): - name=nameOrCount.dat - #elif $method_condition.nameOrCount.is_of_type("mothur.count_table"): - count=nameOrCount.dat + #elif $method_condition.matrix_condition.matrix_format == "phylip": + phylip=dist.dat, + #if $method_condition.matrix_condition.nameOrCount: + #if $method_condition.matrix_condition.nameOrCount.is_of_type("mothur.names"): + name=nameOrCount.dat, + #elif $method_condition.matrix_condition.nameOrCount.is_of_type("mothur.count_table"): + count=nameOrCount.dat, #end if #end if - )' - | sed 's/ //g' ## mothur trips over whitespace - | mothur - | tee mothur.out.log + #end if + #if $method_condition.fasta: + fasta=fasta.dat, + #end if + #if $method_condition.pick.type == "yes": + #if $method_condition.pick.group: + group=group.dat, + #end if + #if $method_condition.pick.groups: + groups=${ str($method_condition.pick.groups).replace(",","-") }, + #end if + #end if + large=$method_condition.large + #elif $method_condition.method_switch == "abundance": + method=abundance, + #if $method_condition.nameOrCount.is_of_type("mothur.names"): + name=nameOrCount.dat + #elif $method_condition.nameOrCount.is_of_type("mothur.count_table"): + count=nameOrCount.dat + #end if + #end if +)' +| sed 's/ //g' ## mothur trips over whitespace +| mothur +| tee mothur.out.log ]]></command> <inputs> <param name="otu" type="data" format="mothur.list" label="list - OTU List"/> <conditional name="method_condition"> - <param name="method_switch" type="select" label="Method to use for the selection of the representative sequences" help="The distance method finds the sequence with the smallest maximum distance to other sequences. The abundance method chooses the most abundant sequence in the OTU as the representative."> + <param name="method_switch" type="select" label="Method to use for the selection of the representative sequences" + help="The distance method finds the sequence with the smallest maximum distance to other sequences. The abundance + method chooses the most abundant sequence in the OTU as the representative."> <option value="distance" selected="true">distance</option> <option value="abundance">abundance</option> </param> @@ -112,7 +114,8 @@ </param> </when> </conditional> - <param name="large" type="boolean" checked="false" truevalue="true" falsevalue="false" label="large - Distance Matrix is very Large" help="Set this parameter to Yes if your distance matric might not fit in RAM"/> + <param name="large" type="boolean" checked="false" truevalue="true" falsevalue="false" label="large - Distance Matrix is very Large" + help="Set this parameter to Yes if your distance matric might not fit in RAM"/> </when> <when value="abundance"> <param name="nameOrCount" type="data" format="mothur.names,mothur.count_table" label="name file or count table - Sequences Name reference"/> @@ -237,8 +240,7 @@ <expand macro="logfile-test"/> </test> </tests> - <help> -<![CDATA[ + <help><![CDATA[ @MOTHUR_OVERVIEW@ @@ -250,7 +252,7 @@ .. _get.oturep: https://www.mothur.org/wiki/Get.oturep v1.23.0: Updated to Mothur 1.33, added count and method parameter -]]> - </help> + + ]]></help> <expand macro="citations"/> </tool>