Ejemplo n.º 1
0
 def testNormalizeLong(self):
     if not doLong:
         raise unittest.SkipTest('long test')
     for data in self.readPCSdata(self.dataPCS_nomralized100k):
         try:
             n = Standardizer()
             nm = n.normalize(data.mol)
             ns = Chem.MolToSmiles(nm)
         except Exception:
             raise AssertionError(f'Line {data.lineNo}: MolVS normalization failed for SMILES {data.smiles}')
         self.assertEqual(ns, data.expected)
Ejemplo n.º 2
0
 def testNormalizeLong(self):
     if not doLong:
         raise unittest.SkipTest('long test')
     for data in self.readPCSdata(self.dataPCS_nomralized100k):
         try:
             n = Standardizer()
             nm = n.normalize(data.mol)
             ns = Chem.MolToSmiles(nm)
         except Exception:
             raise AssertionError(
                 'Line {0.lineNo}: MolVS normalization failed for SMILES {0.smiles}'.format(data))
         self.assertEqual(ns, data.expected)
Ejemplo n.º 3
0
 def testNormalizeShort(self):
     for data in self.readPCSdata(self.dataPCS_nomralized1k):
         n = Standardizer()
         nm = n.normalize(data.mol)
         ns = Chem.MolToSmiles(nm)
         self.assertEqual(ns, data.expected)
Ejemplo n.º 4
0
 def testNormalizeShort(self):
     for data in self.readPCSdata(self.dataPCS_nomralized1k):
         n = Standardizer()
         nm = n.normalize(data.mol)
         ns = Chem.MolToSmiles(nm)
         self.assertEqual(ns, data.expected)