Remove cells if not enough or too many in one image
Arguments
- sce
SingleCellExperimentobject- min
numeric(1), remove the cells of images with fewer cells
- max
numeric(1), remove the cells of images with more cells
Value
SingleCellExperiment object
Examples
set.seed(23)
cell_file <- generateData()
sce <- loadData(cell_file)
sce <- removeOutliers(sce, min = 0, max = 300)