powered by
This is based on the formula var = mu + mu^2 / theta
get_model_var( vst_out, cell_attr = vst_out$cell_attr, use_nonreg = FALSE, bin_size = 256, verbosity = 2 )
A named vector of variances (the average across all cells), one entry per gene.
The output of a vst run
Data frame of cell meta data
Use the non-regularized parameter estimates; boolean; default is FALSE
Number of genes to put in each bin (to show progress)
An integer specifying the verbosity level: 0 (silent, no messages), 1 (show messages only), or 2 (show messages and progress bars); default is 2
# \donttest{ vst_out <- vst(pbmc, return_cell_attr = TRUE) res_var <- get_model_var(vst_out) # }
Run the code above in your browser using DataLab