runDoubletFinder {rliger} | R Documentation |
Doublet detection with DoubletFinder
Description
Detect doublet with DoubletFinder. Package "Seurat" and "DoubletFinder" would be required to run this function.
This wrapper runs Seurat PCA workflow (NormalizeData,
FindVariableFeatures, ScaleData, RunPCA) with all default settings on each
dataset, and then calls DoubletFinder::doubletFinder
. Users that
prefer having more control on the preprocessing part might consider creating
single-sample Seurat object with
CreateSeuratObject(rawData(object, "datasetName"))
.
Usage
runDoubletFinder(
object,
useDatasets = NULL,
PCs = 1:10,
nNeighbors = 20,
nExp = NULL,
verbose = getOption("ligerVerbose", TRUE),
...
)
Arguments
object |
A liger object. |
useDatasets |
A character vector of the names, a numeric or logical
vector of the index of the datasets to run
|
PCs |
Specific principal components to use. Default |
nNeighbors |
Number of the PC neighborhood size used to compute pANN.
See "See Also". Scalar for all used datasets or vector for each. Default
|
nExp |
The total number of doublet predictions produced. Scalar for all
used datasets or vector for each. Default |
verbose |
Logical. Whether to show information of the progress. Default
|
... |
Additional arguments passed to
|
Value
Updated object
with variables DoubletFinder_pANN
and
DoubletFinder_classification
updated in cellMeta
slot
Examples
if (requireNamespace("DoubletFinder", quietly = TRUE)) {
pbmc <- runDoubletFinder(pbmc)
print(cellMeta(pbmc))
}