rotifer.db.uniprot.webapi.idmapping.decode_results#
- rotifer.db.uniprot.webapi.idmapping.decode_results(response, file_format, compressed)[source]#
Decode a results response body according to its file format.
- Parameters:
- responserequests.Response
Response carrying the results.
- file_formatstr
One of
json,tsv,xlsxorxml.- compressedbool
Whether the response body is gzip-compressed.
- Returns:
- object
A dict for
json, a list of lines fortsv, a single-element list of bytes forxlsx, a single-element list of str forxml, or the raw response text otherwise.