taxonomy
search_taxon(term, field=None, limit=100)
async
Search for taxon information in UniProt.
Uses https://www.uniprot.org/taxonomy?query=*.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
term
|
str
|
Search term for the taxon. |
required |
field
|
SearchField | None
|
Field to search in. If None, searches in all fields. If "tax_id" then searches by taxon ID. If "parent" then given a parent taxon ID returns all its children. For example, if the parent taxon ID is 9606 (Human), it will return Neanderthal and Denisovan. |
None
|
limit
|
int
|
Maximum number of results to return. |
100
|
Returns:
Type | Description |
---|---|
list[Taxon]
|
List of Taxon objects matching the search term. |
Raises:
Type | Description |
---|---|
ValueError
|
If the search field is invalid. |