Skip to contents

Filter Samples by Library Size

Usage

filter_samples(object, min_abundance = NULL, max_abundance = NULL)

Arguments

object

A microbiome_dataset object.

min_abundance

Minimum total abundance required to keep a sample.

max_abundance

Maximum total abundance allowed to keep a sample.

Value

A microbiome_dataset object.

Examples

data("global_patterns", package = "microbiomedataset")

x <- filter_samples(global_patterns, min_abundance = 1000)
dim(x@expression_data)
#> [1] 19216    26