harreman.hotspot.compute_top_scoring_modules

harreman.hotspot.compute_top_scoring_modules#

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, default 1) – Standard deviation threshold to determine strong module activation. Only modules with zscore > sd are considered strictly activated.

  • use_super_modules (bool, default False) – If True, select among super-modules instead of standard modules.

Returns:

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

Return type:

pandas.Series