rotifer.db.uniprot.webapi.idmapping#
Map database identifiers using UniProt’s ID mapping REST service.
The lower-level functions in this module (submit_id_mapping
through get_id_mapping_results_stream) are adapted from the
client script UniProt publishes alongside its ID mapping REST API
documentation and implement the submit/poll/fetch job workflow used
by that service. genbank_to_uniprot(), AF_link() and
af_to_seq() are rotifer-specific wrappers built on top of them
to cross-reference GenBank/RefSeq proteins with AlphaFold and PDB
structures through UniProt.
Note#
This module makes live network requests; none of its examples are executed as doctests.
Functions
|
Build AlphaFold and PDB download URLs for a list of protein accessions. |
|
Attach AlphaFold structures to a rotifer sequence object. |
|
Block until a submitted ID mapping job finishes. |
|
Raise for HTTP errors, printing the JSON error body first. |
|
Append one results page to the accumulated results. |
|
Decode a results response body according to its file format. |
|
Map protein accessions to UniProt entries and their PDB/AlphaFold cross-references. |
|
Iterate over the remaining pages of a paginated results response. |
|
Parse TSV-formatted ID mapping results into a dataframe. |
|
Fetch the results URL of a finished ID mapping job. |
Fetch all pages of a finished ID mapping job through the search endpoint. |
|
Fetch a finished ID mapping job through the streaming endpoint. |
|
|
Extract the URL of the next results page from a Link header. |
|
Extract the XML namespace URI from an element's tag. |
|
Merge the |
|
Print a one-line progress message for a fetched results page. |
|
Submit an identifier mapping job to UniProt. |
Classes
|
Translate identifiers through UniProt's entry cross-references. |