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

Update code/alphafold_featureVector.py

Browse files
Files changed (1) hide show
  1. code/alphafold_featureVector.py +5 -3
code/alphafold_featureVector.py CHANGED
@@ -36,13 +36,15 @@ def getModelInfo(uniprotID, varPos, wt, models_we_need, path_to_output_files ):
36
  try:
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
-
40
  except u.EntryNotFoundError:
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
  st.write('take3')
45
- pdb_path = hf_hub_download(repo_id="HuBioDataLab/AlphafoldStructures3", filename=f"AF-{uniprotID}-F{mod}-model_v4.pdb.gz",repo_type = 'dataset')
 
 
 
46
 
47
  sasa_val = freesasa(pdb_path, path_to_output_files, uniprotID, mod, varPos, wt)
48
  newCol = {}
 
36
  try:
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)
50
  newCol = {}