View source: R/runBatchCorrection.R
runZINBWaVE | R Documentation |
A general and flexible zero-inflated negative binomial model that can be used to provide a low-dimensional representations of scRNAseq data. The model accounts for zero inflation (dropouts), over-dispersion, and the count nature of the data. The model also accounts for the difference in library sizes and optionally for batch effects and/or other covariates.
runZINBWaVE(
inSCE,
useAssay = "counts",
batch = "batch",
nHVG = 1000L,
nComponents = 50L,
epsilon = 1000,
nIter = 10L,
reducedDimName = "zinbwave",
BPPARAM = BiocParallel::SerialParam()
)
inSCE |
Input SingleCellExperiment object |
useAssay |
A single character indicating the name of the assay requiring
batch correction. Note that ZINBWaVE works for counts (integer) input rather
than logcounts that other methods prefer. Default |
batch |
A single character indicating a field in
|
nHVG |
An integer. Number of highly variable genes to use when fitting
the model. Default |
nComponents |
An integer. The number of principle components or
dimensionality to generate in the resulting matrix. Default |
epsilon |
An integer. Algorithmic parameter. Empirically, a high epsilon
is often required to obtained a good low-level representation. Default
|
nIter |
An integer, The max number of iterations to perform. Default
|
reducedDimName |
A single character. The name for the corrected
low-dimensional representation. Will be saved to |
BPPARAM |
A BiocParallelParam object specifying whether
should be parallelized. Default |
The input SingleCellExperiment object with
reducedDim(inSCE, reducedDimName)
updated.
Pollen, Alex A et al., 2014
data('sceBatches', package = 'singleCellTK')
## Not run:
sceCorr <- runZINBWaVE(sceBatches, nIter = 5)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.