Description Usage Arguments Value Author(s) Examples
This function consumes and transforms either an OTU table or a
taxonomy abundance matrix. If an OTU table was provided, it will
be either transposed without the "taxonomy" column, but each
otuID will be renames with it's LCA classification appended;
or being transformed to be taxonomic abundance matrix at the
ranks set by ranks
.
If a taxonomic abundance matrix is provided, it will be kept the
same with proper data transformation as defined by
stand.method
option.
1 2 |
data |
an OTU table or a taxonomic abundance matrix. |
is.OTU |
logical. If an OTU table was provided, |
ranks |
optional. If no |
stand.method |
optional. Transform the output using method from the function
|
top |
optional. Select the top taxa or OTUs. |
mode |
a character vector, one of " |
The value returned by this function is a list, so for convenience, any nested lists have been given descriptive items names to make accessing its elements simple (see Examples).
If is.OTU
is TRUE
and ranks
is not
given: the output is a length one list named
LCA_OTU
.
If is.OTU
is TRUE
and ranks
is given:
the output is a list with a length same as the number of
taxonomic ranks provided. Each member of the list is named
after the rank it processed at.
If is.OTU
is FALSE
, the output is a length
one list named Taxa
.
Wen Chen
1 2 3 4 5 6 7 8 9 10 11 | data(ITS1, ITS2, meta)
data.new <- data.revamp(data=list(ITS1=ITS1), is.OTU=TRUE,
ranks=c("f", "g"), stand.method="log")
## Not run:
data.new <- data.revamp(data=list(ITS1=ITS1), is.OTU=TRUE,
ranks=NULL, stand.method="log")
data.new <- data.revamp(data=list(ITS1=ITS1, ITS2=ITS2),
is.OTU=TRUE, ranks=c("f", "g"), stand.method="total")
names(data.new)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.