Exemplo n.º 1
0
 def test_GGAG_at_same_position(self):
     library = ("AGGAGCCATCTTCTATCT", 
                "AGGAGAGAGTTATCCGAC")
     motif = "GGAG"
     expected = [0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
     results = Sequences.motif_position_counts(library, motif)
     self.assertEqual(expected, results)
Exemplo n.º 2
0
 def test_nothing(self):
     library = ("A"*18, "G"*18, "C"*18)
     motif = "UUU"
     results = Sequences.motif_position_counts(library, motif)
     self.assertEqual([0]*18, results)