Add expression-program scores with a sparse native fast path
Source:R/SeuratWorkflowAcceleration.R
AddModuleScore.RdThe default Seurat contract is retained. For sparse assay layers, complete feature lists, and `k = FALSE`, scop reproduces Seurat's binning and control sampling and fuses all score calculations in one sparse compiled pass. `search` and extra arguments are inert once every requested feature is present. Other branches delegate to Seurat unchanged.
Usage
AddModuleScore(
object,
features,
pool = NULL,
nbin = 24,
ctrl = 100,
k = FALSE,
assay = NULL,
name = "Cluster",
seed = 1,
search = FALSE,
slot = "data",
...
)