man/runEmptyDrops.Rd
b5989368
 % Generated by roxygen2: do not edit by hand
bfecf1eb
 % Please edit documentation in R/dropletUtils_emptyDrops.R
b5989368
 \name{runEmptyDrops}
 \alias{runEmptyDrops}
 \title{Identify empty droplets using \link[DropletUtils]{emptyDrops}.}
 \usage{
55429919
 runEmptyDrops(
   inSCE,
   sample = NULL,
   useAssay = "counts",
   lower = 100,
   niters = 10000,
95793b91
   testAmbient = FALSE,
55429919
   ignore = NULL,
   alpha = NULL,
   retain = NULL,
95793b91
   barcodeArgs = list(),
   BPPARAM = BiocParallel::SerialParam()
55429919
 )
b5989368
 }
 \arguments{
229625bd
 \item{inSCE}{A \linkS4class{SingleCellExperiment} object. Must contain a raw 
 counts matrix before empty droplets have been removed.}
b5989368
 
229625bd
 \item{sample}{Character vector or colData variable name. Indicates which 
 sample each cell belongs to. Default \code{NULL}.}
b5989368
 
229625bd
 \item{useAssay}{A string specifying which assay in the SCE to use. Default 
 \code{"counts"}}
b5989368
 
229625bd
 \item{lower}{See \link[DropletUtils]{emptyDrops} for more information. 
 Default \code{100}.}
95793b91
 
229625bd
 \item{niters}{See \link[DropletUtils]{emptyDrops} for more information. 
 Default \code{10000}.}
95793b91
 
229625bd
 \item{testAmbient}{See \link[DropletUtils]{emptyDrops} for more information. 
 Default \code{FALSE}.}
95793b91
 
229625bd
 \item{ignore}{See \link[DropletUtils]{emptyDrops} for more information. 
 Default \code{NULL}.}
95793b91
 
229625bd
 \item{alpha}{See \link[DropletUtils]{emptyDrops} for more information. 
 Default \code{NULL}.}
95793b91
 
229625bd
 \item{retain}{See \link[DropletUtils]{emptyDrops} for more information. 
 Default \code{NULL}.}
95793b91
 
229625bd
 \item{barcodeArgs}{See \link[DropletUtils]{emptyDrops} for more information. 
 Default \code{list()}.}
95793b91
 
229625bd
 \item{BPPARAM}{See \link[DropletUtils]{emptyDrops} for more information. 
 Default \code{BiocParallel::SerialParam()}.}
b5989368
 }
 \value{
229625bd
 A \linkS4class{SingleCellExperiment} object with the
 \link[DropletUtils]{emptyDrops} output table appended to the
 \link{colData} slot. The columns include
 \code{emptyDrops_total}, \code{emptyDrops_logprob},
 \code{emptyDrops_pvalue}, \code{emptyDrops_limited}, \code{emptyDrops_fdr}.
 Please refer to the documentation of \link[DropletUtils]{emptyDrops} for
 details.
b5989368
 }
 \description{
 Run \link[DropletUtils]{emptyDrops} on the count matrix in the
d6c4f292
 provided \linkS4class{SingleCellExperiment} object.
229625bd
 Distinguish between droplets containing cells and ambient RNA in a
 droplet-based single-cell RNA sequencing experiment.
b5989368
 }
 \examples{
42b943b7
 data(scExample, package = "singleCellTK")
 sce <- runEmptyDrops(inSCE = sce)
b5989368
 }
229625bd
 \seealso{
 \code{\link{runDropletQC}}, \code{\link{plotEmptyDropsResults}},
 \code{\link{plotEmptyDropsScatter}}
 }