Ejemplo n.º 1
0
 def testHelixExtendsBothSides(self):
     """
     The alpha helix matches part of a sequence that's an alpha helix. The
     alpha helix in the sequence extends to both sides.
     --> false positive.
     """
     self.assertFalse(evaluateMatch('HHHHHHHH', 1, 7, 'H'))
Ejemplo n.º 2
0
 def testCase2(self):
     """
     The alpha helix matches part of a sequence that's an alpha helix. The
     alpha helix in the sequence doesn't extend to the left or right.
     --> true positive.
     """
     self.assertTrue(evaluateMatch('SHHHHHHG', 1, 7, 'H'))
Ejemplo n.º 3
0
 def testCase4(self):
     """
     The alpha helix matches part of a sequence that's an alpha helix. The
     alpha helix in the sequence extends to the right.
     --> true positive.
     """
     self.assertTrue(evaluateMatch('GHHHHHHH', 1, 7, 'H'))
Ejemplo n.º 4
0
 def testCase3(self):
     """
     The alpha helix matches part of a sequence that's an alpha helix. The
     alpha helix in the sequence extends to the left.
     --> false positive.
     """
     self.assertFalse(evaluateMatch('HHHHHHHG', 1, 7, 'H'))
Ejemplo n.º 5
0
 def testCase4HelixStartsAt0(self):
     """
     The alpha helix matches part of a sequence that's an alpha helix. The
     alpha helix in the sequence doesn't extends to the right.
     --> true positive.
     The helix starts at 0 and extends to the right.
     """
     self.assertTrue(evaluateMatch('HHHHHHHH', 0, 6, 'H'))
Ejemplo n.º 6
0
 def testCase2ExactMatch(self):
     """
     The alpha helix matches part of a sequence that's an alpha helix. The
     alpha helix in the sequence doesn't extend to the left or right.
     --> true positive.
     The helix starts at 0 and matches exactly.
     """
     self.assertTrue(evaluateMatch('HHH', 0, 3, 'H'))
Ejemplo n.º 7
0
 def testCase1NotDefault(self):
     """
     Test that the structure evaluation works when a non-default
     structureType is used.
     The structure matches part of a sequence that's not that structure.
     --> false positive.
     """
     self.assertFalse(evaluateMatch('GSSSGGGGG', 1, 7, 'E'))
Ejemplo n.º 8
0
 def testCase4NotDefault(self):
     """
     Test that the structure evaluation works when a non-default
     structureType is used.
     The structure matches part of a sequence that's that structure. The
     structure in the sequence extends to the right.
     --> true positive.
     """
     self.assertTrue(evaluateMatch('GEEEEEEE', 1, 7, 'E'))
Ejemplo n.º 9
0
 def testCase3NotDefault(self):
     """
     Test that the structure evaluation works when a non-default
     structureType is used.
     The structure matches part of a sequence that's that structure. The
     structure in the sequence extends to the left.
     --> false positive.
     """
     self.assertFalse(evaluateMatch('EEEEEEEG', 1, 7, 'E'))
Ejemplo n.º 10
0
 def testCase2NotDefault(self):
     """
     Test that the structure evaluation works when a non-default
     structureType is used.
     The structure matches part of a sequence that isn't that structure. The
     structure in the sequence doesn't extend to the left or right.
     --> true positive.
     """
     self.assertTrue(evaluateMatch('SEEEEEEG', 1, 7, 'E'))
Ejemplo n.º 11
0
 def testAlphaHelixCombined(self):
     """
     The alpha helix combined matches part of a sequence that's an alpha
     helix.
     """
     self.assertTrue(evaluateMatch('HHGHGHIH', 1, 7, 'K'))
Ejemplo n.º 12
0
 def testCase1(self):
     """
     The alpha helix matches part of a sequence that's not an alpha helix.
     --> false positive.
     """
     self.assertFalse(evaluateMatch('GSSSGGGGG', 1, 7, 'H'))