Ejemplo n.º 1
0
 def test_get_isosteric_pairs_cutoff(self):
     """Isosteric pairs can be influenced by cutoff."""
     ima = IsostericityMatrices()
     result = ima.get_isosteric_pairs('AC', 'cWW', 3.0)
     result = list(result)
     result.sort()
     self.assertEqual(result, ['AC', 'AU', 'CG', 'GC', 'GU', 'UA', 'UU'])
Ejemplo n.º 2
0
 def test_check_isostericity_cutoff(self):
     """Setting the cutoff influences isostericity results."""
     ima = IsostericityMatrices()
     result = ima.check_isostericity('UU', 'AA', 'tWH',  2.0)
     self.assertFalse(result)
     result2 = ima.check_isostericity('UU', 'AA', 'tWH',  3.0)
     self.assertTrue(result2)
Ejemplo n.º 3
0
 def test_check_isostericity(self):
     """Isostericity has a default cutoff."""
     ima = IsostericityMatrices()
     result = ima.check_isostericity('AC', 'GU', 'cWW')
     self.assertTrue(result)
     result2 = ima.check_isostericity('AA', 'GG', 'cWW')
     self.assertFalse(result2)
     result3 = ima.check_isostericity('AC', 'UU', 'cWW')
     self.assertFalse(result3)
Ejemplo n.º 4
0
 def test_get_isosteric_pairs(self):
     """A list of isosteric pairs can be requested."""
     ima = IsostericityMatrices()
     result = ima.get_isosteric_pairs('AC', 'cWW')
     self.assertEqual(result, ('AC', 'GU'))
Ejemplo n.º 5
0
 def test_check_isostericity_none(self):
     """Some isostericity values may be empty."""
     ima = IsostericityMatrices()
     result = ima.check_isostericity('AA', 'GA', 'tWS')
     self.assertFalse(result)