R/filter_microbiome_dataset.R
filter_samples.Rd
Filter Samples by Library Size
filter_samples(object, min_abundance = NULL, max_abundance = NULL)
A microbiome_dataset object.
microbiome_dataset
Minimum total abundance required to keep a sample.
Maximum total abundance allowed to keep a sample.
data("global_patterns", package = "microbiomedataset") x <- filter_samples(global_patterns, min_abundance = 1000) dim(x@expression_data) #> [1] 19216 26