Exemple #1
0
 def test_subseq_counts_1(self):
     """test subseq_counts() with length 1"""
     counts = st.subseq_counts(["ACCGTATA", "CACAT"], 1)
     self.assertEquals(5, counts['A'])
     self.assertEquals(4, counts['C'])
     self.assertEquals(1, counts['G'])
     self.assertEquals(3, counts['T'])
Exemple #2
0
 def test_subseq_counts_1(self):
     """test subseq_counts() with length 1"""
     counts = st.subseq_counts(["ACCGTATA", "CACAT"], 1)
     self.assertEquals(5, counts['A'])
     self.assertEquals(4, counts['C'])
     self.assertEquals(1, counts['G'])
     self.assertEquals(3, counts['T'])
Exemple #3
0
 def test_subseq_counts_2(self):
     """test subseq_counts() with length 2"""
     counts = st.subseq_counts(["ACCGTATA", "CACAT"], 2)
     self.assertEquals(2, counts['AC'])
     self.assertEquals(1, counts['CC'])
     self.assertEquals(1, counts['CG'])
     self.assertEquals(1, counts['GT'])
     self.assertEquals(2, counts['TA'])
     self.assertEquals(2, counts['AT'])
     self.assertEquals(2, counts['CA'])
Exemple #4
0
 def test_subseq_counts_2(self):
     """test subseq_counts() with length 2"""
     counts = st.subseq_counts(["ACCGTATA", "CACAT"], 2)
     self.assertEquals(2, counts['AC'])
     self.assertEquals(1, counts['CC'])
     self.assertEquals(1, counts['CG'])
     self.assertEquals(1, counts['GT'])
     self.assertEquals(2, counts['TA'])
     self.assertEquals(2, counts['AT'])
     self.assertEquals(2, counts['CA'])