search
#
- biotite.database.uniprot.search(query, number=500)[source]#
Get all UniProt IDs that meet the given query requirements, via the UniProt search service.
This function requires an internet connection.
- Parameters:
- queryQuery
The search query.
- numberint
The maximum number of IDs that are obtained. (Default: 500)
- Returns:
- idslist of str
A list of strings containing all UniProt IDs that meet the query requirements.
Notes
A list of available search fields with description can be found here.
Examples
>>> query = SimpleQuery("accession", "P12345") & SimpleQuery("reviewed", "true") >>> ids = search(query) >>> print(sorted(ids)) ['P12345']
Gallery#
Phylogenetic tree of a protein family
Phylogenetic tree of a protein family