b5989368 |
% Generated by roxygen2: do not edit by hand
|
34396921 |
% Please edit documentation in R/scDblFinder_doubletDetection.R
\name{runScDblFinder}
\alias{runScDblFinder}
|
ba57a146 |
\title{Detect doublet cells using \link[scDblFinder]{scDblFinder}.}
|
b5989368 |
\usage{
|
34396921 |
runScDblFinder(
|
b5128622 |
inSCE,
sample = NULL,
useAssay = "counts",
nNeighbors = 50,
|
9c5a3bd6 |
simDoublets = max(10000, ncol(inSCE)),
|
b5128622 |
seed = 12345,
|
02390113 |
BPPARAM = BiocParallel::SerialParam(RNGseed = seed)
|
b5128622 |
)
|
b5989368 |
}
\arguments{
|
99c624c8 |
\item{inSCE}{A \linkS4class{SingleCellExperiment} object.}
|
b5989368 |
|
02390113 |
\item{sample}{Character vector or colData variable name. Indicates which
|
b0170764 |
sample each cell belongs to. Default \code{NULL}.}
|
b5989368 |
|
02390113 |
\item{useAssay}{A string specifying which assay in the SCE to use. Default
|
99c624c8 |
\code{"counts"}.}
|
b5989368 |
|
b5128622 |
\item{nNeighbors}{Number of nearest neighbors used to calculate density for
|
99c624c8 |
doublet detection. Default \code{50}.}
|
b5128622 |
|
02390113 |
\item{simDoublets}{Number of simulated doublets created for doublet
|
99c624c8 |
detection. Default \code{10000}.}
|
b5128622 |
|
02390113 |
\item{seed}{Seed for the random number generator, can be set to \code{NULL}.
|
99c624c8 |
Default \code{12345}.}
|
bfecf1eb |
|
02390113 |
\item{BPPARAM}{A \code{\link[BiocParallel]{BiocParallelParam-class}} object
specifying whether the neighbour searches should be parallelized. Default
\code{BiocParallel::SerialParam(RNGseed = seed)}.}
|
b5989368 |
}
\value{
A \link[SingleCellExperiment]{SingleCellExperiment} object with the
|
99c624c8 |
scDblFinder QC outputs added to the \link{colData} slot.
|
b5989368 |
}
\description{
|
ba57a146 |
A wrapper function for \link[scDblFinder]{scDblFinder}. Identify
|
b5989368 |
potential doublet cells based on simulations of putative doublet expression
profiles. Generate a doublet score for each cell.
}
|
d8c32124 |
\details{
|
02390113 |
This function is a wrapper function for
\link[scDblFinder]{scDblFinder}. \code{runScDblFinder} runs
\link[scDblFinder]{scDblFinder} for each sample within \code{inSCE}
iteratively. The resulting doublet scores for all cells will be appended to
|
99c624c8 |
the \code{\link{colData}} of \code{inSCE}.
|
d8c32124 |
}
|
b5989368 |
\examples{
|
4991c249 |
data(scExample, package = "singleCellTK")
|
c06bc73b |
sce <- subsetSCECols(sce, colData = "type != 'EmptyDroplet'")
|
34396921 |
sce <- runScDblFinder(sce)
|
b5989368 |
}
\references{
Lun ATL (2018). Detecting doublet cells with scran.
|
528846af |
\url{https://ltla.github.io/SingleCellThoughts/software/doublet_detection/bycell.html}
|
b5989368 |
}
\seealso{
|
02390113 |
\code{\link[scDblFinder]{scDblFinder}},
|
99c624c8 |
\code{\link{plotScDblFinderResults}}, \code{\link{runCellQC}}
|
b5989368 |
}
|