
Wrapper function for analytic Pearson residual parameters
params_sc_apr.RdThe closed-form alternative to scTransform: one shared dispersion instead of a fitted model per gene. Much cheaper, and on most data sets it ranks genes about as well.
Arguments
- theta
Numeric. The shared negative binomial dispersion.
Infgives the Poisson limit. Defaults to100.0.- min_cells
Integer. Minimum number of cells a gene must be detected in to be retained.
0Lkeeps everything. Defaults to5L.- clip_min
Numeric or
NULL. Lower residual clipping bound.NULLuses-sqrt(n_cells). Must be given together withclip_max. Defaults toNULL.- clip_max
Numeric or
NULL. Upper residual clipping bound.NULLusessqrt(n_cells). Must be given together withclip_min. Defaults toNULL.
Value
A named list with the following elements:
theta - Numeric. The shared negative binomial dispersion.
Infgives the Poisson limit. Defaults to100.0.min_cells - Integer. Minimum number of cells a gene must be detected in to be retained.
0Lkeeps everything. Defaults to5L.clip_min - Numeric or
NULL. Lower residual clipping bound.NULLuses-sqrt(n_cells). Must be given together withclip_max. Defaults toNULL.clip_max - Numeric or
NULL. Upper residual clipping bound.NULLusessqrt(n_cells). Must be given together withclip_min. Defaults toNULL.