Repository revision
9:5e94c135ef00

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

Normalize.shared tool metadata
Miscellaneous
Normalize the number of sequences per group to a specified level
mothur_normalize_shared
toolshed.g2.bx.psu.edu/repos/iuc/mothur_normalize_shared/mothur_normalize_shared/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_normalize_shared/mothur_normalize_shared/1.39.5.0 (this tool)
toolshed.g2.bx.psu.edu/repos/iuc/mothur_normalize_shared/mothur_normalize_shared/1.36.1.0
mothur_normalize_shared
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 'normalize.shared(
    #if $otu.is_of_type("mothur.relabund"):
        relabund=otu.dat
    #elif $otu.is_of_type("mothur.shared"):
        shared=otu.dat,
        makerelabund=$makerelabund
    #end if
    #if $label:
        ,label=${ str($label).replace(",","-") }
    #end if
    #if $groups:
        ,groups=${ str($groups).replace(",","-") }
    #end if
    #if $method:
        ,method=${ str($method).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.shared
savelog: True
name: value
amazon.an.shared
value
Test-2 otu: amazon.an.relabund
label: ['0.03', '0.05', '0.22', '0.26']
groups: ['forest', 'pasture']
method: zscore
savelog: True
name: value
amazon.an.relabund
value