Remove cell doublets from a SingleCellExperiment object.
Source: R/single_sample_norm_clustering.R
sce_rm_doublets_fn.RdRemove cell doublets from a SingleCellExperiment object.
Arguments
- sce_norm_hvg
(input target) A
SingleCellExperimentobject.- doublet_density
(input target) A numeric vector.
- max_doublet_score
A numeric scalar: cells with doublet score (
log10(doublet_density + 1)) exceeding this value will be marked as doublets and removed fromsce_norm_hvg. IfNULL, cells won't be filtered out.