enrichmap.tl.infer_gene_weights

enrichmap.tl.infer_gene_weights#

enrichmap.tl.infer_gene_weights(adata: AnnData, gene_set: list) dict | None#

Infer gene weights based on the coefficient of variation (CV) of gene expression.

Parameters:
  • adata (AnnData) – Annotated data matrix, containing gene expression values.

  • gene_set (list) – List of gene names for which weights (CV values) will be inferred. Only genes present in adata.var_names will be considered.

Returns:

A dictionary mapping gene names to their inferred weights based on the coefficient of variation. The weight reflects the relative variability of each gene’s expression across all cells.

Return type:

dict