Repository revision
9:1c8906cc1ddd

Repository 'mothur_list_otulabels'
hg clone https://toolshed.g2.bx.psu.edu/repos/iuc/mothur_list_otulabels

List.otulabels tool metadata
Miscellaneous
Lists otu labels from shared or relabund file
mothur_list_otulabels
toolshed.g2.bx.psu.edu/repos/iuc/mothur_list_otulabels/mothur_list_otulabels/1.39.5.0
1.39.5.0
mothur "#help()" | sed '7q;d' | cut -d" " -f2
True
Version lineage of this tool (guids ordered most recent to oldest)
toolshed.g2.bx.psu.edu/repos/iuc/mothur_list_otulabels/mothur_list_otulabels/1.39.5.0 (this tool)
toolshed.g2.bx.psu.edu/repos/iuc/mothur_list_otulabels/mothur_list_otulabels/1.36.1.0
mothur_list_otulabels
Requirements (dependencies defined in the <requirements> tag set)
name version type
mothur 1.39.5 package
Additional information about this tool
set -o pipefail; export TERM=vt100; 

## create symlinks to input datasets
ln -s '$otu' otu.dat &&

echo 'list.otulabels(
    #if $otu.is_of_type("mothur.relabund"):
        relabund=otu.dat
    #elif $otu.is_of_type("mothur.shared"):
        shared=otu.dat
    #else
        list=otu.dat
    #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
| tee mothur.out.log
    
None
False
Functional tests
name inputs outputs required files
Test-1 otu: amazon.an.list
savelog: True
name: value
amazon.an.list
value
Test-2 otu: amazon.an.shared
groups: forest
savelog: True
name: value
amazon.an.shared
value