Spaces:
Running
Running
Commit
·
a1e3c42
1
Parent(s):
826c5fd
Update code/alphafold_featureVector.py
Browse files
code/alphafold_featureVector.py
CHANGED
@@ -32,17 +32,13 @@ def getModelInfo(uniprotID, varPos, wt, models_we_need, path_to_output_files ):
|
|
32 |
st.write(uniprotID)
|
33 |
|
34 |
for mod in models_we_need:
|
35 |
-
st.write(f"AF-{uniprotID}-F{mod}-model_v4.pdb.gz")
|
36 |
try:
|
37 |
pdb_path = hf_hub_download(repo_id="HuBioDataLab/AlphafoldStructures", filename=f"AF-{uniprotID}-F{mod}-model_v4.pdb.gz",repo_type = 'dataset')
|
38 |
except u.EntryNotFoundError:
|
39 |
try:
|
40 |
pdb_path = hf_hub_download(repo_id="HuBioDataLab/AlphafoldStructures2", filename=f"AF-{uniprotID}-F{mod}-model_v4.pdb.gz",repo_type = 'dataset')
|
41 |
except u.EntryNotFoundError:
|
42 |
-
|
43 |
-
pdb_path = hf_hub_download(repo_id="HuBioDataLab/AlphafoldStructures3", filename=f"AF-{uniprotID}-F{mod}-model_v4.pdb.gz",repo_type = 'dataset')
|
44 |
-
except u.EntryNotFoundError:
|
45 |
-
st.write('Requested file not found.')
|
46 |
|
47 |
|
48 |
sasa_val = freesasa(pdb_path, path_to_output_files, uniprotID, mod, varPos, wt)
|
|
|
32 |
st.write(uniprotID)
|
33 |
|
34 |
for mod in models_we_need:
|
|
|
35 |
try:
|
36 |
pdb_path = hf_hub_download(repo_id="HuBioDataLab/AlphafoldStructures", filename=f"AF-{uniprotID}-F{mod}-model_v4.pdb.gz",repo_type = 'dataset')
|
37 |
except u.EntryNotFoundError:
|
38 |
try:
|
39 |
pdb_path = hf_hub_download(repo_id="HuBioDataLab/AlphafoldStructures2", filename=f"AF-{uniprotID}-F{mod}-model_v4.pdb.gz",repo_type = 'dataset')
|
40 |
except u.EntryNotFoundError:
|
41 |
+
pdb_path = hf_hub_download(repo_id="HuBioDataLab/AlphafoldStructures3", filename=f"AF-{uniprotID}-F{mod}-model_v4.pdb.gz",repo_type = 'dataset')
|
|
|
|
|
|
|
42 |
|
43 |
|
44 |
sasa_val = freesasa(pdb_path, path_to_output_files, uniprotID, mod, varPos, wt)
|