Closed johnnytam100 closed 1 year ago
@johnnytam100 unfortunately, there was a big change in uniprot API recently, which has been updated in bioservices. So you must use the new conventions. I also recommend to use the latest version (1.10.4 available on pypi https://pypi.org/project/bioservices/). Then, please check the new documentation on bioservices.readthedocs.io
The documentation may not be up-to-date everywhere though.
In your case the ACC+ID must be changed to UniProtKB_AC-ID and KEGG_ID to KEGG
You can see available mapping in the attribute:
u.valid_mapping
Where the keys contains the 'from' and the values are the 'to'.
I tried the following UniProt examples in Colab, and unfortunately they failed:
My bioservices version is
1.10.2
.May I know if we have a workaround?