示例#1
0
 def test_cc_bad_pred(self):
     """correlation_coefficient: should give 0 when TP=0"""
     ref = Pairs([(1, 7), (2, 5)])
     pred = Pairs([(0, 8)])
     seqs = ['CAUCGAUUG']
     self.assertEqual(correlation_coefficient(ref, pred, seqs=seqs), 0.0)
示例#2
0
 def test_cc_bad_pred(self):
     """correlation_coefficient: should give 0 when TP=0"""
     ref = Pairs([(1,7),(2,5)])
     pred = Pairs([(0,8)])
     seqs = ['CAUCGAUUG']
     self.assertEqual(correlation_coefficient(ref, pred, seqs=seqs), 0.0)
示例#3
0
 def test_correlation_coefficient(self):
     """correlation_coefficient: check against compare_ct.pm"""
     self.assertFloatEqual(correlation_coefficient(self.true,\
         self.predicted, seqs=self.seq, min_dist=4), 0.42906394)
示例#4
0
 def test_correlation_coefficient(self):
     """correlation_coefficient: check against compare_ct.pm"""
     self.assertFloatEqual(correlation_coefficient(self.true,\
         self.predicted, seqs=self.seq, min_dist=4), 0.42906394)