acidgenomes.update_gene_symbols

acidgenomes.update_gene_symbols(gene_names: list[str], organism: str) dict[str, str]

Update gene symbols to current nomenclature.

For Homo sapiens, checks against HGNC. For other organisms, checks against NCBI.

Parameters:
  • gene_names (list[str]) – Gene names to look up. Must not contain duplicates or NA values.

  • organism (str) – Latin organism name.

Returns:

Mapping of input gene names to current official gene names.

Return type:

dict[str, str]

Raises:

ValueError – If any gene name cannot be matched.