コード例 #1
0
        public void IgnoredAtom()
        {
            var printer = new AtomPairs2DFingerprinter();
            var mol1    = parser.ParseSmiles("[Te]1cccc1");
            var map     = printer.GetRawFingerprint(mol1);

            Assert.IsTrue(map.ContainsKey("1_C_C"));
            Assert.IsTrue(map.ContainsKey("2_C_C"));
        }
コード例 #2
0
        public void TestHalogen()
        {
            var printer = new AtomPairs2DFingerprinter();
            var mol1    = parser.ParseSmiles("Clc1ccccc1");
            var map     = printer.GetRawFingerprint(mol1);

            Assert.IsTrue(map.ContainsKey("1_X_C"));
            Assert.IsTrue(map.ContainsKey("1_Cl_C"));
            Assert.IsTrue(map.ContainsKey("2_X_C"));
            Assert.IsTrue(map.ContainsKey("2_Cl_C"));
            Assert.IsTrue(map.ContainsKey("3_X_C"));
            Assert.IsTrue(map.ContainsKey("3_Cl_C"));
            Assert.IsTrue(map.ContainsKey("4_X_C"));
            Assert.IsTrue(map.ContainsKey("4_Cl_C"));
        }