Description Usage Arguments Value Author(s) Examples
Drop species or features from the feature data frame or phyloseq that occur fewer than or equal to a threshold number of occurrences and fewer abundance than to a threshold abundance.
1 2 3 4 5 6 7 |
obj |
object, phyloseq or a dataframe of species (n_sample, n_feature). |
..., |
additional parameters. |
minocc |
numeric, the threshold number of occurrences to be dropped, if < 1.0,it will be the threshold ratios of occurrences, default is 0. |
minabu |
numeric, the threshold abundance, if fewer than the threshold will be dropped, default is 0. |
dataframe of new features.
Shuangbin Xu
1 2 3 4 5 6 7 8 9 10 11 12 13 | otudafile <- system.file("extdata", "otu_tax_table.txt",
package="MicrobiotaProcess")
otuda <- read.table(otudafile, sep="\t",
header=TRUE, row.names=1,
check.names=FALSE, skip=1,
comment.char="")
otuda <- otuda[sapply(otuda, is.numeric)]
otuda <- data.frame(t(otuda), check.names=FALSE)
dim(otuda)
otudat <- drop_taxa(otuda, minocc=0.1, minabu=1)
dim(otudat)
data(test_otu_data)
keepps <- drop_taxa(test_otu_data, minocc=0.1, minabu=0)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.