acidgenomes.map_gene_names_to_hgnc

acidgenomes.map_gene_names_to_hgnc(genes: list[str], *, ignore_case: bool = False, hgnc: Hgnc | None = None) list[int]

Map human gene names (symbols) to HGNC identifiers.

Parameters:
  • genes (list[str]) – Gene names (symbols) to map.

  • ignore_case (bool) – Match case-insensitively.

  • hgnc (Hgnc or None) – HGNC reference dataset. Downloaded via make_hgnc() if None.

Returns:

HGNC identifiers, in the same order as genes.

Return type:

list[int]

Raises:

ValueError – If any gene name cannot be matched.