Spaces:
Sleeping
Sleeping
Commit
·
13cf7a1
1
Parent(s):
146b805
Update code/alphafold_featureVector.py
Browse files
code/alphafold_featureVector.py
CHANGED
|
@@ -553,13 +553,11 @@ def alphafold(input_set, mode, impute):
|
|
| 553 |
except:
|
| 554 |
ValueError
|
| 555 |
pdbSequence = 'nan'
|
| 556 |
-
st.write('SENTIMENTAL')
|
| 557 |
if pdbSequence != 'nan': # The number in models we need might not be present for that protein. Preventng error.
|
| 558 |
pdbSequence = pdb_info.loc[(pdb_info.uniprotID == uniprotID) & (pdb_info.model_num == mod)].sequence.item()
|
| 559 |
alignment_list = do_alignment(uniprot_matched.at[i, 'datapoint'], uniprot_matched.at[i, 'uniprotSequence'],
|
| 560 |
pdbSequence, Path(path_to_output_files / 'alignment_files'))
|
| 561 |
-
|
| 562 |
-
st.write(alignment_list)
|
| 563 |
pdb_alignStatus = mutation_position_on_pdb(alignment_list, uniprot_matched.at[i, 'pos'])[0]
|
| 564 |
st.write('alignment_list---')
|
| 565 |
info_per_model[mod]['pdb_alignStatus'] = pdb_alignStatus
|
|
@@ -604,15 +602,14 @@ def alphafold(input_set, mode, impute):
|
|
| 604 |
pdbSequence = convert_non_standard_amino_acids(pdbSequence)
|
| 605 |
st.write(pdbSequence)
|
| 606 |
|
| 607 |
-
st.write('Hello I am in 3Dalignment')
|
| 608 |
-
st.write('file', file_format)
|
| 609 |
-
|
| 610 |
|
| 611 |
atomSequence = ''
|
| 612 |
coords = []
|
| 613 |
resnums_for_sasa = []
|
| 614 |
st.write('Hello I am in 3Dalignment GZIP')
|
| 615 |
with gzip.open(pdb_path, mode='rb') as f:
|
|
|
|
| 616 |
for line in f:
|
| 617 |
line = line.decode()
|
| 618 |
if line[0:4].strip() == 'ATOM' and line[13:15].strip() == 'CA':
|
|
|
|
| 553 |
except:
|
| 554 |
ValueError
|
| 555 |
pdbSequence = 'nan'
|
|
|
|
| 556 |
if pdbSequence != 'nan': # The number in models we need might not be present for that protein. Preventng error.
|
| 557 |
pdbSequence = pdb_info.loc[(pdb_info.uniprotID == uniprotID) & (pdb_info.model_num == mod)].sequence.item()
|
| 558 |
alignment_list = do_alignment(uniprot_matched.at[i, 'datapoint'], uniprot_matched.at[i, 'uniprotSequence'],
|
| 559 |
pdbSequence, Path(path_to_output_files / 'alignment_files'))
|
| 560 |
+
|
|
|
|
| 561 |
pdb_alignStatus = mutation_position_on_pdb(alignment_list, uniprot_matched.at[i, 'pos'])[0]
|
| 562 |
st.write('alignment_list---')
|
| 563 |
info_per_model[mod]['pdb_alignStatus'] = pdb_alignStatus
|
|
|
|
| 602 |
pdbSequence = convert_non_standard_amino_acids(pdbSequence)
|
| 603 |
st.write(pdbSequence)
|
| 604 |
|
| 605 |
+
st.write('Hello I am in 3Dalignment')
|
|
|
|
|
|
|
| 606 |
|
| 607 |
atomSequence = ''
|
| 608 |
coords = []
|
| 609 |
resnums_for_sasa = []
|
| 610 |
st.write('Hello I am in 3Dalignment GZIP')
|
| 611 |
with gzip.open(pdb_path, mode='rb') as f:
|
| 612 |
+
|
| 613 |
for line in f:
|
| 614 |
line = line.decode()
|
| 615 |
if line[0:4].strip() == 'ATOM' and line[13:15].strip() == 'CA':
|