Note – this filters GC bins, then bins by counts, and then cells. So the denominator changes at each step.
Arguments
- sce
SingleCellExperiment object
- assay_name
Name of assay to pull counts from. Ideally raw counts
- which
Filter cells or bins
- min_bin_counts
A bin requires at least
min_bin_countsacrossmin_bin_propproportion of cells to be kept- min_bin_prop
Minimum proportion of cells with at least
min_bin_countsper bin in order to keep a bin- min_cell_counts
A cell requires at least
min_cell_countsacrossmin_cell_propproportion of bins to be kept- min_cell_prop
Minimum proportion of bins with at least
min_cell_countsper cell in order to keep a cell- flag_only
Only flag cells/bins, do not remove
- gc_range
GC range for bins to keep. Removes large GC outliers