Filter low presence taxa from a count matrix.
filter_counts(counts, abundance = 10, presence = 0.1)
counts | A count matrix with samples as rows and taxa as columns. |
---|---|
abundance | Smallest acceptable mean abundance for a taxon. |
presence | A taxon has to be present in at least this percentage of samples to pass the filter. |
Count matrix with some taxa removed.
NULL#> NULL