fatmacankara commited on
Commit
63af66a
1 Parent(s): c5c7938

Update code/add_structure.py

Browse files
Files changed (1) hide show
  1. code/add_structure.py +0 -19
code/add_structure.py CHANGED
@@ -359,22 +359,3 @@ def selectMaxAnnot(data):
359
  data['annotTotal'] = np.NaN
360
 
361
  return data
362
-
363
-
364
-
365
-
366
- '''
367
- def get_pdb_ids(protein_id):
368
- try:
369
- request = IdMappingClient.submit(
370
- source="UniProtKB_AC-ID", dest="PDB", ids={protein_id})
371
- pdb_list = list(request.each_result())
372
- return [i['to'] for i in pdb_list]
373
- except requests.exceptions.HTTPError:
374
- return []
375
- except unipressed.id_mapping.core.IdMappingError:
376
- print('IdMappingError caused by UniProt API service, please try later.')
377
- return []
378
- except KeyError:
379
- return []
380
- '''
 
359
  data['annotTotal'] = np.NaN
360
 
361
  return data