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,121 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright (C) 2004-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_BOUNDS_MATRIX_H__
|
|
12
|
+
#define __RD_BOUNDS_MATRIX_H__
|
|
13
|
+
|
|
14
|
+
#include <RDGeneral/Invariant.h>
|
|
15
|
+
#include <boost/smart_ptr.hpp>
|
|
16
|
+
#include <iostream>
|
|
17
|
+
#include <iomanip>
|
|
18
|
+
#include <Numerics/SquareMatrix.h>
|
|
19
|
+
|
|
20
|
+
namespace DistGeom {
|
|
21
|
+
//! Class to store the distance bound
|
|
22
|
+
/*!
|
|
23
|
+
Basically a N by N matrix
|
|
24
|
+
with lower distance bounds on the lower traingle and upper bounds in the upper
|
|
25
|
+
triangle
|
|
26
|
+
*/
|
|
27
|
+
class RDKIT_DISTGEOMETRY_EXPORT BoundsMatrix
|
|
28
|
+
: public RDNumeric::SquareMatrix<double> {
|
|
29
|
+
public:
|
|
30
|
+
typedef boost::shared_array<double> DATA_SPTR;
|
|
31
|
+
|
|
32
|
+
explicit BoundsMatrix(unsigned int N)
|
|
33
|
+
: RDNumeric::SquareMatrix<double>(N, 0.0) {}
|
|
34
|
+
BoundsMatrix(unsigned int N, DATA_SPTR data)
|
|
35
|
+
: RDNumeric::SquareMatrix<double>(N, data) {}
|
|
36
|
+
|
|
37
|
+
//! Get the upper bound between points i and j
|
|
38
|
+
inline double getUpperBound(unsigned int i, unsigned int j) const {
|
|
39
|
+
URANGE_CHECK(i, d_nRows);
|
|
40
|
+
URANGE_CHECK(j, d_nCols);
|
|
41
|
+
|
|
42
|
+
if (i < j) {
|
|
43
|
+
return getVal(i, j);
|
|
44
|
+
} else {
|
|
45
|
+
return getVal(j, i);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
//! Set the lower bound between points i and j
|
|
50
|
+
inline void setUpperBound(unsigned int i, unsigned int j, double val) {
|
|
51
|
+
URANGE_CHECK(i, d_nRows);
|
|
52
|
+
URANGE_CHECK(j, d_nCols);
|
|
53
|
+
CHECK_INVARIANT(val >= 0.0, "Negative upper bound");
|
|
54
|
+
if (i < j) {
|
|
55
|
+
setVal(i, j, val);
|
|
56
|
+
} else {
|
|
57
|
+
setVal(j, i, val);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
//! Set the upper bound between points i and j only if it is better than
|
|
62
|
+
//! previously existing value (i.e. the new value is smaller)
|
|
63
|
+
inline void setUpperBoundIfBetter(unsigned int i, unsigned int j,
|
|
64
|
+
double val) {
|
|
65
|
+
if ((val < getUpperBound(i, j)) && (val > getLowerBound(i, j))) {
|
|
66
|
+
setUpperBound(i, j, val);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
//! Set the lower bound between points i and j
|
|
71
|
+
inline void setLowerBound(unsigned int i, unsigned int j, double val) {
|
|
72
|
+
URANGE_CHECK(i, d_nRows);
|
|
73
|
+
URANGE_CHECK(j, d_nCols);
|
|
74
|
+
CHECK_INVARIANT(val >= 0.0, "Negative lower bound");
|
|
75
|
+
if (i < j) {
|
|
76
|
+
setVal(j, i, val);
|
|
77
|
+
} else {
|
|
78
|
+
setVal(i, j, val);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
//! Set the lower bound between points i and j only if it is better than
|
|
83
|
+
//! previously existing value (i.e. the new value is larger)
|
|
84
|
+
inline void setLowerBoundIfBetter(unsigned int i, unsigned int j,
|
|
85
|
+
double val) {
|
|
86
|
+
if ((val > getLowerBound(i, j)) && (val < getUpperBound(i, j))) {
|
|
87
|
+
setLowerBound(i, j, val);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
//! Get the lower bound between points i and j
|
|
92
|
+
inline double getLowerBound(unsigned int i, unsigned int j) const {
|
|
93
|
+
URANGE_CHECK(i, d_nRows);
|
|
94
|
+
URANGE_CHECK(j, d_nCols);
|
|
95
|
+
|
|
96
|
+
if (i < j) {
|
|
97
|
+
return getVal(j, i);
|
|
98
|
+
} else {
|
|
99
|
+
return getVal(i, j);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
//! Do a simple check of the current bounds - i.e. all lower bounds are
|
|
104
|
+
//! smaller than the existing upper bounds
|
|
105
|
+
inline bool checkValid() const {
|
|
106
|
+
unsigned int i, j;
|
|
107
|
+
for (i = 1; i < d_nRows; i++) {
|
|
108
|
+
for (j = 0; j < i; j++) {
|
|
109
|
+
if (getUpperBound(i, j) < getLowerBound(i, j)) {
|
|
110
|
+
return false;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
return true;
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
typedef boost::shared_ptr<BoundsMatrix> BoundsMatPtr;
|
|
119
|
+
} // namespace DistGeom
|
|
120
|
+
|
|
121
|
+
#endif
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright (C) 2004-2008 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
|
+
#include <RDGeneral/export.h>
|
|
11
|
+
#ifndef __RD_CHIRAL_SET_H__
|
|
12
|
+
#define __RD_CHIRAL_SET_H__
|
|
13
|
+
|
|
14
|
+
#include <RDGeneral/Invariant.h>
|
|
15
|
+
#include <boost/smart_ptr.hpp>
|
|
16
|
+
#include <vector>
|
|
17
|
+
|
|
18
|
+
namespace DistGeom {
|
|
19
|
+
|
|
20
|
+
/*! \brief Class used to store a quartet of points and chiral volume bounds on
|
|
21
|
+
*them
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
class RDKIT_DISTGEOMETRY_EXPORT ChiralSet {
|
|
25
|
+
public:
|
|
26
|
+
unsigned int d_idx0; // the centroid
|
|
27
|
+
unsigned int d_idx1;
|
|
28
|
+
unsigned int d_idx2;
|
|
29
|
+
unsigned int d_idx3;
|
|
30
|
+
unsigned int d_idx4;
|
|
31
|
+
double d_volumeLowerBound;
|
|
32
|
+
double d_volumeUpperBound;
|
|
33
|
+
|
|
34
|
+
ChiralSet(unsigned int pid0, unsigned int pid1, unsigned int pid2,
|
|
35
|
+
unsigned int pid3, unsigned int pid4, double lowerVolBound,
|
|
36
|
+
double upperVolBound)
|
|
37
|
+
: d_idx0(pid0),
|
|
38
|
+
d_idx1(pid1),
|
|
39
|
+
d_idx2(pid2),
|
|
40
|
+
d_idx3(pid3),
|
|
41
|
+
d_idx4(pid4),
|
|
42
|
+
d_volumeLowerBound(lowerVolBound),
|
|
43
|
+
d_volumeUpperBound(upperVolBound) {
|
|
44
|
+
CHECK_INVARIANT(lowerVolBound <= upperVolBound, "Inconsistent bounds\n");
|
|
45
|
+
d_volumeLowerBound = lowerVolBound;
|
|
46
|
+
d_volumeUpperBound = upperVolBound;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
inline double getUpperVolumeBound() const { return d_volumeUpperBound; }
|
|
50
|
+
|
|
51
|
+
inline double getLowerVolumeBound() const { return d_volumeLowerBound; }
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
typedef boost::shared_ptr<ChiralSet> ChiralSetPtr;
|
|
55
|
+
typedef std::vector<ChiralSetPtr> VECT_CHIRALSET;
|
|
56
|
+
} // namespace DistGeom
|
|
57
|
+
|
|
58
|
+
#endif
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Created by Santosh Putta, Nov 2006
|
|
3
|
+
//
|
|
4
|
+
#include <RDGeneral/export.h>
|
|
5
|
+
#ifndef __RD_CHIRALVIOLATIONCONTRIB_H__
|
|
6
|
+
#define __RD_CHIRALVIOLATIONCONTRIB_H__
|
|
7
|
+
|
|
8
|
+
#include <ForceField/Contrib.h>
|
|
9
|
+
#include <Geometry/point.h>
|
|
10
|
+
|
|
11
|
+
namespace DistGeom {
|
|
12
|
+
class ChiralSet;
|
|
13
|
+
|
|
14
|
+
//! A term to capture the violation of chirality at an atom center
|
|
15
|
+
//!
|
|
16
|
+
class RDKIT_DISTGEOMETRY_EXPORT ChiralViolationContrib
|
|
17
|
+
: public ForceFields::ForceFieldContrib {
|
|
18
|
+
public:
|
|
19
|
+
ChiralViolationContrib() {}
|
|
20
|
+
|
|
21
|
+
//! Constructor
|
|
22
|
+
/*!
|
|
23
|
+
\param owner pointer to the owning forcefield
|
|
24
|
+
\param cset a chiral set containing the four chiral atom ids (in
|
|
25
|
+
sequence)
|
|
26
|
+
and the upper and lower limits on the signed chiral volume
|
|
27
|
+
\param weight (optional) the weight to be used for this contrib
|
|
28
|
+
|
|
29
|
+
*/
|
|
30
|
+
ChiralViolationContrib(ForceFields::ForceField *owner, const ChiralSet *cset,
|
|
31
|
+
double weight = 1.0);
|
|
32
|
+
|
|
33
|
+
//! return the contribution of this contrib to the energy of a given state
|
|
34
|
+
double getEnergy(double *pos) const override;
|
|
35
|
+
|
|
36
|
+
//! calculate the contribution of this contrib to the gradient at a given
|
|
37
|
+
/// state
|
|
38
|
+
void getGrad(double *pos, double *grad) const override;
|
|
39
|
+
ChiralViolationContrib *copy() const override {
|
|
40
|
+
return new ChiralViolationContrib(*this);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
static double calcChiralVolume(unsigned int idx1, unsigned int idx2,
|
|
44
|
+
unsigned int idx3, unsigned int idx4,
|
|
45
|
+
const double *pos, unsigned int dim) {
|
|
46
|
+
// even if we are minimizing in higher dimension the chiral volume is
|
|
47
|
+
// calculated using only the first 3 dimensions
|
|
48
|
+
RDGeom::Point3D v1(pos[idx1 * dim] - pos[idx4 * dim],
|
|
49
|
+
pos[idx1 * dim + 1] - pos[idx4 * dim + 1],
|
|
50
|
+
pos[idx1 * dim + 2] - pos[idx4 * dim + 2]);
|
|
51
|
+
|
|
52
|
+
RDGeom::Point3D v2(pos[idx2 * dim] - pos[idx4 * dim],
|
|
53
|
+
pos[idx2 * dim + 1] - pos[idx4 * dim + 1],
|
|
54
|
+
pos[idx2 * dim + 2] - pos[idx4 * dim + 2]);
|
|
55
|
+
|
|
56
|
+
RDGeom::Point3D v3(pos[idx3 * dim] - pos[idx4 * dim],
|
|
57
|
+
pos[idx3 * dim + 1] - pos[idx4 * dim + 1],
|
|
58
|
+
pos[idx3 * dim + 2] - pos[idx4 * dim + 2]);
|
|
59
|
+
|
|
60
|
+
RDGeom::Point3D v2xv3 = v2.crossProduct(v3);
|
|
61
|
+
|
|
62
|
+
double vol = v1.dotProduct(v2xv3);
|
|
63
|
+
return vol;
|
|
64
|
+
}
|
|
65
|
+
static double calcChiralVolume(unsigned int idx1, unsigned int idx2,
|
|
66
|
+
unsigned int idx3, unsigned int idx4,
|
|
67
|
+
const RDGeom::PointPtrVect &pts) {
|
|
68
|
+
// even if we are minimizing in higher dimension the chiral volume is
|
|
69
|
+
// calculated using only the first 3 dimensions
|
|
70
|
+
RDGeom::Point3D v1((*pts[idx1])[0] - (*pts[idx4])[0],
|
|
71
|
+
(*pts[idx1])[1] - (*pts[idx4])[1],
|
|
72
|
+
(*pts[idx1])[2] - (*pts[idx4])[2]);
|
|
73
|
+
|
|
74
|
+
RDGeom::Point3D v2((*pts[idx2])[0] - (*pts[idx4])[0],
|
|
75
|
+
(*pts[idx2])[1] - (*pts[idx4])[1],
|
|
76
|
+
(*pts[idx2])[2] - (*pts[idx4])[2]);
|
|
77
|
+
|
|
78
|
+
RDGeom::Point3D v3((*pts[idx3])[0] - (*pts[idx4])[0],
|
|
79
|
+
(*pts[idx3])[1] - (*pts[idx4])[1],
|
|
80
|
+
(*pts[idx3])[2] - (*pts[idx4])[2]);
|
|
81
|
+
|
|
82
|
+
RDGeom::Point3D v2xv3 = v2.crossProduct(v3);
|
|
83
|
+
|
|
84
|
+
double vol = v1.dotProduct(v2xv3);
|
|
85
|
+
return vol;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
private:
|
|
89
|
+
unsigned int d_idx1{0}, d_idx2{0}, d_idx3{0}, d_idx4{0};
|
|
90
|
+
double d_volLower{0.0};
|
|
91
|
+
double d_volUpper{0.0};
|
|
92
|
+
double d_weight{0.0};
|
|
93
|
+
};
|
|
94
|
+
} // namespace DistGeom
|
|
95
|
+
|
|
96
|
+
#endif
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright (C) 2004-2019 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
|
+
#include <RDGeneral/export.h>
|
|
11
|
+
#ifndef _RD_DISTGEOMUTILS_H_
|
|
12
|
+
#define _RD_DISTGEOMUTILS_H_
|
|
13
|
+
|
|
14
|
+
#include "BoundsMatrix.h"
|
|
15
|
+
#include <Numerics/SymmMatrix.h>
|
|
16
|
+
#include <map>
|
|
17
|
+
#include <Geometry/point.h>
|
|
18
|
+
#include "ChiralSet.h"
|
|
19
|
+
#include <RDGeneral/utils.h>
|
|
20
|
+
#include <boost/dynamic_bitset.hpp>
|
|
21
|
+
|
|
22
|
+
namespace ForceFields {
|
|
23
|
+
class ForceField;
|
|
24
|
+
namespace CrystalFF {
|
|
25
|
+
struct CrystalFFDetails;
|
|
26
|
+
}
|
|
27
|
+
} // namespace ForceFields
|
|
28
|
+
|
|
29
|
+
namespace DistGeom {
|
|
30
|
+
|
|
31
|
+
//! Pick a distance matrix at random such that the
|
|
32
|
+
//! distance satisfy the bounds in the BoundsMatrix
|
|
33
|
+
/*!
|
|
34
|
+
\param mmat Bounds matrix
|
|
35
|
+
\param distmat Storage for randomly chosen distances
|
|
36
|
+
\param seed the random number seed to use
|
|
37
|
+
|
|
38
|
+
\return the largest element of the distance matrix
|
|
39
|
+
*/
|
|
40
|
+
RDKIT_DISTGEOMETRY_EXPORT double pickRandomDistMat(
|
|
41
|
+
const BoundsMatrix &mmat, RDNumeric::SymmMatrix<double> &distmat,
|
|
42
|
+
int seed = -1);
|
|
43
|
+
//! \overload
|
|
44
|
+
RDKIT_DISTGEOMETRY_EXPORT double pickRandomDistMat(
|
|
45
|
+
const BoundsMatrix &mmat, RDNumeric::SymmMatrix<double> &distmat,
|
|
46
|
+
RDKit::double_source_type &rng);
|
|
47
|
+
|
|
48
|
+
//! Compute an initial embedded in 3D based on a distance matrix
|
|
49
|
+
/*!
|
|
50
|
+
This function follows the embed algorithm mentioned in
|
|
51
|
+
"Distance Geometry and Molecular Conformation" by G.M.Crippen and T.F.Havel
|
|
52
|
+
(pages 312-313)
|
|
53
|
+
|
|
54
|
+
\param distmat Distance matrix
|
|
55
|
+
\param positions A vector of pointers to Points to write out the resulting
|
|
56
|
+
coordinates
|
|
57
|
+
\param randNegEig If set to true and if any of the eigen values are negative,
|
|
58
|
+
we will
|
|
59
|
+
pick the corresponding components of the coordinates at
|
|
60
|
+
random
|
|
61
|
+
\param numZeroFail Fail embedding is more this many (or more) eigen values are
|
|
62
|
+
zero
|
|
63
|
+
\param seed the random number seed to use
|
|
64
|
+
|
|
65
|
+
\return true if the embedding was successful
|
|
66
|
+
*/
|
|
67
|
+
RDKIT_DISTGEOMETRY_EXPORT bool computeInitialCoords(
|
|
68
|
+
const RDNumeric::SymmMatrix<double> &distmat,
|
|
69
|
+
RDGeom::PointPtrVect &positions, bool randNegEig = false,
|
|
70
|
+
unsigned int numZeroFail = 2, int seed = -1);
|
|
71
|
+
//! \overload
|
|
72
|
+
RDKIT_DISTGEOMETRY_EXPORT bool computeInitialCoords(
|
|
73
|
+
const RDNumeric::SymmMatrix<double> &distmat,
|
|
74
|
+
RDGeom::PointPtrVect &positions, RDKit::double_source_type &rng,
|
|
75
|
+
bool randNegEig = false, unsigned int numZeroFail = 2);
|
|
76
|
+
|
|
77
|
+
//! places atoms randomly in a box
|
|
78
|
+
/*!
|
|
79
|
+
\param positions A vector of pointers to Points to write out the resulting
|
|
80
|
+
coordinates
|
|
81
|
+
\param boxSize the side-length of the cubic box
|
|
82
|
+
\param seed the random number seed to use
|
|
83
|
+
|
|
84
|
+
\return true if the coordinate generation was successful
|
|
85
|
+
*/
|
|
86
|
+
RDKIT_DISTGEOMETRY_EXPORT bool computeRandomCoords(
|
|
87
|
+
RDGeom::PointPtrVect &positions, double boxSize, int seed = -1);
|
|
88
|
+
//! \overload
|
|
89
|
+
RDKIT_DISTGEOMETRY_EXPORT bool computeRandomCoords(
|
|
90
|
+
RDGeom::PointPtrVect &positions, double boxSize,
|
|
91
|
+
RDKit::double_source_type &rng);
|
|
92
|
+
|
|
93
|
+
//! Setup the error function for violation of distance bounds as a forcefield
|
|
94
|
+
/*!
|
|
95
|
+
This is based on function E3 on page 311 of "Distance Geometry in Molecular
|
|
96
|
+
Modeling" Jeffrey M.Blaney and J.Scott Dixon, Review in Computational
|
|
97
|
+
Chemistry,
|
|
98
|
+
Volume V
|
|
99
|
+
|
|
100
|
+
\param mmat Distance bounds matrix
|
|
101
|
+
\param positions A vector of pointers to Points to write out the
|
|
102
|
+
resulting coordinates
|
|
103
|
+
\param csets The vector of chiral points (type: ChiralSet)
|
|
104
|
+
\param weightChiral weight to be used to enforce chirality
|
|
105
|
+
\param weightFourthDim another chiral weight
|
|
106
|
+
\param extraWeights an optional set of weights for distance bounds
|
|
107
|
+
violations
|
|
108
|
+
\param basinSizeTol Optional: any distance bound with a basin (distance
|
|
109
|
+
between max and
|
|
110
|
+
min bounds) larger than this value will not be included
|
|
111
|
+
in the force
|
|
112
|
+
field used to cleanup the structure.
|
|
113
|
+
|
|
114
|
+
\return a pointer to a ForceField suitable for cleaning up the violations.
|
|
115
|
+
<b>NOTE:</b> the caller is responsible for deleting this force field.
|
|
116
|
+
|
|
117
|
+
*/
|
|
118
|
+
RDKIT_DISTGEOMETRY_EXPORT ForceFields::ForceField *constructForceField(
|
|
119
|
+
const BoundsMatrix &mmat, RDGeom::PointPtrVect &positions,
|
|
120
|
+
const VECT_CHIRALSET &csets, double weightChiral = 1.0,
|
|
121
|
+
double weightFourthDim = 0.1,
|
|
122
|
+
std::map<std::pair<int, int>, double> *extraWeights = nullptr,
|
|
123
|
+
double basinSizeTol = 5.0, boost::dynamic_bitset<> *fixedPts = nullptr);
|
|
124
|
+
|
|
125
|
+
//! Force field with experimental torsion angle preferences and 1-2/1-3 distance
|
|
126
|
+
/// constraints
|
|
127
|
+
/*!
|
|
128
|
+
|
|
129
|
+
\param mmat Distance bounds matrix
|
|
130
|
+
\param positions A vector of pointers to 3D Points to write out the
|
|
131
|
+
resulting coordinates
|
|
132
|
+
\param etkdgDetails Contains information about the ETKDG force field
|
|
133
|
+
|
|
134
|
+
<b>NOTE:</b> the caller is responsible for deleting this force field.
|
|
135
|
+
|
|
136
|
+
*/
|
|
137
|
+
RDKIT_DISTGEOMETRY_EXPORT ForceFields::ForceField *construct3DForceField(
|
|
138
|
+
const BoundsMatrix &mmat, RDGeom::Point3DPtrVect &positions,
|
|
139
|
+
const ForceFields::CrystalFF::CrystalFFDetails &etkdgDetails);
|
|
140
|
+
//! Force field with experimental torsion angle preferences and 1-2/1-3 distance
|
|
141
|
+
/// constraints, as well as atom pairwise Columbic interactions
|
|
142
|
+
/*!
|
|
143
|
+
|
|
144
|
+
\param mmat Distance bounds matrix
|
|
145
|
+
\param positions A vector of pointers to 3D Points to write out the
|
|
146
|
+
resulting coordinates
|
|
147
|
+
\param etkdgDetails Contains information about the ETKDG force field
|
|
148
|
+
\param CPCI Contains which atom pair(s) have what strength of
|
|
149
|
+
attractive/repulsive electrostatic interaction(s)
|
|
150
|
+
|
|
151
|
+
<b>NOTE:</b> the caller is responsible for deleting this force field.
|
|
152
|
+
|
|
153
|
+
*/
|
|
154
|
+
RDKIT_DISTGEOMETRY_EXPORT ForceFields::ForceField *construct3DForceField(
|
|
155
|
+
const BoundsMatrix &mmat, RDGeom::Point3DPtrVect &positions,
|
|
156
|
+
const ForceFields::CrystalFF::CrystalFFDetails &etkdgDetails,
|
|
157
|
+
const std::map<std::pair<unsigned int, unsigned int>, double> &CPCI);
|
|
158
|
+
//! Force field with experimental torsion angle preferences and 1-2/1-3 distance
|
|
159
|
+
/// constraints
|
|
160
|
+
/*!
|
|
161
|
+
|
|
162
|
+
\param mmat Distance bounds matrix
|
|
163
|
+
\param positions A vector of pointers to 3D Points to write out the
|
|
164
|
+
resulting coordinates
|
|
165
|
+
\param etkdgDetails Contains information about the ETKDG force field
|
|
166
|
+
|
|
167
|
+
<b>NOTE:</b> the caller is responsible for deleting this force field.
|
|
168
|
+
|
|
169
|
+
*/
|
|
170
|
+
RDKIT_DISTGEOMETRY_EXPORT ForceFields::ForceField *constructPlain3DForceField(
|
|
171
|
+
const BoundsMatrix &mmat, RDGeom::Point3DPtrVect &positions,
|
|
172
|
+
const ForceFields::CrystalFF::CrystalFFDetails &etkdgDetails);
|
|
173
|
+
|
|
174
|
+
//! Force field with only improper terms
|
|
175
|
+
/*!
|
|
176
|
+
|
|
177
|
+
\param mmat Distance bounds matrix
|
|
178
|
+
\param positions A vector of pointers to 3D Points to write out the
|
|
179
|
+
resulting coordinates \param improperAtoms A list of groups of 4 atom
|
|
180
|
+
indices for inversion terms \param atomNums A list of atomic numbers
|
|
181
|
+
for all atoms in the molecule
|
|
182
|
+
|
|
183
|
+
\return a pointer to a ForceField with improper terms
|
|
184
|
+
<b>NOTE:</b> the caller is responsible for deleting this force field.
|
|
185
|
+
|
|
186
|
+
*/
|
|
187
|
+
RDKIT_DISTGEOMETRY_EXPORT ForceFields::ForceField *
|
|
188
|
+
construct3DImproperForceField(
|
|
189
|
+
const BoundsMatrix &mmat, RDGeom::Point3DPtrVect &positions,
|
|
190
|
+
const std::vector<std::vector<int>> &improperAtoms,
|
|
191
|
+
const std::vector<int> &atomNums);
|
|
192
|
+
|
|
193
|
+
} // namespace DistGeom
|
|
194
|
+
|
|
195
|
+
#endif
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright (C) 2004-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_DISTVIOLATIONCONTRIB_H__
|
|
12
|
+
#define __RD_DISTVIOLATIONCONTRIB_H__
|
|
13
|
+
|
|
14
|
+
#include <ForceField/Contrib.h>
|
|
15
|
+
|
|
16
|
+
namespace DistGeom {
|
|
17
|
+
//! A term to capture the violation of the upper and lower bounds by
|
|
18
|
+
//! distance between two points
|
|
19
|
+
class RDKIT_DISTGEOMETRY_EXPORT DistViolationContrib
|
|
20
|
+
: public ForceFields::ForceFieldContrib {
|
|
21
|
+
public:
|
|
22
|
+
DistViolationContrib() {}
|
|
23
|
+
|
|
24
|
+
//! Constructor
|
|
25
|
+
/*!
|
|
26
|
+
\param owner pointer to the owning ForceField
|
|
27
|
+
\param idx1 index of end1 in the ForceField's positions
|
|
28
|
+
\param idx2 index of end2 in the ForceField's positions
|
|
29
|
+
\param ub Upper bound on the distance
|
|
30
|
+
\param lb Lower bound on the distance
|
|
31
|
+
\param weight optional weight for this contribution
|
|
32
|
+
*/
|
|
33
|
+
DistViolationContrib(ForceFields::ForceField *owner, unsigned int idx1,
|
|
34
|
+
unsigned int idx2, double ub, double lb,
|
|
35
|
+
double weight = 1.0);
|
|
36
|
+
|
|
37
|
+
double getEnergy(double *pos) const override;
|
|
38
|
+
|
|
39
|
+
void getGrad(double *pos, double *grad) const override;
|
|
40
|
+
DistViolationContrib *copy() const override {
|
|
41
|
+
return new DistViolationContrib(*this);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
private:
|
|
45
|
+
unsigned int d_end1Idx{0}, d_end2Idx{0}; //!< indices of end points
|
|
46
|
+
double d_ub{
|
|
47
|
+
1000.0}; //!< upper bound on the distance between d_end1Idx, d_end2Idx
|
|
48
|
+
double d_lb{
|
|
49
|
+
0.0}; //!< lower bound on the distance between d_end1Idx, d_end2Idx
|
|
50
|
+
double d_weight{1.0}; //!< used to adjust relative contribution weights
|
|
51
|
+
};
|
|
52
|
+
} // namespace DistGeom
|
|
53
|
+
|
|
54
|
+
#endif
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Created by Santosh Putta, Nov 2006
|
|
3
|
+
//
|
|
4
|
+
#include <RDGeneral/export.h>
|
|
5
|
+
#ifndef __RD_FOURTHDIMCONTRIB_H__
|
|
6
|
+
#define __RD_FOURTHDIMCONTRIB_H__
|
|
7
|
+
|
|
8
|
+
#include <RDGeneral/Invariant.h>
|
|
9
|
+
#include <ForceField/Contrib.h>
|
|
10
|
+
#include <ForceField/ForceField.h>
|
|
11
|
+
|
|
12
|
+
namespace DistGeom {
|
|
13
|
+
//! A term used in penalizing chirality violations
|
|
14
|
+
//!
|
|
15
|
+
class RDKIT_DISTGEOMETRY_EXPORT FourthDimContrib
|
|
16
|
+
: public ForceFields::ForceFieldContrib {
|
|
17
|
+
public:
|
|
18
|
+
FourthDimContrib() {}
|
|
19
|
+
|
|
20
|
+
//! Constructor
|
|
21
|
+
/*!
|
|
22
|
+
\param owner pointer to the owning ForceField
|
|
23
|
+
\param idx the index of the atom to be considered
|
|
24
|
+
\param weight (optional) the weight to be used for this contrib
|
|
25
|
+
|
|
26
|
+
*/
|
|
27
|
+
FourthDimContrib(ForceFields::ForceField *owner, unsigned int idx,
|
|
28
|
+
double weight)
|
|
29
|
+
: d_idx(idx), d_weight(weight) {
|
|
30
|
+
PRECONDITION(owner, "bad force field");
|
|
31
|
+
PRECONDITION(owner->dimension() == 4, "force field has wrong dimension");
|
|
32
|
+
dp_forceField = owner;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
//! return the contribution of this contrib to the energy of a given state
|
|
36
|
+
double getEnergy(double *pos) const override {
|
|
37
|
+
PRECONDITION(dp_forceField, "no owner");
|
|
38
|
+
PRECONDITION(dp_forceField->dimension() == 4,
|
|
39
|
+
"force field has wrong dimension");
|
|
40
|
+
PRECONDITION(pos, "bad vector");
|
|
41
|
+
unsigned int pid = d_idx * dp_forceField->dimension() + 3;
|
|
42
|
+
return d_weight * pos[pid] * pos[pid];
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
//! calculate the contribution of this contrib to the gradient at a given
|
|
46
|
+
/// state
|
|
47
|
+
void getGrad(double *pos, double *grad) const override {
|
|
48
|
+
PRECONDITION(dp_forceField, "no owner");
|
|
49
|
+
PRECONDITION(dp_forceField->dimension() == 4,
|
|
50
|
+
"force field has wrong dimension");
|
|
51
|
+
PRECONDITION(pos, "bad vector");
|
|
52
|
+
unsigned int pid = d_idx * dp_forceField->dimension() + 3;
|
|
53
|
+
grad[pid] += d_weight * pos[pid];
|
|
54
|
+
}
|
|
55
|
+
FourthDimContrib *copy() const override {
|
|
56
|
+
return new FourthDimContrib(*this);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
private:
|
|
60
|
+
unsigned int d_idx{0};
|
|
61
|
+
double d_weight{0.0};
|
|
62
|
+
};
|
|
63
|
+
} // namespace DistGeom
|
|
64
|
+
|
|
65
|
+
#endif
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright (C) 2004-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_TRIANGLE_SMOOTH_H__
|
|
12
|
+
#define __RD_TRIANGLE_SMOOTH_H__
|
|
13
|
+
|
|
14
|
+
#include "BoundsMatrix.h"
|
|
15
|
+
|
|
16
|
+
namespace DistGeom {
|
|
17
|
+
//! Smooth the upper and lower bound in a metric matrix so that triangle
|
|
18
|
+
//! inequality is not violated
|
|
19
|
+
/*!
|
|
20
|
+
This an implementation of the O(N^3) algorithm given on pages 252-253 of
|
|
21
|
+
"Distance Geometry and Molecular Conformation" by G.M.Crippen and T.F.Havel
|
|
22
|
+
Research Studies Press, 1988. There are other (slightly) more implementations
|
|
23
|
+
(see pages 301-302 in the above book), but that is for later
|
|
24
|
+
|
|
25
|
+
\param boundsMat A pointer to the distance bounds matrix
|
|
26
|
+
\param tol a tolerance (percent) for errors in the smoothing process
|
|
27
|
+
|
|
28
|
+
*/
|
|
29
|
+
RDKIT_DISTGEOMETRY_EXPORT bool triangleSmoothBounds(BoundsMatrix *boundsMat,
|
|
30
|
+
double tol = 0.);
|
|
31
|
+
//! \overload
|
|
32
|
+
RDKIT_DISTGEOMETRY_EXPORT bool triangleSmoothBounds(BoundsMatPtr boundsMat,
|
|
33
|
+
double tol = 0.);
|
|
34
|
+
} // namespace DistGeom
|
|
35
|
+
|
|
36
|
+
#endif
|