예제 #1
0
def compareSequences(getExactSubmatches, imgfile, imgsize, afile, bfile, k, m):
    a = kfasta.FastaSequence(afile)
    b = kfasta.FastaSequence(bfile)
    matches = getExactSubmatches(a, b, k, m)
    buildComparisonImage(imgfile, imgsize[0], imgsize[1],
                         kfasta.getSequenceLength(afile),
                         kfasta.getSequenceLength(bfile), matches)
예제 #2
0
def compareFasta(getExactSubmatches, afile, bfile, k):
    a = kfasta.FastaSequence(afile)
    b = kfasta.FastaSequence(bfile)
    return getExactSubmatchesByInterval(a, b, k, 100)