freqsap.uniprot
Module for interacting with the UniProt API.
Classes
Interface to the UniProt protein database API. |
Module Contents
- class freqsap.uniprot.UniProt(timeout: int = 3)[source]
Bases:
freqsap.interfaces.ProteinVariantAPIInterface to the UniProt protein database API.
Provides methods to query protein information and variations from UniProt.
- get(accession: freqsap.accession.Accession) freqsap.protein.Protein[source]
Retrieve protein and its variations from UniProt.
- parse(feature: dict) freqsap.variation.Variation | None[source]
Parse a feature dictionary to extract variation information.
- request(url: str) requests.Response[source]
Make an HTTP GET request to UniProt.
- Parameters:
url (str) – The URL to request.
- Returns:
The HTTP response.
- Return type:
requests.Response