acidgenomes.detect_organism

acidgenomes.detect_organism(identifiers: list[str]) str

Detect the organism from a list of gene/transcript identifiers.

Parameters:

identifiers (list[str]) – Gene or transcript identifiers (e.g. Ensembl IDs).

Returns:

Latin organism name.

Return type:

str

Raises:

ValueError – If the organism cannot be detected or identifiers map to multiple organisms.

Examples

>>> detect_organism(["ENSG00000000003", "ENSG00000000005"])
'Homo sapiens'