Spaces:
Sleeping
Sleeping
Commit
·
877fc42
1
Parent(s):
abc0f78
Update code/alphafold_featureVector.py
Browse files
code/alphafold_featureVector.py
CHANGED
|
@@ -247,16 +247,12 @@ def alphafold(input_set, mode, impute):
|
|
| 247 |
'Q8WZ42': 332}
|
| 248 |
for k, v in model_count.items():
|
| 249 |
model_count[k] = int(v / 2) # two types of files for each file.
|
| 250 |
-
st.write(model_count)
|
| 251 |
uniprot_matched = uniprot_matched.astype(str)
|
| 252 |
uniprot_matched.domStart = uniprot_matched.domStart.astype(float)
|
| 253 |
uniprot_matched.domEnd = uniprot_matched.domEnd.astype(float)
|
| 254 |
uniprot_matched.domStart = uniprot_matched.domStart.astype(int)
|
| 255 |
uniprot_matched.domEnd = uniprot_matched.domEnd.astype(int)
|
| 256 |
|
| 257 |
-
st.write('uniprot_matched')
|
| 258 |
-
st.write(uniprot_matched)
|
| 259 |
-
|
| 260 |
## Main part to add annotation information, align sequences, finding distances
|
| 261 |
|
| 262 |
for i in uniprot_matched.index:
|
|
@@ -370,10 +366,10 @@ def alphafold(input_set, mode, impute):
|
|
| 370 |
except:
|
| 371 |
KeyError
|
| 372 |
info_per_model[mod][annot] = annotation_pos_on_pdb_
|
| 373 |
-
|
| 374 |
#pdb_path = Path(f'{alphafold_path}/AF-{uniprotID}-F{mod}-{file_str}.pdb.gz')
|
| 375 |
pdb_path= hf_hub_download(repo_id="HuBioDataLab/AlphafoldStructures",repo_type = 'dataset', filename=f"AF-{uniprotID}-F{mod}-model_v4.pdb.gz")
|
| 376 |
-
|
| 377 |
st.write(pdb_path)
|
| 378 |
if get_alignments_3D(uniprotID, mod, pdb_path, pdbSequence, 'nan', 'nan', 'nan', mode, Path(path_to_output_files / '3D_alignment'),
|
| 379 |
'gzip') != None:
|
|
|
|
| 247 |
'Q8WZ42': 332}
|
| 248 |
for k, v in model_count.items():
|
| 249 |
model_count[k] = int(v / 2) # two types of files for each file.
|
|
|
|
| 250 |
uniprot_matched = uniprot_matched.astype(str)
|
| 251 |
uniprot_matched.domStart = uniprot_matched.domStart.astype(float)
|
| 252 |
uniprot_matched.domEnd = uniprot_matched.domEnd.astype(float)
|
| 253 |
uniprot_matched.domStart = uniprot_matched.domStart.astype(int)
|
| 254 |
uniprot_matched.domEnd = uniprot_matched.domEnd.astype(int)
|
| 255 |
|
|
|
|
|
|
|
|
|
|
| 256 |
## Main part to add annotation information, align sequences, finding distances
|
| 257 |
|
| 258 |
for i in uniprot_matched.index:
|
|
|
|
| 366 |
except:
|
| 367 |
KeyError
|
| 368 |
info_per_model[mod][annot] = annotation_pos_on_pdb_
|
| 369 |
+
print('HERE1')
|
| 370 |
#pdb_path = Path(f'{alphafold_path}/AF-{uniprotID}-F{mod}-{file_str}.pdb.gz')
|
| 371 |
pdb_path= hf_hub_download(repo_id="HuBioDataLab/AlphafoldStructures",repo_type = 'dataset', filename=f"AF-{uniprotID}-F{mod}-model_v4.pdb.gz")
|
| 372 |
+
print('HERE2')
|
| 373 |
st.write(pdb_path)
|
| 374 |
if get_alignments_3D(uniprotID, mod, pdb_path, pdbSequence, 'nan', 'nan', 'nan', mode, Path(path_to_output_files / '3D_alignment'),
|
| 375 |
'gzip') != None:
|