| correct_counts | R Documentation |
This version does not need a matrix of Pearson residuals. It takes the count matrix as input and calculates the residuals on the fly. The corrected UMI counts will be rounded to the nearest integer and negative values clipped to 0.
correct_counts(
x,
umi,
cell_attr = x$cell_attr,
scale_factor = NA,
verbosity = 2
)
x |
A list that provides model parameters and optionally meta data; use output of vst function |
umi |
The count matrix |
cell_attr |
Provide cell meta data holding latent data info |
scale_factor |
Replace all values of UMI in the regression model by this value. Default is NA which uses median of total UMI as the latent factor. |
verbosity |
An integer specifying the verbosity level: 0 (silent, no messages), 1 (show messages only), or 2 (show messages and progress bars); default is 2 |
Corrected data as UMI counts
vst_out <- vst(pbmc, return_cell_attr = TRUE)
umi_corrected <- correct_counts(vst_out, pbmc)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.