Spaces:
Sleeping
Sleeping
Commit
·
34afe07
1
Parent(s):
6c5efb0
Update code/alphafold_featureVector.py
Browse files
code/alphafold_featureVector.py
CHANGED
|
@@ -468,9 +468,7 @@ def alphafold(input_set, mode, impute):
|
|
| 468 |
## With new updates, can be updated separately.
|
| 469 |
|
| 470 |
pdb_info = pd.read_csv(alphafold_summary, sep='\t')
|
| 471 |
-
|
| 472 |
-
#alphafold_path = snapshot_download(repo_id="HuBioDataLab/AlphafoldStructures",repo_type = 'dataset')
|
| 473 |
-
#st.write(alphafold_path)
|
| 474 |
|
| 475 |
## Keeping how many models each AlphaFold structure has.
|
| 476 |
#model_count = modelCount(alphafold_path)
|
|
@@ -625,9 +623,12 @@ def alphafold(input_set, mode, impute):
|
|
| 625 |
KeyError
|
| 626 |
info_per_model[mod][annot] = annotation_pos_on_pdb_
|
| 627 |
|
| 628 |
-
|
| 629 |
-
|
| 630 |
-
|
|
|
|
|
|
|
|
|
|
| 631 |
|
| 632 |
#with gzip.open(pdb_path, mode="rt") as f:
|
| 633 |
# file_content = f.read()
|
|
|
|
| 468 |
## With new updates, can be updated separately.
|
| 469 |
|
| 470 |
pdb_info = pd.read_csv(alphafold_summary, sep='\t')
|
| 471 |
+
|
|
|
|
|
|
|
| 472 |
|
| 473 |
## Keeping how many models each AlphaFold structure has.
|
| 474 |
#model_count = modelCount(alphafold_path)
|
|
|
|
| 623 |
KeyError
|
| 624 |
info_per_model[mod][annot] = annotation_pos_on_pdb_
|
| 625 |
|
| 626 |
+
try:
|
| 627 |
+
pdb_path = hf_hub_download(repo_id="HuBioDataLab/AlphafoldStructures", filename=f"AF-{uniprotID}-F{mod}-model_v4.pdb.gz",repo_type = 'dataset')
|
| 628 |
+
except FileNotFoundError:
|
| 629 |
+
pdb_path = hf_hub_download(repo_id="HuBioDataLab/AlphafoldStructures3", filename=f"AF-{uniprotID}-F{mod}-model_v4.pdb.gz",repo_type = 'dataset')
|
| 630 |
+
except FileNotFoundError:
|
| 631 |
+
pdb_path = hf_hub_download(repo_id="HuBioDataLab/AlphafoldStructures3", filename=f"AF-{uniprotID}-F{mod}-model_v4.pdb.gz",repo_type = 'dataset')
|
| 632 |
|
| 633 |
#with gzip.open(pdb_path, mode="rt") as f:
|
| 634 |
# file_content = f.read()
|