rotifer.db.uniprot.webapi#
Query UniProt’s REST web services.
rotifer.db.uniprot.webapi.idmapping implements the identifier
mapping workflow: submit a batch of accessions, poll until the job
finishes and download the results.
Cursors#
SequenceCursorEntries with their annotation, as
Bio.SeqRecordobjects.FastaCursorThe same entries as plain sequences.
SearchCursorAny resource, as a dataframe, by identifier or by query.
ProteomeCursorProteome descriptions.
TaxonomyCursorTaxonomy records.
MappingCursorIdentifier translation, in either direction, read off the cross-references an entry carries.
Extra API parameters#
UniProt’s API accepts many options these classes know nothing about. Any keyword a cursor does not recognise is passed straight through as a query parameter, so they all remain available:
>>> fc = webapi.FastaCursor(includeIsoform=True)
>>> sc = webapi.SearchCursor(database='uniprotkb',
... fields='accession,id,length')
See Also#
rotifer.db.uniprot : delegators combining this backend with the others rotifer.db.ncbi : the equivalent cursors for NCBI