assist.ado: Perform ADONIS Analysis for OTU Tables Or Taxonomic Abundance...

Description Usage Arguments Value Author(s) See Also Examples

Description

This function simplifies ADONIS analysis by abstracting away some of the complexity and returning a list of useful measures.

Usage

1
2
3
assist.ado(data, meta, is.OTU=TRUE, ranks=NULL,
           data.trans=NULL, dist=NULL, meta.strata=NULL,
           perm=1000, top=NULL, mode="number")

Arguments

data

an OTU table or a taxonomy abundance matrix.

is.OTU

logical. If the data is an OTU table, set is.OTU TRUE; otherwise, set it as FALSE.

meta

the metadata table to be used (must have same samples as data.

ranks

optional. If ranks is not provided, will test for OTUs, otherwise, will test on taxa at defined ranks. If data is a taxonomic abundance matrix, ranks can be NULL

data.trans

optional. Transform the data using method from the function decostand

dist

optional. the name of any method used in vegdist to calculate pairwise distances. See also adonis and vegdist.

meta.strata

optional. A metadata variable within which to constrain permutations. See also adonis

perm

a numeric number of replicate permutations used for the hypothesis test used in adonis.

top

optional. Select the top taxa or OTUs. See also data.revamp

mode

a character vector, one of "percent" or "number". If number, then top groups will be selected based on total sequence count. If percent, then top groups will be selected based on relative abundance. See also data.revamp

Value

This function returns a list containing outputs from adonis test.

Author(s)

Wen Chen.

See Also

adonis

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
data(ITS1, meta)
## Not run: 
# test OTUs
data <- list(ITS1=ITS1, ITS2=ITS2)
assist.ado(data=data, is.OTU=TRUE,meta=meta, ranks=NULL,
           data.trans="log", dist=NULL)
# test taxa at different ranks
ranks <- c("p", "c", "o", "f", "g")
ado <- assist.ado(data=data, is.OTU=TRUE, 
                  meta=meta, ranks=ranks,
                  data.trans="log", dist="bray" )
# test genera
g1 <- tax.abund(otu1=ITS1, rank="g", drop.unclassified=TRUE)
data <- list(g1=g1)
assist.ado(data=data, is.OTU=FALSE, 
           meta=meta, ranks=NULL,
           data.trans="log", dist="bray" )

## End(Not run)

RAM documentation built on May 2, 2019, 3:04 p.m.