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)
def compareFasta(getExactSubmatches, afile, bfile, k): a = kfasta.FastaSequence(afile) b = kfasta.FastaSequence(bfile) return getExactSubmatchesByInterval(a, b, k, 100)