fatmacankara commited on
Commit
9958991
·
1 Parent(s): 23e2dae

Update code/alphafold_featureVector.py

Browse files
Files changed (1) hide show
  1. code/alphafold_featureVector.py +9 -7
code/alphafold_featureVector.py CHANGED
@@ -37,13 +37,15 @@ def getModelInfo(uniprotID, varPos, wt, models_we_need, path_to_output_files ):
37
  st.write('take1')
38
  pdb_path = hf_hub_download(repo_id="HuBioDataLab/AlphafoldStructures", filename=f"AF-{uniprotID}-F{mod}-model_v4.pdb.gz",repo_type = 'dataset')
39
  except u.EntryNotFoundError:
40
- st.write('take2')
41
- pdb_path = hf_hub_download(repo_id="HuBioDataLab/AlphafoldStructures3", filename=f"AF-{uniprotID}-F{mod}-model_v4.pdb.gz",repo_type = 'dataset')
42
- except u.EntryNotFoundError:
43
- st.write('take3')
44
- pdb_path = hf_hub_download(repo_id="HuBioDataLab/AlphafoldStructures2", filename=f"AF-{uniprotID}-F{mod}-model_v4.pdb.gz",repo_type = 'dataset')
45
- except u.EntryNotFoundError:
46
- st.write('Requested file not found.')
 
 
47
 
48
 
49
  sasa_val = freesasa(pdb_path, path_to_output_files, uniprotID, mod, varPos, wt)
 
37
  st.write('take1')
38
  pdb_path = hf_hub_download(repo_id="HuBioDataLab/AlphafoldStructures", filename=f"AF-{uniprotID}-F{mod}-model_v4.pdb.gz",repo_type = 'dataset')
39
  except u.EntryNotFoundError:
40
+ try:
41
+ st.write('take2')
42
+ pdb_path = hf_hub_download(repo_id="HuBioDataLab/AlphafoldStructures2", filename=f"AF-{uniprotID}-F{mod}-model_v4.pdb.gz",repo_type = 'dataset')
43
+ except u.EntryNotFoundError:
44
+ try:
45
+ st.write('take3')
46
+ pdb_path = hf_hub_download(repo_id="HuBioDataLab/AlphafoldStructures3", filename=f"AF-{uniprotID}-F{mod}-model_v4.pdb.gz",repo_type = 'dataset')
47
+ except u.EntryNotFoundError:
48
+ st.write('Requested file not found.')
49
 
50
 
51
  sasa_val = freesasa(pdb_path, path_to_output_files, uniprotID, mod, varPos, wt)