Skip to content
Snippets Groups Projects
Commit 7cd0b6ab authored by Hervé  MENAGER's avatar Hervé MENAGER
Browse files

lowercase PDB code before to use ws request corresponding uniprot IDs

this is because EBI only accepts lowercase codes for PDB IDs


Former-commit-id: 6aeeaf6323d627ff1e1728eefbddfafbdc86deb2
parent 79bc8235
No related branches found
No related tags found
No related merge requests found
......@@ -80,6 +80,6 @@ def get_pfam_info(pfam_acc):
'description': description}
def get_pdb_uniprot_mapping(pdb_id):
resp = requests.get('https://www.ebi.ac.uk/pdbe/api/mappings/uniprot/{}'.format(pdb_id))
resp = requests.get('https://www.ebi.ac.uk/pdbe/api/mappings/uniprot/{}'.format(pdb_id.lower()))
uniprot_ids = list(resp.json()[pdb_id]['UniProt'].keys())
return uniprot_ids
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment