rdkit-headers 2022.3.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- rdkit_headers/__init__.py +13 -0
- rdkit_headers/include/rdkit/CIPLabeler/CIPLabeler.h +59 -0
- rdkit_headers/include/rdkit/CIPLabeler/TooManyNodesException.h +28 -0
- rdkit_headers/include/rdkit/Catalogs/Catalog.h +461 -0
- rdkit_headers/include/rdkit/Catalogs/CatalogEntry.h +48 -0
- rdkit_headers/include/rdkit/Catalogs/CatalogParams.h +42 -0
- rdkit_headers/include/rdkit/ChemicalFeatures/ChemicalFeature.h +38 -0
- rdkit_headers/include/rdkit/ChemicalFeatures/FreeChemicalFeature.h +97 -0
- rdkit_headers/include/rdkit/DataManip/MetricMatrixCalc/MetricFuncs.h +54 -0
- rdkit_headers/include/rdkit/DataManip/MetricMatrixCalc/MetricMatrixCalc.h +106 -0
- rdkit_headers/include/rdkit/DataStructs/BitOps.h +337 -0
- rdkit_headers/include/rdkit/DataStructs/BitVect.h +68 -0
- rdkit_headers/include/rdkit/DataStructs/BitVectUtils.h +35 -0
- rdkit_headers/include/rdkit/DataStructs/BitVects.h +25 -0
- rdkit_headers/include/rdkit/DataStructs/DatastructsException.h +31 -0
- rdkit_headers/include/rdkit/DataStructs/DatastructsStreamOps.h +72 -0
- rdkit_headers/include/rdkit/DataStructs/DiscreteDistMat.h +30 -0
- rdkit_headers/include/rdkit/DataStructs/DiscreteValueVect.h +146 -0
- rdkit_headers/include/rdkit/DataStructs/ExplicitBitVect.h +96 -0
- rdkit_headers/include/rdkit/DataStructs/FPBReader.h +281 -0
- rdkit_headers/include/rdkit/DataStructs/MultiFPBReader.h +213 -0
- rdkit_headers/include/rdkit/DataStructs/SparseBitVect.h +101 -0
- rdkit_headers/include/rdkit/DataStructs/SparseIntVect.h +571 -0
- rdkit_headers/include/rdkit/DataStructs/base64.h +41 -0
- rdkit_headers/include/rdkit/DistGeom/BoundsMatrix.h +121 -0
- rdkit_headers/include/rdkit/DistGeom/ChiralSet.h +58 -0
- rdkit_headers/include/rdkit/DistGeom/ChiralViolationContrib.h +96 -0
- rdkit_headers/include/rdkit/DistGeom/DistGeomUtils.h +195 -0
- rdkit_headers/include/rdkit/DistGeom/DistViolationContrib.h +54 -0
- rdkit_headers/include/rdkit/DistGeom/FourthDimContrib.h +65 -0
- rdkit_headers/include/rdkit/DistGeom/TriangleSmooth.h +36 -0
- rdkit_headers/include/rdkit/Features/Feature.h +96 -0
- rdkit_headers/include/rdkit/ForceField/Contrib.h +40 -0
- rdkit_headers/include/rdkit/ForceField/ForceField.h +253 -0
- rdkit_headers/include/rdkit/ForceField/MMFF/AngleBend.h +78 -0
- rdkit_headers/include/rdkit/ForceField/MMFF/AngleConstraint.h +64 -0
- rdkit_headers/include/rdkit/ForceField/MMFF/BondStretch.h +67 -0
- rdkit_headers/include/rdkit/ForceField/MMFF/Contribs.h +26 -0
- rdkit_headers/include/rdkit/ForceField/MMFF/DistanceConstraint.h +61 -0
- rdkit_headers/include/rdkit/ForceField/MMFF/Nonbonded.h +105 -0
- rdkit_headers/include/rdkit/ForceField/MMFF/OopBend.h +65 -0
- rdkit_headers/include/rdkit/ForceField/MMFF/Params.h +1134 -0
- rdkit_headers/include/rdkit/ForceField/MMFF/PositionConstraint.h +55 -0
- rdkit_headers/include/rdkit/ForceField/MMFF/StretchBend.h +70 -0
- rdkit_headers/include/rdkit/ForceField/MMFF/TorsionAngle.h +79 -0
- rdkit_headers/include/rdkit/ForceField/MMFF/TorsionConstraint.h +70 -0
- rdkit_headers/include/rdkit/ForceField/UFF/AngleBend.h +92 -0
- rdkit_headers/include/rdkit/ForceField/UFF/AngleConstraint.h +64 -0
- rdkit_headers/include/rdkit/ForceField/UFF/BondStretch.h +83 -0
- rdkit_headers/include/rdkit/ForceField/UFF/Contribs.h +23 -0
- rdkit_headers/include/rdkit/ForceField/UFF/DistanceConstraint.h +62 -0
- rdkit_headers/include/rdkit/ForceField/UFF/Inversion.h +81 -0
- rdkit_headers/include/rdkit/ForceField/UFF/Nonbonded.h +87 -0
- rdkit_headers/include/rdkit/ForceField/UFF/Params.h +153 -0
- rdkit_headers/include/rdkit/ForceField/UFF/PositionConstraint.h +55 -0
- rdkit_headers/include/rdkit/ForceField/UFF/TorsionAngle.h +115 -0
- rdkit_headers/include/rdkit/ForceField/UFF/TorsionConstraint.h +70 -0
- rdkit_headers/include/rdkit/Geometry/Grid3D.h +55 -0
- rdkit_headers/include/rdkit/Geometry/GridUtils.h +64 -0
- rdkit_headers/include/rdkit/Geometry/Transform.h +19 -0
- rdkit_headers/include/rdkit/Geometry/Transform2D.h +85 -0
- rdkit_headers/include/rdkit/Geometry/Transform3D.h +101 -0
- rdkit_headers/include/rdkit/Geometry/UniformGrid3D.h +217 -0
- rdkit_headers/include/rdkit/Geometry/Utils.h +97 -0
- rdkit_headers/include/rdkit/Geometry/point.h +585 -0
- rdkit_headers/include/rdkit/GraphMol/Abbreviations/Abbreviations.h +132 -0
- rdkit_headers/include/rdkit/GraphMol/Atom.h +449 -0
- rdkit_headers/include/rdkit/GraphMol/AtomIterators.h +212 -0
- rdkit_headers/include/rdkit/GraphMol/Bond.h +393 -0
- rdkit_headers/include/rdkit/GraphMol/BondIterators.h +75 -0
- rdkit_headers/include/rdkit/GraphMol/Canon.h +130 -0
- rdkit_headers/include/rdkit/GraphMol/ChemReactions/Enumerate/CartesianProduct.h +147 -0
- rdkit_headers/include/rdkit/GraphMol/ChemReactions/Enumerate/Enumerate.h +187 -0
- rdkit_headers/include/rdkit/GraphMol/ChemReactions/Enumerate/EnumerateBase.h +200 -0
- rdkit_headers/include/rdkit/GraphMol/ChemReactions/Enumerate/EnumerateTypes.h +59 -0
- rdkit_headers/include/rdkit/GraphMol/ChemReactions/Enumerate/EnumerationPickler.h +60 -0
- rdkit_headers/include/rdkit/GraphMol/ChemReactions/Enumerate/EnumerationStrategyBase.h +227 -0
- rdkit_headers/include/rdkit/GraphMol/ChemReactions/Enumerate/RandomSample.h +163 -0
- rdkit_headers/include/rdkit/GraphMol/ChemReactions/Enumerate/RandomSampleAllBBs.h +184 -0
- rdkit_headers/include/rdkit/GraphMol/ChemReactions/PreprocessRxn.h +64 -0
- rdkit_headers/include/rdkit/GraphMol/ChemReactions/Reaction.h +491 -0
- rdkit_headers/include/rdkit/GraphMol/ChemReactions/ReactionFingerprints.h +147 -0
- rdkit_headers/include/rdkit/GraphMol/ChemReactions/ReactionParser.h +274 -0
- rdkit_headers/include/rdkit/GraphMol/ChemReactions/ReactionPickler.h +119 -0
- rdkit_headers/include/rdkit/GraphMol/ChemReactions/ReactionRunner.h +116 -0
- rdkit_headers/include/rdkit/GraphMol/ChemReactions/ReactionUtils.h +74 -0
- rdkit_headers/include/rdkit/GraphMol/ChemReactions/SanitizeRxn.h +169 -0
- rdkit_headers/include/rdkit/GraphMol/ChemTransforms/ChemTransforms.h +270 -0
- rdkit_headers/include/rdkit/GraphMol/ChemTransforms/MolFragmenter.h +120 -0
- rdkit_headers/include/rdkit/GraphMol/Chirality.h +137 -0
- rdkit_headers/include/rdkit/GraphMol/Conformer.h +183 -0
- rdkit_headers/include/rdkit/GraphMol/CoordGen.h +195 -0
- rdkit_headers/include/rdkit/GraphMol/Depictor/DepictUtils.h +366 -0
- rdkit_headers/include/rdkit/GraphMol/Depictor/EmbeddedFrag.h +544 -0
- rdkit_headers/include/rdkit/GraphMol/Depictor/RDDepictor.h +284 -0
- rdkit_headers/include/rdkit/GraphMol/Deprotect/Deprotect.h +105 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/AUTOCORR2D.h +49 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/AUTOCORR3D.h +51 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/AtomFeat.h +39 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/BCUT.h +66 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/ConnectivityDescriptors.h +211 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/CoulombMat.h +42 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/Crippen.h +137 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/Data3Ddescriptors.h +55 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/EEM.h +59 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/GETAWAY.h +51 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/Lipinski.h +169 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/MORSE.h +50 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/MQN.h +47 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/MolData3Ddescriptors.h +62 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/MolDescriptors.h +86 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/MolDescriptors3D.h +25 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/MolSurf.h +120 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/PBF.h +60 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/PMI.h +128 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/Property.h +123 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/RDF.h +52 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/RegisterDescriptor.h +84 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/USRDescriptor.h +137 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/WHIM.h +51 -0
- rdkit_headers/include/rdkit/GraphMol/DistGeomHelpers/BoundsMatrixBuilder.h +77 -0
- rdkit_headers/include/rdkit/GraphMol/DistGeomHelpers/Embedder.h +437 -0
- rdkit_headers/include/rdkit/GraphMol/FMCS/FMCS.h +194 -0
- rdkit_headers/include/rdkit/GraphMol/FMCS/Graph.h +43 -0
- rdkit_headers/include/rdkit/GraphMol/FileParsers/FileParserUtils.h +231 -0
- rdkit_headers/include/rdkit/GraphMol/FileParsers/FileParsers.h +399 -0
- rdkit_headers/include/rdkit/GraphMol/FileParsers/GeneralFileReader.h +170 -0
- rdkit_headers/include/rdkit/GraphMol/FileParsers/MolFileStereochem.h +60 -0
- rdkit_headers/include/rdkit/GraphMol/FileParsers/MolSupplier.h +444 -0
- rdkit_headers/include/rdkit/GraphMol/FileParsers/MolWriters.h +338 -0
- rdkit_headers/include/rdkit/GraphMol/FileParsers/MultithreadedMolSupplier.h +102 -0
- rdkit_headers/include/rdkit/GraphMol/FileParsers/MultithreadedSDMolSupplier.h +65 -0
- rdkit_headers/include/rdkit/GraphMol/FileParsers/MultithreadedSmilesMolSupplier.h +66 -0
- rdkit_headers/include/rdkit/GraphMol/FileParsers/PNGParser.h +203 -0
- rdkit_headers/include/rdkit/GraphMol/FileParsers/SequenceParsers.h +117 -0
- rdkit_headers/include/rdkit/GraphMol/FileParsers/SequenceWriters.h +47 -0
- rdkit_headers/include/rdkit/GraphMol/FilterCatalog/FilterCatalog.h +260 -0
- rdkit_headers/include/rdkit/GraphMol/FilterCatalog/FilterCatalogEntry.h +276 -0
- rdkit_headers/include/rdkit/GraphMol/FilterCatalog/FilterMatcherBase.h +152 -0
- rdkit_headers/include/rdkit/GraphMol/FilterCatalog/FilterMatchers.h +576 -0
- rdkit_headers/include/rdkit/GraphMol/FilterCatalog/FunctionalGroupHierarchy.h +52 -0
- rdkit_headers/include/rdkit/GraphMol/Fingerprints/AtomPairGenerator.h +188 -0
- rdkit_headers/include/rdkit/GraphMol/Fingerprints/AtomPairs.h +268 -0
- rdkit_headers/include/rdkit/GraphMol/Fingerprints/FingerprintGenerator.h +372 -0
- rdkit_headers/include/rdkit/GraphMol/Fingerprints/FingerprintUtil.h +160 -0
- rdkit_headers/include/rdkit/GraphMol/Fingerprints/Fingerprints.h +167 -0
- rdkit_headers/include/rdkit/GraphMol/Fingerprints/MACCS.h +32 -0
- rdkit_headers/include/rdkit/GraphMol/Fingerprints/MHFP.h +285 -0
- rdkit_headers/include/rdkit/GraphMol/Fingerprints/MorganFingerprints.h +210 -0
- rdkit_headers/include/rdkit/GraphMol/Fingerprints/MorganGenerator.h +251 -0
- rdkit_headers/include/rdkit/GraphMol/Fingerprints/RDKitFPGenerator.h +162 -0
- rdkit_headers/include/rdkit/GraphMol/Fingerprints/TopologicalTorsionGenerator.h +127 -0
- rdkit_headers/include/rdkit/GraphMol/ForceFieldHelpers/CrystalFF/TorsionAngleM6.h +72 -0
- rdkit_headers/include/rdkit/GraphMol/ForceFieldHelpers/CrystalFF/TorsionPreferences.h +41 -0
- rdkit_headers/include/rdkit/GraphMol/ForceFieldHelpers/FFConvenience.h +130 -0
- rdkit_headers/include/rdkit/GraphMol/ForceFieldHelpers/MMFF/AtomTyper.h +236 -0
- rdkit_headers/include/rdkit/GraphMol/ForceFieldHelpers/MMFF/Builder.h +141 -0
- rdkit_headers/include/rdkit/GraphMol/ForceFieldHelpers/MMFF/MMFF.h +105 -0
- rdkit_headers/include/rdkit/GraphMol/ForceFieldHelpers/UFF/AtomTyper.h +57 -0
- rdkit_headers/include/rdkit/GraphMol/ForceFieldHelpers/UFF/Builder.h +129 -0
- rdkit_headers/include/rdkit/GraphMol/ForceFieldHelpers/UFF/UFF.h +82 -0
- rdkit_headers/include/rdkit/GraphMol/FragCatalog/FragCatGenerator.h +33 -0
- rdkit_headers/include/rdkit/GraphMol/FragCatalog/FragCatParams.h +94 -0
- rdkit_headers/include/rdkit/GraphMol/FragCatalog/FragCatalogEntry.h +136 -0
- rdkit_headers/include/rdkit/GraphMol/FragCatalog/FragCatalogUtils.h +62 -0
- rdkit_headers/include/rdkit/GraphMol/FragCatalog/FragFPGenerator.h +38 -0
- rdkit_headers/include/rdkit/GraphMol/GenericGroups/GenericGroups.h +301 -0
- rdkit_headers/include/rdkit/GraphMol/GraphMol.h +22 -0
- rdkit_headers/include/rdkit/GraphMol/MMPA/MMPA.h +81 -0
- rdkit_headers/include/rdkit/GraphMol/MolAlign/AlignMolecules.h +183 -0
- rdkit_headers/include/rdkit/GraphMol/MolAlign/O3AAlignMolecules.h +354 -0
- rdkit_headers/include/rdkit/GraphMol/MolBundle.h +121 -0
- rdkit_headers/include/rdkit/GraphMol/MolCatalog/MolCatalog.h +20 -0
- rdkit_headers/include/rdkit/GraphMol/MolCatalog/MolCatalogEntry.h +109 -0
- rdkit_headers/include/rdkit/GraphMol/MolCatalog/MolCatalogParams.h +40 -0
- rdkit_headers/include/rdkit/GraphMol/MolChemicalFeatures/FeatureParser.h +58 -0
- rdkit_headers/include/rdkit/GraphMol/MolChemicalFeatures/MolChemicalFeature.h +98 -0
- rdkit_headers/include/rdkit/GraphMol/MolChemicalFeatures/MolChemicalFeatureDef.h +68 -0
- rdkit_headers/include/rdkit/GraphMol/MolChemicalFeatures/MolChemicalFeatureFactory.h +78 -0
- rdkit_headers/include/rdkit/GraphMol/MolDraw2D/MolDraw2D.h +539 -0
- rdkit_headers/include/rdkit/GraphMol/MolDraw2D/MolDraw2DHelpers.h +284 -0
- rdkit_headers/include/rdkit/GraphMol/MolDraw2D/MolDraw2DJS.h +62 -0
- rdkit_headers/include/rdkit/GraphMol/MolDraw2D/MolDraw2DSVG.h +88 -0
- rdkit_headers/include/rdkit/GraphMol/MolDraw2D/MolDraw2DUtils.h +179 -0
- rdkit_headers/include/rdkit/GraphMol/MolDraw2D/MolDraw2Dwx.h +107 -0
- rdkit_headers/include/rdkit/GraphMol/MolEnumerator/LinkNode.h +159 -0
- rdkit_headers/include/rdkit/GraphMol/MolEnumerator/MolEnumerator.h +276 -0
- rdkit_headers/include/rdkit/GraphMol/MolHash/MolHash.h +12 -0
- rdkit_headers/include/rdkit/GraphMol/MolHash/nmmolhash.h +60 -0
- rdkit_headers/include/rdkit/GraphMol/MolInterchange/MolInterchange.h +93 -0
- rdkit_headers/include/rdkit/GraphMol/MolInterchange/details.h +49 -0
- rdkit_headers/include/rdkit/GraphMol/MolOps.h +1016 -0
- rdkit_headers/include/rdkit/GraphMol/MolPickler.h +314 -0
- rdkit_headers/include/rdkit/GraphMol/MolStandardize/AcidBaseCatalog/AcidBaseCatalogEntry.h +56 -0
- rdkit_headers/include/rdkit/GraphMol/MolStandardize/AcidBaseCatalog/AcidBaseCatalogParams.h +65 -0
- rdkit_headers/include/rdkit/GraphMol/MolStandardize/AcidBaseCatalog/AcidBaseCatalogUtils.h +37 -0
- rdkit_headers/include/rdkit/GraphMol/MolStandardize/Charge.h +145 -0
- rdkit_headers/include/rdkit/GraphMol/MolStandardize/Fragment.h +105 -0
- rdkit_headers/include/rdkit/GraphMol/MolStandardize/FragmentCatalog/FragmentCatalogEntry.h +60 -0
- rdkit_headers/include/rdkit/GraphMol/MolStandardize/FragmentCatalog/FragmentCatalogParams.h +63 -0
- rdkit_headers/include/rdkit/GraphMol/MolStandardize/FragmentCatalog/FragmentCatalogUtils.h +35 -0
- rdkit_headers/include/rdkit/GraphMol/MolStandardize/Metal.h +73 -0
- rdkit_headers/include/rdkit/GraphMol/MolStandardize/MolStandardize.h +178 -0
- rdkit_headers/include/rdkit/GraphMol/MolStandardize/Normalize.h +104 -0
- rdkit_headers/include/rdkit/GraphMol/MolStandardize/Tautomer.h +428 -0
- rdkit_headers/include/rdkit/GraphMol/MolStandardize/TautomerCatalog/TautomerCatalogEntry.h +59 -0
- rdkit_headers/include/rdkit/GraphMol/MolStandardize/TautomerCatalog/TautomerCatalogParams.h +69 -0
- rdkit_headers/include/rdkit/GraphMol/MolStandardize/TautomerCatalog/TautomerCatalogUtils.h +81 -0
- rdkit_headers/include/rdkit/GraphMol/MolStandardize/TransformCatalog/TransformCatalogEntry.h +57 -0
- rdkit_headers/include/rdkit/GraphMol/MolStandardize/TransformCatalog/TransformCatalogParams.h +66 -0
- rdkit_headers/include/rdkit/GraphMol/MolStandardize/TransformCatalog/TransformCatalogUtils.h +37 -0
- rdkit_headers/include/rdkit/GraphMol/MolStandardize/Validate.h +199 -0
- rdkit_headers/include/rdkit/GraphMol/MolTransforms/MolTransforms.h +222 -0
- rdkit_headers/include/rdkit/GraphMol/MonomerInfo.h +138 -0
- rdkit_headers/include/rdkit/GraphMol/PartialCharges/GasteigerCharges.h +27 -0
- rdkit_headers/include/rdkit/GraphMol/PartialCharges/GasteigerParams.h +86 -0
- rdkit_headers/include/rdkit/GraphMol/PeriodicTable.h +325 -0
- rdkit_headers/include/rdkit/GraphMol/QueryAtom.h +161 -0
- rdkit_headers/include/rdkit/GraphMol/QueryBond.h +146 -0
- rdkit_headers/include/rdkit/GraphMol/QueryOps.h +1110 -0
- rdkit_headers/include/rdkit/GraphMol/RDKitBase.h +35 -0
- rdkit_headers/include/rdkit/GraphMol/RDKitQueries.h +25 -0
- rdkit_headers/include/rdkit/GraphMol/RGroupDecomposition/RGroupDecomp.h +225 -0
- rdkit_headers/include/rdkit/GraphMol/ROMol.h +844 -0
- rdkit_headers/include/rdkit/GraphMol/RWMol.h +222 -0
- rdkit_headers/include/rdkit/GraphMol/ReducedGraphs/ReducedGraphs.h +85 -0
- rdkit_headers/include/rdkit/GraphMol/Resonance.h +236 -0
- rdkit_headers/include/rdkit/GraphMol/RingInfo.h +274 -0
- rdkit_headers/include/rdkit/GraphMol/Rings.h +90 -0
- rdkit_headers/include/rdkit/GraphMol/SLNParse/SLNAttribs.h +93 -0
- rdkit_headers/include/rdkit/GraphMol/SLNParse/SLNParse.h +70 -0
- rdkit_headers/include/rdkit/GraphMol/SLNParse/SLNParseOps.h +328 -0
- rdkit_headers/include/rdkit/GraphMol/SanitException.h +120 -0
- rdkit_headers/include/rdkit/GraphMol/ScaffoldNetwork/ScaffoldNetwork.h +195 -0
- rdkit_headers/include/rdkit/GraphMol/ShapeHelpers/ShapeEncoder.h +73 -0
- rdkit_headers/include/rdkit/GraphMol/ShapeHelpers/ShapeUtils.h +279 -0
- rdkit_headers/include/rdkit/GraphMol/SmilesParse/SmartsWrite.h +46 -0
- rdkit_headers/include/rdkit/GraphMol/SmilesParse/SmilesParse.h +160 -0
- rdkit_headers/include/rdkit/GraphMol/SmilesParse/SmilesParseOps.h +53 -0
- rdkit_headers/include/rdkit/GraphMol/SmilesParse/SmilesWrite.h +288 -0
- rdkit_headers/include/rdkit/GraphMol/SmilesParse/primes.h +18 -0
- rdkit_headers/include/rdkit/GraphMol/StereoGroup.h +74 -0
- rdkit_headers/include/rdkit/GraphMol/Subgraphs/SubgraphUtils.h +57 -0
- rdkit_headers/include/rdkit/GraphMol/Subgraphs/Subgraphs.h +154 -0
- rdkit_headers/include/rdkit/GraphMol/SubstanceGroup.h +297 -0
- rdkit_headers/include/rdkit/GraphMol/Substruct/SubstructMatch.h +232 -0
- rdkit_headers/include/rdkit/GraphMol/Substruct/SubstructUtils.h +44 -0
- rdkit_headers/include/rdkit/GraphMol/SubstructLibrary/PatternFactory.h +40 -0
- rdkit_headers/include/rdkit/GraphMol/SubstructLibrary/SubstructLibrary.h +951 -0
- rdkit_headers/include/rdkit/GraphMol/SubstructLibrary/SubstructLibrarySerialization.h +231 -0
- rdkit_headers/include/rdkit/GraphMol/TautomerQuery/TautomerQuery.h +104 -0
- rdkit_headers/include/rdkit/GraphMol/Trajectory/Snapshot.h +69 -0
- rdkit_headers/include/rdkit/GraphMol/Trajectory/Trajectory.h +105 -0
- rdkit_headers/include/rdkit/GraphMol/atomic_data.h +76 -0
- rdkit_headers/include/rdkit/GraphMol/details.h +15 -0
- rdkit_headers/include/rdkit/GraphMol/new_canon.h +772 -0
- rdkit_headers/include/rdkit/Numerics/Alignment/AlignPoints.h +49 -0
- rdkit_headers/include/rdkit/Numerics/Conrec.h +203 -0
- rdkit_headers/include/rdkit/Numerics/EigenSolvers/PowerEigenSolver.h +68 -0
- rdkit_headers/include/rdkit/Numerics/Matrix.h +347 -0
- rdkit_headers/include/rdkit/Numerics/Optimizer/BFGSOpt.h +397 -0
- rdkit_headers/include/rdkit/Numerics/SquareMatrix.h +89 -0
- rdkit_headers/include/rdkit/Numerics/SymmMatrix.h +361 -0
- rdkit_headers/include/rdkit/Numerics/Vector.h +327 -0
- rdkit_headers/include/rdkit/Query/AndQuery.h +57 -0
- rdkit_headers/include/rdkit/Query/EqualityQuery.h +88 -0
- rdkit_headers/include/rdkit/Query/GreaterEqualQuery.h +74 -0
- rdkit_headers/include/rdkit/Query/GreaterQuery.h +74 -0
- rdkit_headers/include/rdkit/Query/LessEqualQuery.h +75 -0
- rdkit_headers/include/rdkit/Query/LessQuery.h +74 -0
- rdkit_headers/include/rdkit/Query/NullQueryAlgebra.h +86 -0
- rdkit_headers/include/rdkit/Query/OrQuery.h +58 -0
- rdkit_headers/include/rdkit/Query/Query.h +210 -0
- rdkit_headers/include/rdkit/Query/QueryObjects.h +38 -0
- rdkit_headers/include/rdkit/Query/RangeQuery.h +116 -0
- rdkit_headers/include/rdkit/Query/SetQuery.h +87 -0
- rdkit_headers/include/rdkit/Query/XOrQuery.h +63 -0
- rdkit_headers/include/rdkit/RDGeneral/BadFileException.h +39 -0
- rdkit_headers/include/rdkit/RDGeneral/BoostEndInclude.h +69 -0
- rdkit_headers/include/rdkit/RDGeneral/BoostStartInclude.h +95 -0
- rdkit_headers/include/rdkit/RDGeneral/ConcurrentQueue.h +132 -0
- rdkit_headers/include/rdkit/RDGeneral/Dict.h +350 -0
- rdkit_headers/include/rdkit/RDGeneral/Exceptions.h +73 -0
- rdkit_headers/include/rdkit/RDGeneral/FileParseException.h +36 -0
- rdkit_headers/include/rdkit/RDGeneral/Invariant.h +198 -0
- rdkit_headers/include/rdkit/RDGeneral/LocaleSwitcher.h +54 -0
- rdkit_headers/include/rdkit/RDGeneral/RDAny.h +217 -0
- rdkit_headers/include/rdkit/RDGeneral/RDConfig.h +49 -0
- rdkit_headers/include/rdkit/RDGeneral/RDExportMacros.h +40 -0
- rdkit_headers/include/rdkit/RDGeneral/RDLog.h +142 -0
- rdkit_headers/include/rdkit/RDGeneral/RDProps.h +172 -0
- rdkit_headers/include/rdkit/RDGeneral/RDThreads.h +44 -0
- rdkit_headers/include/rdkit/RDGeneral/RDValue-doublemagic.h +478 -0
- rdkit_headers/include/rdkit/RDGeneral/RDValue-taggedunion.h +518 -0
- rdkit_headers/include/rdkit/RDGeneral/RDValue.h +285 -0
- rdkit_headers/include/rdkit/RDGeneral/Ranking.h +87 -0
- rdkit_headers/include/rdkit/RDGeneral/StreamOps.h +637 -0
- rdkit_headers/include/rdkit/RDGeneral/export.h +559 -0
- rdkit_headers/include/rdkit/RDGeneral/hanoiSort.h +167 -0
- rdkit_headers/include/rdkit/RDGeneral/hash/detail/float_functions.hpp +156 -0
- rdkit_headers/include/rdkit/RDGeneral/hash/detail/hash_float.hpp +179 -0
- rdkit_headers/include/rdkit/RDGeneral/hash/extensions.hpp +152 -0
- rdkit_headers/include/rdkit/RDGeneral/hash/hash.hpp +463 -0
- rdkit_headers/include/rdkit/RDGeneral/hash/hash_fwd.hpp +51 -0
- rdkit_headers/include/rdkit/RDGeneral/test.h +274 -0
- rdkit_headers/include/rdkit/RDGeneral/types.h +401 -0
- rdkit_headers/include/rdkit/RDGeneral/utils.h +106 -0
- rdkit_headers/include/rdkit/RDGeneral/versions.h +27 -0
- rdkit_headers/include/rdkit/RDStreams/streams.h +19 -0
- rdkit_headers/include/rdkit/RingDecomposerLib.h +751 -0
- rdkit_headers/include/rdkit/SimDivPickers/DistPicker.h +92 -0
- rdkit_headers/include/rdkit/SimDivPickers/HierarchicalClusterPicker.h +107 -0
- rdkit_headers/include/rdkit/SimDivPickers/LeaderPicker.h +470 -0
- rdkit_headers/include/rdkit/SimDivPickers/MaxMinPicker.h +303 -0
- rdkit_headers-2022.3.3.dist-info/METADATA +24 -0
- rdkit_headers-2022.3.3.dist-info/RECORD +320 -0
- rdkit_headers-2022.3.3.dist-info/WHEEL +4 -0
- rdkit_headers-2022.3.3.dist-info/entry_points.txt +4 -0
- rdkit_headers-2022.3.3.dist-info/licenses/LICENSE +29 -0
- rdkit_headers-2022.3.3.dist-info/licenses/NOTICE +5 -0
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright (C) 2021 Greg Landrum
|
|
3
|
+
//
|
|
4
|
+
// @@ All Rights Reserved @@
|
|
5
|
+
// This file is part of the RDKit.
|
|
6
|
+
// The contents are covered by the terms of the BSD license
|
|
7
|
+
// which is included in the file license.txt, found at the root
|
|
8
|
+
// of the RDKit source tree.
|
|
9
|
+
//
|
|
10
|
+
#include <RDGeneral/export.h>
|
|
11
|
+
#ifndef RD_GENERICGROUPS_H
|
|
12
|
+
#define RD_GENERICGROUPS_H
|
|
13
|
+
|
|
14
|
+
#include <vector>
|
|
15
|
+
#include <functional>
|
|
16
|
+
#include <map>
|
|
17
|
+
#include <boost/dynamic_bitset.hpp>
|
|
18
|
+
|
|
19
|
+
namespace RDKit {
|
|
20
|
+
class ROMol;
|
|
21
|
+
class Atom;
|
|
22
|
+
class Bond;
|
|
23
|
+
|
|
24
|
+
namespace GenericGroups {
|
|
25
|
+
// We'd like to be able to correctly interpret what's written by Marvin and
|
|
26
|
+
// MarvinJS, so the conditions for these are adapted from the ChemAxon
|
|
27
|
+
// documentation for homology groups
|
|
28
|
+
// (https://docs.chemaxon.com/display/docs/homology-groups.md)
|
|
29
|
+
//
|
|
30
|
+
// If I had questions about what the queries should do, I ran example in Reaxys
|
|
31
|
+
// with MarvinJS as the sketcher to see what that returns.
|
|
32
|
+
//
|
|
33
|
+
// I've tried to document deviations or surprises
|
|
34
|
+
|
|
35
|
+
namespace Matchers {
|
|
36
|
+
//! Matches alkyl side chains
|
|
37
|
+
/*!
|
|
38
|
+
|
|
39
|
+
Conditions:
|
|
40
|
+
- side chain consists entirely of carbon or hydrogen
|
|
41
|
+
- at least one carbon is present
|
|
42
|
+
- all bonds are single
|
|
43
|
+
- no ring bonds
|
|
44
|
+
|
|
45
|
+
*/
|
|
46
|
+
RDKIT_GENERICGROUPS_EXPORT bool AlkylAtomMatcher(
|
|
47
|
+
const ROMol &mol, const Atom &atom, boost::dynamic_bitset<> ignore);
|
|
48
|
+
//! Matches alkenyl side chains
|
|
49
|
+
/*!
|
|
50
|
+
|
|
51
|
+
Conditions:
|
|
52
|
+
- side chain consists entirely of carbon or hydrogen
|
|
53
|
+
- contains at least one C=C
|
|
54
|
+
- no ring bonds
|
|
55
|
+
|
|
56
|
+
*/
|
|
57
|
+
RDKIT_GENERICGROUPS_EXPORT bool AlkenylAtomMatcher(
|
|
58
|
+
const ROMol &mol, const Atom &atom, boost::dynamic_bitset<> ignore);
|
|
59
|
+
//! Matches alkynyl side chains
|
|
60
|
+
/*!
|
|
61
|
+
|
|
62
|
+
Conditions:
|
|
63
|
+
- side chain consists entirely of carbon or hydrogen
|
|
64
|
+
- contains at least one C#C
|
|
65
|
+
- no ring bonds
|
|
66
|
+
|
|
67
|
+
*/
|
|
68
|
+
RDKIT_GENERICGROUPS_EXPORT bool AlkynylAtomMatcher(
|
|
69
|
+
const ROMol &mol, const Atom &atom, boost::dynamic_bitset<> ignore);
|
|
70
|
+
|
|
71
|
+
//! Matches carbocyclic side chains
|
|
72
|
+
/*!
|
|
73
|
+
|
|
74
|
+
Note: this is Reaxys query type CBC and matches carbocycles
|
|
75
|
+
|
|
76
|
+
Conditions:
|
|
77
|
+
- atom is in at least one ring composed entirely of carbon
|
|
78
|
+
- atom is not in any rings not compatible with the above conditions
|
|
79
|
+
- additional fused rings in the system must obey the same rules
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
*/
|
|
83
|
+
RDKIT_GENERICGROUPS_EXPORT bool CarbocyclicAtomMatcher(
|
|
84
|
+
const ROMol &mol, const Atom &atom, boost::dynamic_bitset<> ignore);
|
|
85
|
+
//! Matches cycloalkyl side chains
|
|
86
|
+
/*!
|
|
87
|
+
|
|
88
|
+
Note: this is Reaxys query type CAL and is directly equivalent to alkyl,
|
|
89
|
+
except the immediate atom needs to be in a ring.
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
Conditions:
|
|
93
|
+
- atom is in at least one ring composed entirely of carbon and connected
|
|
94
|
+
with single bonds
|
|
95
|
+
- atoms in the ring do not have unsaturations (including exocyclic)
|
|
96
|
+
- atom is not in any rings not compatible with the above conditions
|
|
97
|
+
- additional fused rings in the system must obey the same rules (i.e. all
|
|
98
|
+
single bonds)
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
*/
|
|
102
|
+
RDKIT_GENERICGROUPS_EXPORT bool CarbocycloalkylAtomMatcher(
|
|
103
|
+
const ROMol &mol, const Atom &atom, boost::dynamic_bitset<> ignore);
|
|
104
|
+
//! Matches cycloalkenyl side chains
|
|
105
|
+
/*!
|
|
106
|
+
|
|
107
|
+
Note: this is Reaxys query type CEL and matches carbocycles which have at
|
|
108
|
+
least one double or aromatic bond.
|
|
109
|
+
|
|
110
|
+
Conditions:
|
|
111
|
+
- atom is in at least one ring composed entirely of carbon and with at least
|
|
112
|
+
one double or aromatic bond
|
|
113
|
+
- atom is not in any rings not compatible with the above conditions
|
|
114
|
+
- additional fused rings in the system must obey the same rules (including
|
|
115
|
+
that each ring must have at least one double or aromatic bond)
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
*/
|
|
119
|
+
RDKIT_GENERICGROUPS_EXPORT bool CarbocycloalkenylAtomMatcher(
|
|
120
|
+
const ROMol &mol, const Atom &atom, boost::dynamic_bitset<> ignore);
|
|
121
|
+
|
|
122
|
+
//! Matches heterocyclic side chains
|
|
123
|
+
/*!
|
|
124
|
+
|
|
125
|
+
Note: this is Reaxys query type CHC and matches heterocycles
|
|
126
|
+
|
|
127
|
+
Conditions:
|
|
128
|
+
- atom is in at least one fused ring with a heteroatom
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
*/
|
|
132
|
+
RDKIT_GENERICGROUPS_EXPORT bool HeterocyclicAtomMatcher(
|
|
133
|
+
const ROMol &mol, const Atom &atom, boost::dynamic_bitset<> ignore);
|
|
134
|
+
|
|
135
|
+
//! Matches aryl side chains
|
|
136
|
+
/*!
|
|
137
|
+
|
|
138
|
+
Note: this is Reaxys query type ARY and matches carbocycles which are aromatic
|
|
139
|
+
|
|
140
|
+
Conditions:
|
|
141
|
+
- atom is in at least one aromatic ring composed entirely of carbon
|
|
142
|
+
- atom is not in any rings not compatible with the above conditions
|
|
143
|
+
- additional fused rings in the system must obey the same rules
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
*/
|
|
147
|
+
RDKIT_GENERICGROUPS_EXPORT bool CarboarylAtomMatcher(
|
|
148
|
+
const ROMol &mol, const Atom &atom, boost::dynamic_bitset<> ignore);
|
|
149
|
+
|
|
150
|
+
//! Matches heteroaryl side chains
|
|
151
|
+
/*!
|
|
152
|
+
|
|
153
|
+
Note: this is Reaxys query type HAR and matches aromatic heterocycles
|
|
154
|
+
|
|
155
|
+
Conditions:
|
|
156
|
+
- atom is in at least one fused aromatic sytem with a heteroatom
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
*/
|
|
160
|
+
RDKIT_GENERICGROUPS_EXPORT bool HeteroarylAtomMatcher(
|
|
161
|
+
const ROMol &mol, const Atom &atom, boost::dynamic_bitset<> ignore);
|
|
162
|
+
|
|
163
|
+
//! Matches cyclic side chains
|
|
164
|
+
/*!
|
|
165
|
+
|
|
166
|
+
Note: this is Reaxys query type CYC and matches cycles
|
|
167
|
+
|
|
168
|
+
Conditions:
|
|
169
|
+
- atom is in at least one ring
|
|
170
|
+
|
|
171
|
+
*/
|
|
172
|
+
RDKIT_GENERICGROUPS_EXPORT bool CyclicAtomMatcher(
|
|
173
|
+
const ROMol &mol, const Atom &atom, boost::dynamic_bitset<> ignore);
|
|
174
|
+
|
|
175
|
+
//! Matches acyclic side chains
|
|
176
|
+
/*!
|
|
177
|
+
|
|
178
|
+
Note: this is Reaxys query type ACY and matches sidechains with no cycles
|
|
179
|
+
|
|
180
|
+
Conditions:
|
|
181
|
+
- no atom in the sidechain is in a ring
|
|
182
|
+
|
|
183
|
+
*/
|
|
184
|
+
RDKIT_GENERICGROUPS_EXPORT bool AcyclicAtomMatcher(
|
|
185
|
+
const ROMol &mol, const Atom &atom, boost::dynamic_bitset<> ignore);
|
|
186
|
+
|
|
187
|
+
//! Matches all-carbon acyclic side chains
|
|
188
|
+
/*!
|
|
189
|
+
|
|
190
|
+
Note: this is Reaxys query type ABC and matches all-carbon sidechains with no
|
|
191
|
+
cycles
|
|
192
|
+
|
|
193
|
+
Conditions:
|
|
194
|
+
- all atoms in the sidechain are carbon
|
|
195
|
+
- no atom in the sidechain is in a ring
|
|
196
|
+
|
|
197
|
+
*/
|
|
198
|
+
RDKIT_GENERICGROUPS_EXPORT bool CarboacyclicAtomMatcher(
|
|
199
|
+
const ROMol &mol, const Atom &atom, boost::dynamic_bitset<> ignore);
|
|
200
|
+
|
|
201
|
+
//! Matches acyclic side chains with at least one heteroatom
|
|
202
|
+
/*!
|
|
203
|
+
|
|
204
|
+
Note: this is Reaxys query type AHC and matches sidechains with no cycles and
|
|
205
|
+
at least one heteroatom
|
|
206
|
+
|
|
207
|
+
Conditions:
|
|
208
|
+
- at least one non-carbon, non-hydrogen atom is in the sidechain
|
|
209
|
+
- no atom in the sidechain is in a ring
|
|
210
|
+
|
|
211
|
+
*/
|
|
212
|
+
RDKIT_GENERICGROUPS_EXPORT bool HeteroacyclicAtomMatcher(
|
|
213
|
+
const ROMol &mol, const Atom &atom, boost::dynamic_bitset<> ignore);
|
|
214
|
+
//! Matches acyclic alkoxy side chains
|
|
215
|
+
/*!
|
|
216
|
+
|
|
217
|
+
Note: this is Reaxys query type AOX and matches alkoxy sidechains
|
|
218
|
+
|
|
219
|
+
Conditions:
|
|
220
|
+
- first atom is an O
|
|
221
|
+
- all other atoms are C
|
|
222
|
+
- all single bonds
|
|
223
|
+
- no atom in the sidechain is in a ring
|
|
224
|
+
|
|
225
|
+
*/
|
|
226
|
+
RDKIT_GENERICGROUPS_EXPORT bool AlkoxyacyclicAtomMatcher(
|
|
227
|
+
const ROMol &mol, const Atom &atom, boost::dynamic_bitset<> ignore);
|
|
228
|
+
|
|
229
|
+
//! Matches rings without carbon
|
|
230
|
+
/*!
|
|
231
|
+
|
|
232
|
+
Note: this is Reaxys query type CXX and matches rings which contain no carbon
|
|
233
|
+
|
|
234
|
+
Conditions:
|
|
235
|
+
- a ring is present
|
|
236
|
+
- none of the atoms in the fused ring system are carbon
|
|
237
|
+
|
|
238
|
+
*/
|
|
239
|
+
RDKIT_GENERICGROUPS_EXPORT bool NoCarbonRingAtomMatcher(
|
|
240
|
+
const ROMol &mol, const Atom &atom, boost::dynamic_bitset<> ignore);
|
|
241
|
+
} // namespace Matchers
|
|
242
|
+
const static std::map<
|
|
243
|
+
std::string,
|
|
244
|
+
std::function<bool(const ROMol &, const Atom &, boost::dynamic_bitset<>)>>
|
|
245
|
+
genericMatchers = {
|
|
246
|
+
{"Alkyl", Matchers::AlkylAtomMatcher},
|
|
247
|
+
{"ALK", Matchers::AlkylAtomMatcher},
|
|
248
|
+
{"Alkenyl", Matchers::AlkenylAtomMatcher},
|
|
249
|
+
{"AEL", Matchers::AlkenylAtomMatcher},
|
|
250
|
+
{"Alkynyl", Matchers::AlkynylAtomMatcher},
|
|
251
|
+
{"AYL", Matchers::AlkynylAtomMatcher},
|
|
252
|
+
{"Carbocyclic", Matchers::CarbocyclicAtomMatcher},
|
|
253
|
+
{"CBC", Matchers::CarbocyclicAtomMatcher},
|
|
254
|
+
{"Carbocycloalkyl", Matchers::CarbocycloalkylAtomMatcher},
|
|
255
|
+
{"CAL", Matchers::CarbocycloalkylAtomMatcher},
|
|
256
|
+
{"Carbocycloalkenyl", Matchers::CarbocycloalkenylAtomMatcher},
|
|
257
|
+
{"CEL", Matchers::CarbocycloalkenylAtomMatcher},
|
|
258
|
+
{"Carboaryl", Matchers::CarboarylAtomMatcher},
|
|
259
|
+
{"ARY", Matchers::CarboarylAtomMatcher},
|
|
260
|
+
{"Cyclic", Matchers::CyclicAtomMatcher},
|
|
261
|
+
{"CYC", Matchers::CyclicAtomMatcher},
|
|
262
|
+
{"Acyclic", Matchers::AcyclicAtomMatcher},
|
|
263
|
+
{"ACY", Matchers::AcyclicAtomMatcher},
|
|
264
|
+
{"Carboacyclic", Matchers::CarboacyclicAtomMatcher},
|
|
265
|
+
{"ABC", Matchers::CarboacyclicAtomMatcher},
|
|
266
|
+
{"Heteroacyclic", Matchers::HeteroacyclicAtomMatcher},
|
|
267
|
+
{"AHC", Matchers::HeteroacyclicAtomMatcher},
|
|
268
|
+
{"Alkoxy", Matchers::AlkoxyacyclicAtomMatcher},
|
|
269
|
+
{"AOX", Matchers::AlkoxyacyclicAtomMatcher},
|
|
270
|
+
{"Heterocyclic", Matchers::HeterocyclicAtomMatcher},
|
|
271
|
+
{"CHC", Matchers::HeterocyclicAtomMatcher},
|
|
272
|
+
{"Heteroaryl", Matchers::HeteroarylAtomMatcher},
|
|
273
|
+
{"HAR", Matchers::HeteroarylAtomMatcher},
|
|
274
|
+
{"NoCarbonRing", Matchers::NoCarbonRingAtomMatcher},
|
|
275
|
+
{"CXX", Matchers::NoCarbonRingAtomMatcher},
|
|
276
|
+
};
|
|
277
|
+
//! returns false if any of the molecule's generic atoms are not satisfied in
|
|
278
|
+
/// the current match
|
|
279
|
+
RDKIT_GENERICGROUPS_EXPORT bool genericAtomMatcher(
|
|
280
|
+
const ROMol &mol, const ROMol &query,
|
|
281
|
+
const std::vector<unsigned int> &match);
|
|
282
|
+
//! sets the apropriate generic query tags based on atom labels and/or SGroups
|
|
283
|
+
/*
|
|
284
|
+
|
|
285
|
+
- Generic query tags found in the atom labels/SGroups will be overwrite existing
|
|
286
|
+
generic query tags (if there are any present).
|
|
287
|
+
- only SUP SGroups are considered
|
|
288
|
+
- Any atom labels or SGroups which are converted will be removed
|
|
289
|
+
- If both atom labels and SGroups are being used and an atom has generic
|
|
290
|
+
query tags in both, the one from the SGroup will be used.
|
|
291
|
+
- Generic query tags not found in GenericGroups::genericMatchers will be ignored
|
|
292
|
+
|
|
293
|
+
*/
|
|
294
|
+
RDKIT_GENERICGROUPS_EXPORT void setGenericQueriesFromProperties(
|
|
295
|
+
ROMol &mol, bool useAtomLabels = true, bool useSGroups = true);
|
|
296
|
+
RDKIT_GENERICGROUPS_EXPORT void convertGenericQueriesToSubstanceGroups(
|
|
297
|
+
ROMol &mol);
|
|
298
|
+
} // namespace GenericGroups
|
|
299
|
+
} // namespace RDKit
|
|
300
|
+
|
|
301
|
+
#endif
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright (C) 2001-2006 Greg Landrum and Rational Discovery LLC
|
|
3
|
+
//
|
|
4
|
+
// @@ All Rights Reserved @@
|
|
5
|
+
// This file is part of the RDKit.
|
|
6
|
+
// The contents are covered by the terms of the BSD license
|
|
7
|
+
// which is included in the file license.txt, found at the root
|
|
8
|
+
// of the RDKit source tree.
|
|
9
|
+
//
|
|
10
|
+
/*! \file GraphMol.h
|
|
11
|
+
|
|
12
|
+
\brief pulls in RWMol and ROMol
|
|
13
|
+
|
|
14
|
+
*/
|
|
15
|
+
#include <RDGeneral/export.h>
|
|
16
|
+
#ifndef _GRAPH_MOL_H
|
|
17
|
+
#define _GRAPH_MOL_H
|
|
18
|
+
|
|
19
|
+
#include "ROMol.h"
|
|
20
|
+
#include "RWMol.h"
|
|
21
|
+
|
|
22
|
+
#endif
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright (C) 2015 Novartis Institutes for BioMedical Research
|
|
3
|
+
//
|
|
4
|
+
// @@ All Rights Reserved @@
|
|
5
|
+
// This file is part of the RDKit.
|
|
6
|
+
// The contents are covered by the terms of the BSD license
|
|
7
|
+
// which is included in the file license.txt, found at the root
|
|
8
|
+
// of the RDKit source tree.
|
|
9
|
+
//
|
|
10
|
+
#include <RDGeneral/export.h>
|
|
11
|
+
#pragma once
|
|
12
|
+
#include <vector>
|
|
13
|
+
#include <string>
|
|
14
|
+
#include <stdexcept>
|
|
15
|
+
#include "../RDKitBase.h"
|
|
16
|
+
|
|
17
|
+
namespace RDKit {
|
|
18
|
+
|
|
19
|
+
namespace MMPA {
|
|
20
|
+
//! fragments a Molecule for processing with the Matched Molecular Pairs
|
|
21
|
+
//! MMPA algorithm (Hussain et al)
|
|
22
|
+
/*!
|
|
23
|
+
\param mol Molecule to fragment
|
|
24
|
+
\param result Vector of Core and Sidechain results from the various
|
|
25
|
+
cuts
|
|
26
|
+
\param maxCuts Maximum number of times to cut the molecule to generate
|
|
27
|
+
fragments. A max cut of 3 will fragment with 1,2 and 3
|
|
28
|
+
cuts.
|
|
29
|
+
\param maxCutBonds Set the bond limit for determining which molecules
|
|
30
|
+
to analyze. If a molecule has more than
|
|
31
|
+
this number of cutabble bonds, ignore.
|
|
32
|
+
|
|
33
|
+
\return true if the molecule was fragmented, false otherwise.
|
|
34
|
+
*/
|
|
35
|
+
|
|
36
|
+
RDKIT_MMPA_EXPORT bool fragmentMol(
|
|
37
|
+
const ROMol& mol, std::vector<std::pair<ROMOL_SPTR, ROMOL_SPTR>>& result,
|
|
38
|
+
unsigned int maxCuts = 3, unsigned int maxCutBonds = 20,
|
|
39
|
+
const std::string& pattern = "[#6+0;!$(*=,#[!#6])]!@!=!#[*]");
|
|
40
|
+
|
|
41
|
+
//! fragments a Molecule for processing with the Matched Molecular Pairs
|
|
42
|
+
//! MMPA algorithm (Hussain et al)
|
|
43
|
+
/*!
|
|
44
|
+
\param mol Molecule to fragment
|
|
45
|
+
\param result Vector of Core and Sidechain results from the various
|
|
46
|
+
cuts
|
|
47
|
+
\param minCuts Minimum number of times to cut the molecule to generate
|
|
48
|
+
fragments.
|
|
49
|
+
\param maxCuts Maximum number of times to cut the molecule to generate
|
|
50
|
+
fragments.
|
|
51
|
+
\param maxCutBonds Set the bond limit for determining which molecules
|
|
52
|
+
to analyze. If a molecule has more than
|
|
53
|
+
this number of cutabble bonds, ignore.
|
|
54
|
+
|
|
55
|
+
\return true if the molecule was fragmented, false otherwise.
|
|
56
|
+
*/
|
|
57
|
+
RDKIT_MMPA_EXPORT bool fragmentMol(
|
|
58
|
+
const ROMol& mol, std::vector<std::pair<ROMOL_SPTR, ROMOL_SPTR>>& result,
|
|
59
|
+
unsigned int minCuts, unsigned int maxCuts, unsigned int maxCutBonds,
|
|
60
|
+
const std::string& pattern = "[#6+0;!$(*=,#[!#6])]!@!=!#[*]");
|
|
61
|
+
|
|
62
|
+
//! fragments a Molecule for processing with the Matched Molecular Pairs
|
|
63
|
+
//! MMPA algorithm (Hussain et al)
|
|
64
|
+
/*!
|
|
65
|
+
\param mol Molecule to fragment
|
|
66
|
+
\param result Vector of Core and Sidechain results from the various
|
|
67
|
+
cuts
|
|
68
|
+
\param bondsToCut Vector of bond indices to use as cut points
|
|
69
|
+
\param minCuts Minimum number of times to cut the molecule to generate
|
|
70
|
+
fragments.
|
|
71
|
+
\param maxCuts Maximum number of times to cut the molecule to generate
|
|
72
|
+
fragments.
|
|
73
|
+
\return true if the molecule was fragmented, false otherwise.
|
|
74
|
+
*/
|
|
75
|
+
RDKIT_MMPA_EXPORT bool fragmentMol(
|
|
76
|
+
const ROMol& mol, std::vector<std::pair<ROMOL_SPTR, ROMOL_SPTR>>& result,
|
|
77
|
+
const std::vector<unsigned int>& bondsToCut, unsigned int minCuts = 1,
|
|
78
|
+
unsigned int maxCuts = 3);
|
|
79
|
+
|
|
80
|
+
} // namespace MMPA
|
|
81
|
+
} // namespace RDKit
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright (C) 2001-2006 Rational Discovery LLC
|
|
3
|
+
//
|
|
4
|
+
// @@ All Rights Reserved @@
|
|
5
|
+
// This file is part of the RDKit.
|
|
6
|
+
// The contents are covered by the terms of the BSD license
|
|
7
|
+
// which is included in the file license.txt, found at the root
|
|
8
|
+
// of the RDKit source tree.
|
|
9
|
+
//
|
|
10
|
+
#include <RDGeneral/export.h>
|
|
11
|
+
#ifndef _RD_ALIGNMOLECULES_H_
|
|
12
|
+
#define _RD_ALIGNMOLECULES_H_
|
|
13
|
+
|
|
14
|
+
#include <Geometry/Transform3D.h>
|
|
15
|
+
#include <Numerics/Vector.h>
|
|
16
|
+
#include <vector>
|
|
17
|
+
|
|
18
|
+
namespace RDKit {
|
|
19
|
+
typedef std::vector<std::pair<int, int>> MatchVectType;
|
|
20
|
+
|
|
21
|
+
class Conformer;
|
|
22
|
+
class ROMol;
|
|
23
|
+
namespace MolAlign {
|
|
24
|
+
class RDKIT_MOLALIGN_EXPORT MolAlignException : public std::exception {
|
|
25
|
+
public:
|
|
26
|
+
//! construct with an error message
|
|
27
|
+
MolAlignException(const char *msg) : _msg(msg) {}
|
|
28
|
+
//! construct with an error message
|
|
29
|
+
MolAlignException(const std::string msg) : _msg(msg) {}
|
|
30
|
+
//! get the error message
|
|
31
|
+
const char *what() const noexcept override { return _msg.c_str(); }
|
|
32
|
+
~MolAlignException() noexcept override = default;
|
|
33
|
+
|
|
34
|
+
private:
|
|
35
|
+
std::string _msg;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
//! Alignment functions
|
|
39
|
+
|
|
40
|
+
//! Compute the transformation required to align a molecule
|
|
41
|
+
/*!
|
|
42
|
+
The 3D transformation required to align the specied conformation in the probe
|
|
43
|
+
molecule
|
|
44
|
+
to a specified conformation in the reference molecule is computed so that the
|
|
45
|
+
root mean
|
|
46
|
+
squared distance between a specified set of atoms is minimized
|
|
47
|
+
|
|
48
|
+
\param prbMol molecule that is to be aligned
|
|
49
|
+
\param refMol molecule used as the reference for the alignment
|
|
50
|
+
\param trans storage for the computed transform
|
|
51
|
+
\param prbCid ID of the conformation in the probe to be used
|
|
52
|
+
for the alignment (defaults to first conformation)
|
|
53
|
+
\param refCid ID of the conformation in the ref molecule to which
|
|
54
|
+
the alignment is computed (defaults to first conformation)
|
|
55
|
+
\param atomMap a vector of pairs of atom IDs (probe AtomId, ref AtomId)
|
|
56
|
+
used to compute the alignments. If this mapping is
|
|
57
|
+
not specified an attempt is made to generate on by
|
|
58
|
+
substructure matching
|
|
59
|
+
\param weights Optionally specify weights for each of the atom pairs
|
|
60
|
+
\param reflect if true reflect the conformation of the probe molecule
|
|
61
|
+
\param maxIters maximum number of iteration used in mimizing the RMSD
|
|
62
|
+
|
|
63
|
+
<b>Returns</b>
|
|
64
|
+
RMSD value
|
|
65
|
+
*/
|
|
66
|
+
RDKIT_MOLALIGN_EXPORT double getAlignmentTransform(
|
|
67
|
+
const ROMol &prbMol, const ROMol &refMol, RDGeom::Transform3D &trans,
|
|
68
|
+
int prbCid = -1, int refCid = -1, const MatchVectType *atomMap = nullptr,
|
|
69
|
+
const RDNumeric::DoubleVector *weights = nullptr, bool reflect = false,
|
|
70
|
+
unsigned int maxIters = 50);
|
|
71
|
+
|
|
72
|
+
//! Optimally (minimum RMSD) align a molecule to another molecule
|
|
73
|
+
/*!
|
|
74
|
+
The 3D transformation required to align the specied conformation in the probe
|
|
75
|
+
molecule
|
|
76
|
+
to a specified conformation in the reference molecule is computed so that the
|
|
77
|
+
root mean
|
|
78
|
+
squared distance between a specified set of atoms is minimized. This
|
|
79
|
+
transforms is them
|
|
80
|
+
applied to the specified conformation in the probe molecule
|
|
81
|
+
|
|
82
|
+
\param prbMol molecule that is to be aligned
|
|
83
|
+
\param refMol molecule used as the reference for the alignment
|
|
84
|
+
\param prbCid ID of the conformation in the probe to be used
|
|
85
|
+
for the alignment (defaults to first conformation)
|
|
86
|
+
\param refCid ID of the conformation in the ref molecule to which
|
|
87
|
+
the alignment is computed (defaults to first conformation)
|
|
88
|
+
\param atomMap a vector of pairs of atom IDs (probe AtomId, ref AtomId)
|
|
89
|
+
used to compute the alignments. If this mapping is
|
|
90
|
+
not specified an attempt is made to generate on by
|
|
91
|
+
substructure matching
|
|
92
|
+
\param weights Optionally specify weights for each of the atom pairs
|
|
93
|
+
\param reflect if true reflect the conformation of the probe molecule
|
|
94
|
+
\param maxIters maximum number of iteration used in mimizing the RMSD
|
|
95
|
+
|
|
96
|
+
<b>Returns</b>
|
|
97
|
+
RMSD value
|
|
98
|
+
*/
|
|
99
|
+
RDKIT_MOLALIGN_EXPORT double alignMol(
|
|
100
|
+
ROMol &prbMol, const ROMol &refMol, int prbCid = -1, int refCid = -1,
|
|
101
|
+
const MatchVectType *atomMap = nullptr,
|
|
102
|
+
const RDNumeric::DoubleVector *weights = nullptr, bool reflect = false,
|
|
103
|
+
unsigned int maxIters = 50);
|
|
104
|
+
|
|
105
|
+
//! Returns the optimal RMS for aligning two molecules, taking
|
|
106
|
+
/// symmetry into account. As a side-effect, the probe molecule is
|
|
107
|
+
/// left in the aligned state.
|
|
108
|
+
/*!
|
|
109
|
+
This function will attempt to align all permutations of matching atom
|
|
110
|
+
orders in both molecules, for some molecules it will lead to 'combinatorial
|
|
111
|
+
explosion' especially if hydrogens are present.
|
|
112
|
+
Use 'RDKit::MolAlign::alignMol' to align molecules without changing the
|
|
113
|
+
atom order.
|
|
114
|
+
|
|
115
|
+
\param probeMol the molecule to be aligned to the reference
|
|
116
|
+
\param refMol the reference molecule
|
|
117
|
+
\param probeId (optional) probe conformation to use
|
|
118
|
+
\param refId (optional) reference conformation to use
|
|
119
|
+
\param map (optional) a vector of vectors of pairs of atom IDs
|
|
120
|
+
(probe AtomId, ref AtomId) used to compute the alignments.
|
|
121
|
+
If not provided, these will be generated using a
|
|
122
|
+
substructure search.
|
|
123
|
+
\param maxMatches (optional) if map is empty, this will be the max number of
|
|
124
|
+
matches found in a SubstructMatch().
|
|
125
|
+
|
|
126
|
+
<b>Returns</b>
|
|
127
|
+
Best RMSD value found
|
|
128
|
+
*/
|
|
129
|
+
RDKIT_MOLALIGN_EXPORT double getBestRMS(
|
|
130
|
+
ROMol &probeMol, ROMol &refMol, int probeId = -1, int refId = -1,
|
|
131
|
+
const std::vector<MatchVectType> &map = std::vector<MatchVectType>(),
|
|
132
|
+
int maxMatches = 1e6);
|
|
133
|
+
|
|
134
|
+
//! Returns the RMS between two molecules, taking symmetry into account.
|
|
135
|
+
/*!
|
|
136
|
+
This function will attempt to align all permutations of matching atom
|
|
137
|
+
orders in both molecules, for some molecules it will lead to 'combinatorial
|
|
138
|
+
explosion' especially if hydrogens are present.
|
|
139
|
+
|
|
140
|
+
\param probeMol the molecule to be aligned to the reference
|
|
141
|
+
\param refMol the reference molecule
|
|
142
|
+
\param probeId (optional) probe conformation to use
|
|
143
|
+
\param refId (optional) reference conformation to use
|
|
144
|
+
\param map (optional) a vector of vectors of pairs of atom IDs
|
|
145
|
+
(probe AtomId, ref AtomId) used to compute the alignments.
|
|
146
|
+
If not provided, these will be generated using a
|
|
147
|
+
substructure search.
|
|
148
|
+
\param maxMatches (optional) if map is empty, this will be the max number of
|
|
149
|
+
matches found in a SubstructMatch().
|
|
150
|
+
\param weights (optional) weights for each pair of atom.
|
|
151
|
+
|
|
152
|
+
<b>Returns</b>
|
|
153
|
+
Best RMSD value found
|
|
154
|
+
*/
|
|
155
|
+
RDKIT_MOLALIGN_EXPORT double CalcRMS(
|
|
156
|
+
ROMol &probeMol, const ROMol &refMol, int prbCid = -1, int refCid = -1,
|
|
157
|
+
const std::vector<MatchVectType> &map = std::vector<MatchVectType>(),
|
|
158
|
+
int maxMatches = 1e6, const RDNumeric::DoubleVector *weights = nullptr);
|
|
159
|
+
|
|
160
|
+
//! Align the conformations of a molecule using a common set of atoms. If
|
|
161
|
+
/// the molecules contains queries, then the queries must also match exactly.
|
|
162
|
+
|
|
163
|
+
/*!
|
|
164
|
+
\param mol The molecule of interest.
|
|
165
|
+
\param atomIds vector of atoms to be used to generate the alignment.
|
|
166
|
+
All atoms will be used is not specified
|
|
167
|
+
\param confIds vector of conformations to align - defaults to all
|
|
168
|
+
\param weights vector of weights to applied to particular atom pairs
|
|
169
|
+
defaults to all weights = 1
|
|
170
|
+
\param reflect toggles reflecting (about the origin) the alignment
|
|
171
|
+
\param maxIters the maximum number of iterations to attempt
|
|
172
|
+
\param RMSlist if nonzero, this will be used to return the RMS values
|
|
173
|
+
between the reference conformation and the other aligned
|
|
174
|
+
conformations
|
|
175
|
+
*/
|
|
176
|
+
RDKIT_MOLALIGN_EXPORT void alignMolConformers(
|
|
177
|
+
ROMol &mol, const std::vector<unsigned int> *atomIds = nullptr,
|
|
178
|
+
const std::vector<unsigned int> *confIds = nullptr,
|
|
179
|
+
const RDNumeric::DoubleVector *weights = nullptr, bool reflect = false,
|
|
180
|
+
unsigned int maxIters = 50, std::vector<double> *RMSlist = nullptr);
|
|
181
|
+
} // namespace MolAlign
|
|
182
|
+
} // namespace RDKit
|
|
183
|
+
#endif
|