def testQuestion1_4(self): """ test question 1; global alignment with a gap penalty of -4 """ aln_global_4 = alignGlobal(self.seqA, self.seqB, self.blosum62_matrix, -4) expected1 = aln_global_4.seqs[0].getSeqString() expected2 = aln_global_4.seqs[1].getSeqString() self.assertEquals("THIS-LI-NE-", expected1) self.assertEquals("--ISALIGNED", expected2)
def testQuestion1_8(self): """ test question 1; global alignment with a gap penalty of -8 """ aln_global_8 = alignGlobal(self.seqA, self.seqB, self.blosum62_matrix, -8) expected1 = aln_global_8.seqs[0].getSeqString() expected2 = aln_global_8.seqs[1].getSeqString() self.assertEquals("THISLINE-", expected1) self.assertEquals("ISALIGNED", expected2)