Runs the doubletfinder algorithm on the SingleCellExperiment. Returns a SingleCellExperiment annotated with is_singlet and tSNE coordinates.

run_doubletfinder(
  sce,
  pK = NULL,
  pca_dims = 10,
  var_features = 2000,
  vars_to_regress_out = "nCount_RNA",
  doublet_rate = 0,
  dpk = 8,
  num_cores = max(1, future::availableCores() - 2)
)

Arguments

sce

a SingleCellExperiment object

pK

a pK value to use in place of a parameter sweep

pca_dims

the number of principal components to use

var_features

the top n variable features to use

vars_to_regress_out

the variables to regress out

doublet_rate

either a fixed doublet rate (e.g. 0.075) or 0 to

dpk

doublets per thousand cells increment if doublet_rate is 0.

num.cores

the number of CPU cores to use

Value

sce a SingleCellExperiment object annotated for singlets

Details

Remember to cite: - DoubletFinder: Doublet Detection in Single-Cell RNA Sequencing Data Using Artificial Nearest Neighbors. McGinnis CS, Murrow LM, Gartner ZJ. Cell Syst. 2019 Apr 24;8(4):329-337.e4. doi: https://doi.org/10.1016/j.cels.2019.03.003.