decoupler.run_ulm

decoupler.run_ulm(mat, net, source='source', target='target', weight='weight', min_n=5, verbose=False, use_raw=True)

Univariate Linear Model (ULM).

Wrapper to run ULM.

Parameters:
matlist, pd.DataFrame or AnnData

List of [features, matrix], dataframe (samples x features) or an AnnData instance.

netpd.DataFrame

Network in long format.

sourcestr

Column name in net with source nodes.

targetstr

Column name in net with target nodes.

weightstr

Column name in net with weights.

min_nint

Minimum of targets per source. If less, sources are removed.

verbosebool

Whether to show progress.

use_rawbool

Use raw attribute of mat if present.

Returns:
Returns ulm activity estimates and p-values or stores them in mat.obsm[‘ulm_estimate’] and mat.obsm[‘ulm_pvals’].