Skip to contents

Keeps genes reaching min_count in at least as many samples as the smallest experimental group. Filtering on the smallest group rather than a fixed fraction means a gene expressed only in the smaller condition is retained, which a blanket "expressed in half the samples" rule would discard.

Usage

filter_low_counts(dds, min_count = 10, group = NULL)

Arguments

dds

A DESeq2::DESeqDataSet object.

min_count

Count a sample must reach to be counted. Defaults to 10, a reasonable choice for bulk RNA-seq.

group

Column of colData(dds) defining the experimental groups. If NULL, a threshold of two samples is used.

Value

The filtered DESeqDataSet, with the decision reported as a message.

See also