acidgenomes.map_gene_names_to_ncbi¶
- acidgenomes.map_gene_names_to_ncbi(genes: list[str], organism: str, *, taxonomic_group: str | None = None, ignore_case: bool = False, ncbi: NcbiGeneInfo | None = None) list[int]¶
Map gene names to NCBI (Entrez) gene identifiers.
- Parameters:
organism (str) – Latin organism name.
taxonomic_group (str or None) – NCBI FTP taxonomic group. Auto-detected if
None.ignore_case (bool) – Match case-insensitively.
ncbi (NcbiGeneInfo or None) – NCBI gene info reference dataset. Downloaded via
make_ncbi_gene_info()ifNone.
- Returns:
NCBI (Entrez) gene identifiers, in the same order as
genes.- Return type: