Spaces:
Sleeping
Sleeping
Commit
·
bc51ec4
1
Parent(s):
2f5f179
Update code/pdb_featureVector.py
Browse files
code/pdb_featureVector.py
CHANGED
|
@@ -163,7 +163,7 @@ def pdb(input_set, mode, impute):
|
|
| 163 |
data.at[i, 'wt_sequence_match'] = 'i'
|
| 164 |
data.at[i, 'whichIsoform'] = whichIsoform
|
| 165 |
break
|
| 166 |
-
st.write('
|
| 167 |
st.write(data)
|
| 168 |
data.wt_sequence_match = data.wt_sequence_match.astype('str')
|
| 169 |
data.replace({'': 'nan'}, inplace=True)
|
|
@@ -441,7 +441,11 @@ def pdb(input_set, mode, impute):
|
|
| 441 |
aligned_m = final_stage(dfM, annotation_list, Path(path_to_output_files / 'alignment_files'))
|
| 442 |
aligned_nm = final_stage(dfNM, annotation_list, Path(path_to_output_files / 'alignment_files'))
|
| 443 |
|
| 444 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 445 |
|
| 446 |
# When PDB sequence is nan, it is wrongly aligned to the UniProt sequence. Fix them.
|
| 447 |
for i in aligned_m.index:
|
|
@@ -483,6 +487,7 @@ def pdb(input_set, mode, impute):
|
|
| 483 |
yes_pdb_no_match = after_up_pdb_alignment[
|
| 484 |
(after_up_pdb_alignment.pdbID != 'nan') & (after_up_pdb_alignment.mutationPositionOnPDB == 'nan')]
|
| 485 |
no_pdb = no_pdb.copy()
|
|
|
|
| 486 |
st.write(pdb_aligned)
|
| 487 |
print('PDB matching is completed...\n')
|
| 488 |
print('SUMMARY')
|
|
@@ -1416,6 +1421,7 @@ def pdb(input_set, mode, impute):
|
|
| 1416 |
st.write(chain)
|
| 1417 |
st.write(uniprotID)
|
| 1418 |
st.write(pdbID)
|
|
|
|
| 1419 |
st.write('INputs')
|
| 1420 |
st.write(uniprotID, pdbSequence, source, chain, pdbID, mode )
|
| 1421 |
|
|
|
|
| 163 |
data.at[i, 'wt_sequence_match'] = 'i'
|
| 164 |
data.at[i, 'whichIsoform'] = whichIsoform
|
| 165 |
break
|
| 166 |
+
st.write('MATCHING UNIPTOR')
|
| 167 |
st.write(data)
|
| 168 |
data.wt_sequence_match = data.wt_sequence_match.astype('str')
|
| 169 |
data.replace({'': 'nan'}, inplace=True)
|
|
|
|
| 441 |
aligned_m = final_stage(dfM, annotation_list, Path(path_to_output_files / 'alignment_files'))
|
| 442 |
aligned_nm = final_stage(dfNM, annotation_list, Path(path_to_output_files / 'alignment_files'))
|
| 443 |
|
| 444 |
+
st.write('aligned_m')
|
| 445 |
+
st.write(aligned_m)
|
| 446 |
+
st.write('aligned_nm')
|
| 447 |
+
st.write(aligned_nm)
|
| 448 |
+
|
| 449 |
|
| 450 |
# When PDB sequence is nan, it is wrongly aligned to the UniProt sequence. Fix them.
|
| 451 |
for i in aligned_m.index:
|
|
|
|
| 487 |
yes_pdb_no_match = after_up_pdb_alignment[
|
| 488 |
(after_up_pdb_alignment.pdbID != 'nan') & (after_up_pdb_alignment.mutationPositionOnPDB == 'nan')]
|
| 489 |
no_pdb = no_pdb.copy()
|
| 490 |
+
st.write('-----PDB ALIGNED-----')
|
| 491 |
st.write(pdb_aligned)
|
| 492 |
print('PDB matching is completed...\n')
|
| 493 |
print('SUMMARY')
|
|
|
|
| 1421 |
st.write(chain)
|
| 1422 |
st.write(uniprotID)
|
| 1423 |
st.write(pdbID)
|
| 1424 |
+
st.write(uniprotID)
|
| 1425 |
st.write('INputs')
|
| 1426 |
st.write(uniprotID, pdbSequence, source, chain, pdbID, mode )
|
| 1427 |
|