Beispiel #1
0
import sys, fileinput, bioinfo

acc = ""
source = fileinput.input()

v = source.readline().strip()
w = source.readline().strip()
indel = 5

source.close()

blosum = bioinfo.readScores("PAM250_1.txt")
(score, backtrack, global_i, global_j) = bioinfo.LCS_local(v, w, blosum, indel)
#print backtrack
(acc, vv, ww) = bioinfo.outputLCS(backtrack, v, w, global_i, global_j)
#print acc
print score
print vv
print ww
Beispiel #2
0
import sys, fileinput, bioinfo

acc = ""
source = fileinput.input()

v = source.readline().strip()
w = source.readline().strip()
indel = 5

source.close()

blosum = bioinfo.readBlosum()
(score, backtrack) = bioinfo.LCS(v,w, blosum, indel)
#print backtrack
(acc, vv, ww) = bioinfo.outputLCS(backtrack, v, w, len(v), len(w))
#print acc
print score
print vv
print ww
Beispiel #3
0
import sys, fileinput, bioinfo

acc = ""
source = fileinput.input()

v = source.readline().strip()
w = source.readline().strip()
indel = 5

source.close()

blosum = bioinfo.readBlosum()
(score, backtrack) = bioinfo.LCS(v, w, blosum, indel)
#print backtrack
(acc, vv, ww) = bioinfo.outputLCS(backtrack, v, w, len(v), len(w))
#print acc
print score
print vv
print ww
Beispiel #4
0
import sys, fileinput, bioinfo

acc = ""
source = fileinput.input()

v = source.readline().strip()
w = source.readline().strip()
indel = 5

source.close()

blosum = bioinfo.readScores("PAM250_1.txt")
(score, backtrack, global_i, global_j) = bioinfo.LCS_local(v,w, blosum, indel)
#print backtrack
(acc, vv, ww) = bioinfo.outputLCS(backtrack, v, w, global_i, global_j)
#print acc
print score
print vv
print ww