Spaces:
Sleeping
Sleeping
Commit
·
7745082
1
Parent(s):
02b64ad
Update code/alphafold_featureVector.py
Browse files
code/alphafold_featureVector.py
CHANGED
|
@@ -373,10 +373,9 @@ def alphafold(input_set, mode, impute):
|
|
| 373 |
st.write('PATH')
|
| 374 |
st.write(pdb_path)
|
| 375 |
st.write('HER')
|
| 376 |
-
with gzip.open(pdb_path, mode="rt") as f:
|
| 377 |
-
|
| 378 |
-
|
| 379 |
-
break
|
| 380 |
st.write('REH')
|
| 381 |
st.write('-----')
|
| 382 |
st.write('')
|
|
@@ -385,10 +384,9 @@ def alphafold(input_set, mode, impute):
|
|
| 385 |
st.write('HERE1')
|
| 386 |
st.write('uniprot', uniprotID)
|
| 387 |
pdb_path = hf_hub_download(repo_id="HuBioDataLab/AlphafoldStructures", filename=f"AF-{name}-F{mod}-model_v4.pdb.gz",repo_type = 'dataset')
|
| 388 |
-
|
| 389 |
-
|
| 390 |
-
|
| 391 |
-
break
|
| 392 |
|
| 393 |
st.write('HERE2')
|
| 394 |
st.write('uniprotID',uniprotID)
|
|
@@ -401,6 +399,8 @@ def alphafold(input_set, mode, impute):
|
|
| 401 |
|
| 402 |
st.write(get_alignments_3D(uniprotID, mod, pdb_path, pdbSequence, 'nan', 'nan', 'nan', mode, Path(path_to_output_files / '3D_alignment'),
|
| 403 |
'gzip'))
|
|
|
|
|
|
|
| 404 |
if get_alignments_3D(uniprotID, mod, pdb_path, pdbSequence, 'nan', 'nan', 'nan', mode, Path(path_to_output_files / '3D_alignment'),
|
| 405 |
'gzip') != None:
|
| 406 |
alignments, coords, resnums_for_sasa = get_alignments_3D(uniprotID, mod, pdb_path, pdbSequence, 'nan',
|
|
|
|
| 373 |
st.write('PATH')
|
| 374 |
st.write(pdb_path)
|
| 375 |
st.write('HER')
|
| 376 |
+
#with gzip.open(pdb_path, mode="rt") as f:
|
| 377 |
+
# file_content = f.read()
|
| 378 |
+
# st.write(file_content)
|
|
|
|
| 379 |
st.write('REH')
|
| 380 |
st.write('-----')
|
| 381 |
st.write('')
|
|
|
|
| 384 |
st.write('HERE1')
|
| 385 |
st.write('uniprot', uniprotID)
|
| 386 |
pdb_path = hf_hub_download(repo_id="HuBioDataLab/AlphafoldStructures", filename=f"AF-{name}-F{mod}-model_v4.pdb.gz",repo_type = 'dataset')
|
| 387 |
+
# with gzip.open(pdb_path, mode="rt") as f:
|
| 388 |
+
# file_content = f.read()
|
| 389 |
+
# st.write(file_content)
|
|
|
|
| 390 |
|
| 391 |
st.write('HERE2')
|
| 392 |
st.write('uniprotID',uniprotID)
|
|
|
|
| 399 |
|
| 400 |
st.write(get_alignments_3D(uniprotID, mod, pdb_path, pdbSequence, 'nan', 'nan', 'nan', mode, Path(path_to_output_files / '3D_alignment'),
|
| 401 |
'gzip'))
|
| 402 |
+
get_alignments_3D(uniprotID, mod, pdb_path, pdbSequence, 'nan', 'nan', 'nan', mode, Path(path_to_output_files / '3D_alignment'),
|
| 403 |
+
'gzip')
|
| 404 |
if get_alignments_3D(uniprotID, mod, pdb_path, pdbSequence, 'nan', 'nan', 'nan', mode, Path(path_to_output_files / '3D_alignment'),
|
| 405 |
'gzip') != None:
|
| 406 |
alignments, coords, resnums_for_sasa = get_alignments_3D(uniprotID, mod, pdb_path, pdbSequence, 'nan',
|