View source: R/DoubletFinder.R
runDoubletFinder | R Documentation |
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"))
.
runDoubletFinder(
object,
useDatasets = NULL,
PCs = 1:10,
nNeighbors = 20,
nExp = NULL,
verbose = getOption("ligerVerbose", TRUE),
...
)
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
|
Updated object
with variables DoubletFinder_pANN
and
DoubletFinder_classification
updated in cellMeta
slot
if (requireNamespace("DoubletFinder", quietly = TRUE)) {
pbmc <- runDoubletFinder(pbmc)
print(cellMeta(pbmc))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.