scviva.tools.harreman.hotspot.compute_top_scoring_modules#

scviva.tools.harreman.hotspot.compute_top_scoring_modules(adata, sd=1, use_super_modules=False)[source]#

Identify the top-scoring module (or super-module) for each cell.

Parameters:
adata AnnData

Must contain a matrix of module or super-module scores in: - obsm['module_scores'] or - obsm['super_module_scores']

sd float | None

Standard deviation threshold to determine strong module activation. Only modules with zscore > sd are considered strictly activated.

use_super_modules bool | None

If True, select among super-modules instead of standard modules.

Returns:

pandas.Series A Series indexed by cell, containing the name of the top-scoring module/super-module for each cell.