phyloseq_richness_filter: Remove samples from phyloseq object that have less than n...

View source: R/phyloseq_filter.R

phyloseq_richness_filterR Documentation

Remove samples from phyloseq object that have less than n taxa

Description

Remove samples from phyloseq object that have less than n taxa

Usage

phyloseq_richness_filter(physeq, mintaxa = 10)

Arguments

physeq

A phyloseq-class object

mintaxa

Minimum number of taxa that should be present in a sample (default, 10)

Value

Trimmed phyloseq object (All samples will have >= N taxa)

Examples

data("esophagus")
esophagus
phyloseq_richness_filter(esophagus, mintaxa = 30)
phyloseq_richness_filter(esophagus, mintaxa = 100)


vmikk/metagMisc documentation built on Feb. 14, 2024, 2:29 a.m.