def test_kmers(self): k = kmers('ABCDEFG', 2) self.assertEqual(['AB', 'BC', 'CD', 'DE', 'EF', 'FG'], k) k = kmers('ABCDEFG', 3) self.assertEqual(['ABC', 'BCD', 'CDE', 'DEF', 'EFG'], k)
def test_repeat_region_assembly(self): rep = 'ABCDEF' seqs = kmers(rep + rep, len(rep)) contigs = assemble(seqs, len(rep) - 1, remap_min_exact_match=1) self.assertEqual(0, len(contigs))
def test_kmers(self): k = kmers('ABCDEFG', 2) assert k == ['AB', 'BC', 'CD', 'DE', 'EF', 'FG'] k = kmers('ABCDEFG', 3) assert k == ['ABC', 'BCD', 'CDE', 'DEF', 'EFG']