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.
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. IfNULL, a threshold of two samples is used.