View source: R/runBatchCorrection.R
runBBKNN | R Documentation |
BBKNN, an extremely fast graph-based data integration algorithm. It modifies the neighbourhood construction step to produce a graph that is balanced across all batches of the data.
runBBKNN(
inSCE,
useAssay = "logcounts",
batch = "batch",
reducedDimName = "BBKNN",
nComponents = 50L
)
inSCE |
Input SingleCellExperiment object |
useAssay |
A single character indicating the name of the assay requiring
batch correction. Default |
batch |
A single character indicating a field in |
reducedDimName |
A single character. The name for the corrected
low-dimensional representation. Will be saved to |
nComponents |
An integer. Number of principle components or the
dimensionality, adopted in the pre-PCA-computation step, the BBKNN step (for
how many PCs the algorithm takes into account), and the final UMAP
combination step where the value represent the dimensionality of the updated
reducedDim. Default |
The input SingleCellExperiment object with
reducedDim(inSCE, reducedDimName)
updated.
Krzysztof Polanski et al., 2020
## Not run:
data('sceBatches', package = 'singleCellTK')
logcounts(sceBatches) <- log1p(counts(sceBatches))
sceBatches <- runBBKNN(sceBatches, useAssay = "logcounts",
nComponents = 10)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.