Spaces:
Running
Running
Commit
·
9280c78
1
Parent(s):
e507403
Update code/add_alignment.py
Browse files- code/add_alignment.py +12 -12
code/add_alignment.py
CHANGED
@@ -7,24 +7,24 @@ from Bio.pairwise2 import format_alignment
|
|
7 |
|
8 |
|
9 |
def do_alignment(identifier, uniprotSequence, pdbSequence, alignment_path):
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
#if len(pdbSequence) >= 1:
|
15 |
#f = open(Path(alignment_path / f'{identifier}_alignment.txt'),"w")
|
16 |
aligner.mode = 'local'
|
17 |
-
|
18 |
aligner.substitution_matrix = substitution_matrices.load("BLOSUM62")
|
19 |
-
|
20 |
aligner.open_gap_score = -11
|
21 |
-
|
22 |
aligner.extend_gap_score = -1
|
23 |
-
|
24 |
-
|
25 |
-
alignments = aligner.align(uniprotSequence, pdbSequence)
|
26 |
-
|
27 |
-
|
28 |
"""
|
29 |
alignments = (list(alignments))
|
30 |
alignment_list = []
|
|
|
7 |
|
8 |
|
9 |
def do_alignment(identifier, uniprotSequence, pdbSequence, alignment_path):
|
10 |
+
st.write(f'Aligning Datapoint: {identifier}')
|
11 |
+
st.write(pdbSequence)
|
12 |
+
st.write('uniprot Seq')
|
13 |
+
st.write(uniprotSequence)
|
14 |
#if len(pdbSequence) >= 1:
|
15 |
#f = open(Path(alignment_path / f'{identifier}_alignment.txt'),"w")
|
16 |
aligner.mode = 'local'
|
17 |
+
st.write('1')
|
18 |
aligner.substitution_matrix = substitution_matrices.load("BLOSUM62")
|
19 |
+
st.write('2')
|
20 |
aligner.open_gap_score = -11
|
21 |
+
st.write('3')
|
22 |
aligner.extend_gap_score = -1
|
23 |
+
st.write('4')
|
24 |
+
st.write(aligner.align(uniprotSequence, pdbSequence)[0])
|
25 |
+
alignments = aligner.align(uniprotSequence, pdbSequence)[0]
|
26 |
+
st.write('Alignments')
|
27 |
+
st.write(alignments)
|
28 |
"""
|
29 |
alignments = (list(alignments))
|
30 |
alignment_list = []
|