Repository revision
9:a02117aa58a5

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

Otu.association tool metadata
Miscellaneous
Calculate the correlation coefficient for the otus
mothur_otu_association
toolshed.g2.bx.psu.edu/repos/iuc/mothur_otu_association/mothur_otu_association/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_otu_association/mothur_otu_association/1.39.5.0 (this tool)
toolshed.g2.bx.psu.edu/repos/iuc/mothur_otu_association/mothur_otu_association/1.36.1.0
mothur_otu_association
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 &&
ln -s '$metadata' metadata.dat &&

echo 'otu.association(
    #if $otu.is_of_type("mothur.relabund"):
        relabund=otu.dat
    #elif $otu.is_of_type("mothur.shared"):
        shared=otu.dat
    #end if
    #if $label:
        ,label=${ str($label).replace(",","-") }
    #end if
    #if $groups:
        ,groups=${ str($groups).replace(",","-") }
    #end if
    #if $method:
        ,method=$method
    #end if
    #if $metadata:
        ,metadata=metadata.dat
    #end if
    #if $cutoff:
        ,cutoff=$cutoff
    #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.shared
savelog: True
name: value
amazon.an.shared
value
Test-2 otu: amazon.an.relabund
label: ['0.03', '0.05', '0.36', '0.41', '0.55']
groups: ['forest', 'pasture']
method: kendall
savelog: True
name: value
amazon.an.relabund
value