acidgenomes.go_terms_per_gene_name

acidgenomes.go_terms_per_gene_name(gene_names: list[str], organism: str) DataFrame

Retrieve GO terms associated with a list of gene names via Ensembl REST.

Resolves gene names to Ensembl IDs using the Ensembl lookup endpoint, then fetches GO cross-references for each gene.

Parameters:
  • gene_names (list[str]) – Gene symbol names (e.g. ["TP53", "BRCA1"]).

  • organism (str) – Latin organism name (e.g. "Homo sapiens").

Returns:

DataFrame with columns gene_name, go_id, go_aspect, go_term.

Return type:

pd.DataFrame