Spaces:
Sleeping
Sleeping
fatmacankara
commited on
Commit
·
36ba76e
1
Parent(s):
b137f6a
Update code/add_3Dalignment.py
Browse files- code/add_3Dalignment.py +8 -3
code/add_3Dalignment.py
CHANGED
@@ -217,8 +217,13 @@ def get_coords(annot, alignments, coords, resnums_for_sasa, mode):
|
|
217 |
def get_alignments_3D(identifier, model_num, pdbSequence, source, chain, pdbID, mode,file_format = 'gzip'):
|
218 |
print('I am here get alignments 3D')
|
219 |
print(type(mode))
|
|
|
|
|
220 |
uniprotSequence = convert_non_standard_amino_acids(uniprotSequence)
|
221 |
-
pdbSequence = convert_non_standard_amino_acids(pdbSequence)
|
|
|
|
|
|
|
222 |
if mode == 1:
|
223 |
print('mode')
|
224 |
if source != 'MODBASE':
|
@@ -280,8 +285,8 @@ def get_alignments_3D(identifier, model_num, pdbSequence, source, chain, pdbID,
|
|
280 |
aligner.open_gap_score = -11
|
281 |
aligner.extend_gap_score = -1
|
282 |
alignments = aligner.align(pdbSequence, atomSequence)
|
283 |
-
|
284 |
-
|
285 |
alignments = (list(alignments))
|
286 |
#for alignment in alignments:
|
287 |
# f.write(str(alignment))
|
|
|
217 |
def get_alignments_3D(identifier, model_num, pdbSequence, source, chain, pdbID, mode,file_format = 'gzip'):
|
218 |
print('I am here get alignments 3D')
|
219 |
print(type(mode))
|
220 |
+
print((uniprotSequence))
|
221 |
+
print((pdbSequence))
|
222 |
uniprotSequence = convert_non_standard_amino_acids(uniprotSequence)
|
223 |
+
pdbSequence = convert_non_standard_amino_acids(pdbSequence)
|
224 |
+
print('AFTER')
|
225 |
+
print((uniprotSequence))
|
226 |
+
print((pdbSequence))
|
227 |
if mode == 1:
|
228 |
print('mode')
|
229 |
if source != 'MODBASE':
|
|
|
285 |
aligner.open_gap_score = -11
|
286 |
aligner.extend_gap_score = -1
|
287 |
alignments = aligner.align(pdbSequence, atomSequence)
|
288 |
+
print(' here is 3D alignments')
|
289 |
+
print(alignments)
|
290 |
alignments = (list(alignments))
|
291 |
#for alignment in alignments:
|
292 |
# f.write(str(alignment))
|