Beispiel #1
0
 def test_from_flat_file2(self):
     """fixtures/goodPssmObCb.txt should be a valid motif"""
     foo = Motif.from_flat_file('fixtures/goodPssmObCb.txt')
     self.assertTrue(Motif._validpssm(foo.pssm))
Beispiel #2
0
 def test_validpssm(self):
     """This is a valid pssm, it should pass"""
     pssm = [[0.1, 0.3, 0.4, 0.2], [0.5, 0.1, 0.1, 0.3],
             [0.2, 0.4, 0.3, 0.1]]
     self.assertTrue(Motif._validpssm(pssm))