def test_ATCGGACT(self): self.assertAlmostEqual( complexity_estimation.estimate_complexity_by_counting_kmers( 'ATCGGACT'), 1.0, delta=self.precision)
def test_ATA(self): self.assertAlmostEqual( complexity_estimation.estimate_complexity_by_counting_kmers('ATA'), 0.67, delta=self.precision)
def not_repetitive(w): complexity = complexity_estimation.estimate_complexity_by_counting_kmers(w) return complexity > 0.75