
ULM / MLM activity scores (for meta cells)
rs_mc_lm_activity.Rd
decoupler-style univariate (ULM) or multivariate (MLM) linear model
activity scores per meta cell on the normalised counts, over all genes.
This version works on MetaCell counts which are stored in memory directly.
Arguments
- sparse_data
A named list that needs to have
data,indptr,indices,nrow,ncolandcs_type. Shape is (metacells, genes) and the data need to be the normalised counts.- gs_list
List. One element per set, each a list with
idx(integer, 0-indexed gene positions) and optionallyweight(numeric, aligned withidx; absent means weight 1).- lm_params
List. With
method("ulm"or"mlm"),stat("t"or"coef") andp_values(boolean).- verbose
Integer.
0L- quiet;1L- normal verbosity;2L- detailed verbosity.