Spaces:
Running
Running
Commit
·
3b85384
1
Parent(s):
71144f6
Update code/alphafold_featureVector.py
Browse files
code/alphafold_featureVector.py
CHANGED
@@ -367,10 +367,14 @@ def alphafold(input_set, mode, impute):
|
|
367 |
KeyError
|
368 |
info_per_model[mod][annot] = annotation_pos_on_pdb_
|
369 |
#pdb_path = Path(f'{alphafold_path}/AF-{uniprotID}-F{mod}-{file_str}.pdb.gz')
|
370 |
-
|
371 |
st.write(f"AF-{uniprotID}-F{mod}-model_v4.pdb.gz")
|
372 |
-
pdb_path= hf_hub_download(repo_id="HuBioDataLab/AlphafoldStructures",
|
373 |
-
|
|
|
|
|
|
|
|
|
374 |
st.write(pdb_path)
|
375 |
if get_alignments_3D(uniprotID, mod, pdb_path, pdbSequence, 'nan', 'nan', 'nan', mode, Path(path_to_output_files / '3D_alignment'),
|
376 |
'gzip') != None:
|
|
|
367 |
KeyError
|
368 |
info_per_model[mod][annot] = annotation_pos_on_pdb_
|
369 |
#pdb_path = Path(f'{alphafold_path}/AF-{uniprotID}-F{mod}-{file_str}.pdb.gz')
|
370 |
+
st.write('HERE1')
|
371 |
st.write(f"AF-{uniprotID}-F{mod}-model_v4.pdb.gz")
|
372 |
+
pdb_path= hf_hub_download(repo_id="HuBioDataLab/AlphafoldStructures", filename=f"AF-{name}-F{mod}-model_v4.pdb.gz",repo_type = 'dataset')
|
373 |
+
with gzip.open(pdb_path, mode="rt") as f:
|
374 |
+
file_content = f.read()
|
375 |
+
st.write(file_content)
|
376 |
+
|
377 |
+
st.write('HERE2')
|
378 |
st.write(pdb_path)
|
379 |
if get_alignments_3D(uniprotID, mod, pdb_path, pdbSequence, 'nan', 'nan', 'nan', mode, Path(path_to_output_files / '3D_alignment'),
|
380 |
'gzip') != None:
|