R/dropletUtils_barcodeRank.R
runBarcodeRankDrops.RdRun barcodeRanks on a count matrix provided in a SingleCellExperiment object. Distinguish between droplets containing cells and ambient RNA in a droplet-based single-cell RNA sequencing experiment.
runBarcodeRankDrops(
inSCE,
sample = NULL,
useAssay = "counts",
lower = 100,
fitBounds = NULL,
df = 20
)A SingleCellExperiment object. Must contain a raw counts matrix before empty droplets have been removed.
Character vector or colData variable name. Indicates which
sample each cell belongs to. Default NULL.
A string specifying which assay in the SCE to use. Default
"counts"
See barcodeRanks for more information.
Default 100.
See barcodeRanks for more information.
Default NULL.
See barcodeRanks for more information. Default
20.
A SingleCellExperiment object with the
barcodeRanks output table appended to the
colData slot. The columns include
dropletUtils_BarcodeRank_Knee and
dropletUtils_barcodeRank_inflection. Please refer to the documentation
of barcodeRanks for details.
data(scExample, package = "singleCellTK")
sce <- runBarcodeRankDrops(inSCE = sce)
#> Sat Mar 18 10:30:27 2023 ... Running 'barcodeRanks'