Spaces:
Sleeping
Sleeping
fatmacankara
commited on
Commit
·
5bbb3a4
1
Parent(s):
e27a8d4
Update code/add_3Dalignment.py
Browse files- code/add_3Dalignment.py +7 -5
code/add_3Dalignment.py
CHANGED
@@ -207,18 +207,20 @@ def get_alignments_3D(identifier, model_num, pdb_path, pdbSequence, source, chai
|
|
207 |
coords.append([line[31:38].strip(), line[39:46].strip(), line[47:54].strip()])
|
208 |
resnums_for_sasa.append(line[22:26].strip())
|
209 |
|
210 |
-
f = open(Path(path_3D_alignment / f'{identifier}_{pdbID}_{str(chain)}_alignment.txt'),"w")
|
211 |
|
212 |
aligner.mode = 'local'
|
213 |
aligner.substitution_matrix = substitution_matrices.load("BLOSUM62")
|
214 |
aligner.open_gap_score = -11
|
215 |
aligner.extend_gap_score = -1
|
216 |
alignments = aligner.align(pdbSequence, atomSequence)
|
|
|
|
|
217 |
alignments = (list(alignments))
|
218 |
-
for alignment in alignments:
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
return alignments, coords, resnums_for_sasa
|
223 |
elif mode==2:
|
224 |
atomSequence = ''
|
|
|
207 |
coords.append([line[31:38].strip(), line[39:46].strip(), line[47:54].strip()])
|
208 |
resnums_for_sasa.append(line[22:26].strip())
|
209 |
|
210 |
+
#f = open(Path(path_3D_alignment / f'{identifier}_{pdbID}_{str(chain)}_alignment.txt'),"w")
|
211 |
|
212 |
aligner.mode = 'local'
|
213 |
aligner.substitution_matrix = substitution_matrices.load("BLOSUM62")
|
214 |
aligner.open_gap_score = -11
|
215 |
aligner.extend_gap_score = -1
|
216 |
alignments = aligner.align(pdbSequence, atomSequence)
|
217 |
+
st.write(' here is 3D alignments')
|
218 |
+
st.write(alignments)
|
219 |
alignments = (list(alignments))
|
220 |
+
#for alignment in alignments:
|
221 |
+
# f.write(str(alignment))
|
222 |
+
# f.write('\n')
|
223 |
+
# f.write('\n')
|
224 |
return alignments, coords, resnums_for_sasa
|
225 |
elif mode==2:
|
226 |
atomSequence = ''
|