def testContig(self): testSeq2RC, testQual2RC = moira.reverse_complement(testSeq2, testQual2) aligned1, aligned2 = moira.nw_align(testSeq1, testSeq2RC, args.match, args.mismatch, args.gap)[:2] self.assertEqual( moira.make_contig(aligned1, testQual1, aligned2, testQual2RC, args.insert, args.deltaq, args.consensus_qscore, args.qscore_cap), test_contig)
def testNwC(self): self.assertEqual( nw_align.nw_align(testSeq1, moira.reverse_complement(testSeq2), args.match, args.mismatch, args.gap), test_aligned)
def testReverseComplement(self): self.assertEqual(moira.reverse_complement(testSeq2, testQual2), testRC2)
def testContig(self): testSeq2RC, testQual2RC = moira.reverse_complement(testSeq2, testQual2) aligned1, aligned2 = moira.nw_align(testSeq1, testSeq2RC, args.match, args.mismatch, args.gap)[:2] self.assertEqual(moira.make_contig(aligned1, testQual1, aligned2, testQual2RC, args.insert, args.deltaq, args.consensus_qscore, args.qscore_cap), test_contig)
def testNwC(self): self.assertEqual(nw_align.nw_align(testSeq1, moira.reverse_complement(testSeq2), args.match, args.mismatch, args.gap), test_aligned)