Spaces:
Sleeping
Sleeping
Commit
·
7220481
1
Parent(s):
e74ec9b
Update code/alphafold_featureVector.py
Browse files
code/alphafold_featureVector.py
CHANGED
|
@@ -83,10 +83,7 @@ def alphafold(input_set, mode, impute):
|
|
| 83 |
#out_path = path_to_output_files / 'log.txt'
|
| 84 |
#sys.stdout = open(out_path, 'w')
|
| 85 |
alphafold_path = hf_hub_download(repo_id="HuBioDataLab/AlphafoldStructures",repo_type = 'dataset', filename="AF-A0A075B7D0-F1-model_v4.pdb.gz")
|
| 86 |
-
|
| 87 |
-
st.write(alphafold_path)
|
| 88 |
-
print('Creating directories...')
|
| 89 |
-
st.write(data)
|
| 90 |
#file_base = str(Path(alphafold_path / '*'))
|
| 91 |
#file_str = glob.glob(file_base)[0].split('-')[-1].split('.')[0]
|
| 92 |
#file_str =
|
|
@@ -340,8 +337,10 @@ def alphafold(input_set, mode, impute):
|
|
| 340 |
KeyError
|
| 341 |
info_per_model[mod][annot] = annotation_pos_on_pdb_
|
| 342 |
|
| 343 |
-
pdb_path = Path(f'{alphafold_path}/AF-{uniprotID}-F{mod}-{file_str}.pdb.gz')
|
|
|
|
| 344 |
|
|
|
|
| 345 |
if get_alignments_3D(uniprotID, mod, pdb_path, pdbSequence, 'nan', 'nan', 'nan', mode, Path(path_to_output_files / '3D_alignment'),
|
| 346 |
'gzip') != None:
|
| 347 |
alignments, coords, resnums_for_sasa = get_alignments_3D(uniprotID, mod, pdb_path, pdbSequence, 'nan',
|
|
|
|
| 83 |
#out_path = path_to_output_files / 'log.txt'
|
| 84 |
#sys.stdout = open(out_path, 'w')
|
| 85 |
alphafold_path = hf_hub_download(repo_id="HuBioDataLab/AlphafoldStructures",repo_type = 'dataset', filename="AF-A0A075B7D0-F1-model_v4.pdb.gz")
|
| 86 |
+
|
|
|
|
|
|
|
|
|
|
| 87 |
#file_base = str(Path(alphafold_path / '*'))
|
| 88 |
#file_str = glob.glob(file_base)[0].split('-')[-1].split('.')[0]
|
| 89 |
#file_str =
|
|
|
|
| 337 |
KeyError
|
| 338 |
info_per_model[mod][annot] = annotation_pos_on_pdb_
|
| 339 |
|
| 340 |
+
#pdb_path = Path(f'{alphafold_path}/AF-{uniprotID}-F{mod}-{file_str}.pdb.gz')
|
| 341 |
+
pdb_path= hf_hub_download(repo_id="HuBioDataLab/AlphafoldStructures",repo_type = 'dataset', filename=f"AF-{uniprotID}-F{mod}-model_v4.pdb.gz")
|
| 342 |
|
| 343 |
+
st.write(pdb_path)
|
| 344 |
if get_alignments_3D(uniprotID, mod, pdb_path, pdbSequence, 'nan', 'nan', 'nan', mode, Path(path_to_output_files / '3D_alignment'),
|
| 345 |
'gzip') != None:
|
| 346 |
alignments, coords, resnums_for_sasa = get_alignments_3D(uniprotID, mod, pdb_path, pdbSequence, 'nan',
|