Spaces:
Sleeping
Sleeping
Commit
·
07012ee
1
Parent(s):
2be62de
Update code/alphafold_featureVector.py
Browse files
code/alphafold_featureVector.py
CHANGED
|
@@ -623,31 +623,11 @@ def alphafold(input_set, mode, impute):
|
|
| 623 |
KeyError
|
| 624 |
info_per_model[mod][annot] = annotation_pos_on_pdb_
|
| 625 |
|
| 626 |
-
|
| 627 |
-
pdb_path = hf_hub_download(repo_id="HuBioDataLab/AlphafoldStructures", filename=f"AF-{uniprotID}-F{mod}-model_v4.pdb.gz",repo_type = 'dataset')
|
| 628 |
-
st.write('1')
|
| 629 |
-
except:
|
| 630 |
-
pdb_path = hf_hub_download(repo_id="HuBioDataLab/AlphafoldStructures2", filename=f"AF-{uniprotID}-F{mod}-model_v4.pdb.gz",repo_type = 'dataset')
|
| 631 |
-
st.write('2')
|
| 632 |
-
except:
|
| 633 |
-
pdb_path = hf_hub_download(repo_id="HuBioDataLab/AlphafoldStructures3", filename=f"AF-{uniprotID}-F{mod}-model_v4.pdb.gz",repo_type = 'dataset')
|
| 634 |
-
st.write('3')
|
| 635 |
-
|
| 636 |
-
#with gzip.open(pdb_path, mode="rt") as f:
|
| 637 |
-
# file_content = f.read()
|
| 638 |
-
# st.write(file_content)
|
| 639 |
-
|
| 640 |
-
|
| 641 |
-
|
| 642 |
-
#st.write(get_alignments_3D(uniprotID, mod, pdb_path, pdbSequence, 'nan', 'nan', 'nan', mode, Path(path_to_output_files / '3D_alignment'),
|
| 643 |
-
# 'gzip'))
|
| 644 |
-
|
| 645 |
-
|
| 646 |
-
|
| 647 |
|
| 648 |
|
| 649 |
pdbSequence = convert_non_standard_amino_acids(pdbSequence)
|
| 650 |
-
|
| 651 |
|
| 652 |
atomSequence = ''
|
| 653 |
coords = []
|
|
|
|
| 623 |
KeyError
|
| 624 |
info_per_model[mod][annot] = annotation_pos_on_pdb_
|
| 625 |
|
| 626 |
+
pdb_path = hf_hub_download(repo_id="HuBioDataLab/AlphafoldStructures", filename=f"AF-{uniprotID}-F{mod}-model_v4.pdb.gz",repo_type = 'dataset')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 627 |
|
| 628 |
|
| 629 |
pdbSequence = convert_non_standard_amino_acids(pdbSequence)
|
| 630 |
+
st.write('pdbSequence', pdbSequence)
|
| 631 |
|
| 632 |
atomSequence = ''
|
| 633 |
coords = []
|