Description Usage Arguments Value See Also Examples
View source: R/transform_filter-methods.R
Make filter fun. the most abundant k
taxa
1 |
k |
An integer, indicating how many of the most abundant taxa should be kept. |
na.rm |
A logical. Should |
Returns a function (enclosure) that will return TRUE for each element in the most abundant k values.
topk
, topf
,
topp
, rm_outlierf
1 2 3 4 5 6 7 8 | ## Use simulated abundance matrix
set.seed(711)
testOTU <- otu_table(matrix(sample(1:50, 25, replace=TRUE), 5, 5), taxa_are_rows=FALSE)
f1 <- filterfun_sample(topk(2))
wh1 <- genefilter_sample(testOTU, f1, A=2)
wh2 <- c(TRUE, TRUE, TRUE, FALSE, FALSE)
prune_taxa(wh1, testOTU)
prune_taxa(wh2, testOTU)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.