コード例 #1
0
 def test_ATCGGACT(self):
     self.assertAlmostEqual(
         complexity_estimation.estimate_complexity_by_counting_kmers(
             'ATCGGACT'),
         1.0,
         delta=self.precision)
コード例 #2
0
 def test_ATA(self):
     self.assertAlmostEqual(
         complexity_estimation.estimate_complexity_by_counting_kmers('ATA'),
         0.67,
         delta=self.precision)
コード例 #3
0
def not_repetitive(w):
    complexity = complexity_estimation.estimate_complexity_by_counting_kmers(w)

    return complexity > 0.75