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,366 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright (C) 2003-2022 Greg Landrum and other RDKit contributors
|
|
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_DEPICT_UTILS_H
|
|
12
|
+
#define RD_DEPICT_UTILS_H
|
|
13
|
+
|
|
14
|
+
// REVIEW: remove extra headers here
|
|
15
|
+
#include <RDGeneral/types.h>
|
|
16
|
+
#include <GraphMol/RDKitBase.h>
|
|
17
|
+
#include <GraphMol/RWMol.h>
|
|
18
|
+
#include <GraphMol/ROMol.h>
|
|
19
|
+
#include <Geometry/Transform2D.h>
|
|
20
|
+
#include <Geometry/point.h>
|
|
21
|
+
#include <queue>
|
|
22
|
+
|
|
23
|
+
namespace RDDepict {
|
|
24
|
+
|
|
25
|
+
RDKIT_DEPICTOR_EXPORT extern double BOND_LEN;
|
|
26
|
+
RDKIT_DEPICTOR_EXPORT extern double COLLISION_THRES;
|
|
27
|
+
RDKIT_DEPICTOR_EXPORT extern double BOND_THRES;
|
|
28
|
+
RDKIT_DEPICTOR_EXPORT extern double ANGLE_OPEN;
|
|
29
|
+
RDKIT_DEPICTOR_EXPORT extern unsigned int MAX_COLL_ITERS;
|
|
30
|
+
RDKIT_DEPICTOR_EXPORT extern double HETEROATOM_COLL_SCALE;
|
|
31
|
+
RDKIT_DEPICTOR_EXPORT extern unsigned int NUM_BONDS_FLIPS;
|
|
32
|
+
|
|
33
|
+
typedef std::vector<const RDGeom::Point2D *> VECT_C_POINT;
|
|
34
|
+
|
|
35
|
+
typedef std::pair<int, int> PAIR_I_I;
|
|
36
|
+
typedef std::vector<PAIR_I_I> VECT_PII;
|
|
37
|
+
struct RDKIT_DEPICTOR_EXPORT gtIIPair {
|
|
38
|
+
bool operator()(const PAIR_I_I &pd1, const PAIR_I_I &pd2) const {
|
|
39
|
+
return pd1.first > pd2.first;
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
typedef std::priority_queue<PAIR_I_I, VECT_PII, gtIIPair> PR_QUEUE;
|
|
44
|
+
|
|
45
|
+
typedef std::pair<double, PAIR_I_I> PAIR_D_I_I;
|
|
46
|
+
typedef std::list<PAIR_D_I_I> LIST_PAIR_DII;
|
|
47
|
+
|
|
48
|
+
//! Some utility functions used in generating 2D coordinates
|
|
49
|
+
|
|
50
|
+
//! Embed a ring as a convex polygon in 2D
|
|
51
|
+
/*!
|
|
52
|
+
The process here is very straightforward:
|
|
53
|
+
|
|
54
|
+
We take the center of the ring to lie at the origin, so put the first
|
|
55
|
+
point at the origin and then sweep
|
|
56
|
+
anti-clockwise by an angle A = 360/n for the next point.
|
|
57
|
+
|
|
58
|
+
The length of the arm (l) we want to sweep is easy to compute given the
|
|
59
|
+
bond length (b) we want to use for each bond in the ring (for now
|
|
60
|
+
we will assume that this bond legnth is the same for all bonds in the ring:
|
|
61
|
+
|
|
62
|
+
l = b/sqrt(2*(1 - cos(A))
|
|
63
|
+
|
|
64
|
+
the above formula derives from the triangle formula, where side 'c' is given
|
|
65
|
+
in terms of sides 'a' and 'b' as:
|
|
66
|
+
|
|
67
|
+
c = a^2 + b^2 - 2.a.b.cos(A)
|
|
68
|
+
|
|
69
|
+
where A is the angle between a and b
|
|
70
|
+
*/
|
|
71
|
+
RDKIT_DEPICTOR_EXPORT RDGeom::INT_POINT2D_MAP embedRing(
|
|
72
|
+
const RDKit::INT_VECT &ring);
|
|
73
|
+
|
|
74
|
+
RDKIT_DEPICTOR_EXPORT void transformPoints(RDGeom::INT_POINT2D_MAP &nringCor,
|
|
75
|
+
const RDGeom::Transform2D &trans);
|
|
76
|
+
|
|
77
|
+
//! Find a point that bisects the angle at rcr
|
|
78
|
+
/*!
|
|
79
|
+
The new point lies between nb1 and nb2. The line (rcr, newPt) bisects the
|
|
80
|
+
angle 'ang' at rcr
|
|
81
|
+
*/
|
|
82
|
+
RDKIT_DEPICTOR_EXPORT RDGeom::Point2D computeBisectPoint(
|
|
83
|
+
const RDGeom::Point2D &rcr, double ang, const RDGeom::Point2D &nb1,
|
|
84
|
+
const RDGeom::Point2D &nb2);
|
|
85
|
+
|
|
86
|
+
//! Reflect a set of point through the line joining two point
|
|
87
|
+
/*!
|
|
88
|
+
ARGUMENTS:
|
|
89
|
+
\param coordMap a map of <int, point2D> going from atom id to current
|
|
90
|
+
coordinates of the points that need to be reflected:
|
|
91
|
+
The coordinates are overwritten
|
|
92
|
+
\param loc1 the first point of the line that is to be used as a
|
|
93
|
+
mirror
|
|
94
|
+
\param loc2 the second point of the line to be used as a mirror
|
|
95
|
+
*/
|
|
96
|
+
RDKIT_DEPICTOR_EXPORT void reflectPoints(RDGeom::INT_POINT2D_MAP &coordMap,
|
|
97
|
+
const RDGeom::Point2D &loc1,
|
|
98
|
+
const RDGeom::Point2D &loc2);
|
|
99
|
+
|
|
100
|
+
RDKIT_DEPICTOR_EXPORT RDGeom::Point2D reflectPoint(const RDGeom::Point2D &point,
|
|
101
|
+
const RDGeom::Point2D &loc1,
|
|
102
|
+
const RDGeom::Point2D &loc2);
|
|
103
|
+
|
|
104
|
+
//! Set the neighbors yet to added to aid such that the atoms with the most subs
|
|
105
|
+
/// fall on opposite sides
|
|
106
|
+
/*!
|
|
107
|
+
Ok this needs some explanation
|
|
108
|
+
- Let A, B, C, D be the substituent on the central atom X (given
|
|
109
|
+
by atom index aid)
|
|
110
|
+
- also let A be the atom that is already embedded
|
|
111
|
+
- Now we want the order in which the remaining neighbors B,C,D are
|
|
112
|
+
added to X such that the atoms with atom with largest number of
|
|
113
|
+
substituent fall on opposite sides of X so as to minimize atom
|
|
114
|
+
clashes later in the depiction
|
|
115
|
+
|
|
116
|
+
E.g. let say we have the following situation
|
|
117
|
+
<pre>
|
|
118
|
+
B
|
|
119
|
+
| |
|
|
120
|
+
A--X--C
|
|
121
|
+
| |
|
|
122
|
+
--D--
|
|
123
|
+
|
|
|
124
|
+
</pre>
|
|
125
|
+
In this case the number substituent of A, B, C, D are 3, 1, 1,
|
|
126
|
+
4 respectively so want to A and D to go opposite sides and so that
|
|
127
|
+
we draw
|
|
128
|
+
<pre>
|
|
129
|
+
B
|
|
130
|
+
| | |
|
|
131
|
+
A--X--D--
|
|
132
|
+
| | |
|
|
133
|
+
C
|
|
134
|
+
</pre>
|
|
135
|
+
And the correct ordering of the neighbors is B,D,C
|
|
136
|
+
*/
|
|
137
|
+
RDKIT_DEPICTOR_EXPORT RDKit::INT_VECT setNbrOrder(unsigned int aid,
|
|
138
|
+
const RDKit::INT_VECT &nbrs,
|
|
139
|
+
const RDKit::ROMol &mol);
|
|
140
|
+
|
|
141
|
+
//! \brief From a given set of rings find the ring the largest common elements
|
|
142
|
+
/// with other rings
|
|
143
|
+
/*
|
|
144
|
+
Bit of a weird function - this is typically called once we have embedded some
|
|
145
|
+
of the rings in a fused system and we are looking for the ring that must be
|
|
146
|
+
embedded (or merged) next. The heuristic used here is to pick the rings with
|
|
147
|
+
the maximum number of atoms in common with the rings that are already
|
|
148
|
+
embedded.
|
|
149
|
+
|
|
150
|
+
\param doneRings a vector of ring IDs that have been embedded already
|
|
151
|
+
\param fusedRings list of all the rings in the fused system \param nextId
|
|
152
|
+
this is where the ID for the next ring is written
|
|
153
|
+
|
|
154
|
+
\return list of atom ids that are common
|
|
155
|
+
*/
|
|
156
|
+
RDKIT_DEPICTOR_EXPORT RDKit::INT_VECT findNextRingToEmbed(
|
|
157
|
+
const RDKit::INT_VECT &doneRings, const RDKit::VECT_INT_VECT &fusedRings,
|
|
158
|
+
int &nextId);
|
|
159
|
+
|
|
160
|
+
typedef std::pair<int, int> INT_PAIR;
|
|
161
|
+
typedef std::vector<INT_PAIR> INT_PAIR_VECT;
|
|
162
|
+
typedef INT_PAIR_VECT::const_iterator INT_PAIR_VECT_CI;
|
|
163
|
+
|
|
164
|
+
typedef std::pair<double, INT_PAIR> DOUBLE_INT_PAIR;
|
|
165
|
+
|
|
166
|
+
//! Sort a list of atoms by their CIP rank
|
|
167
|
+
/*!
|
|
168
|
+
\param mol molecule of interest
|
|
169
|
+
\param commAtms atoms that need to be ranked
|
|
170
|
+
\param ascending sort to an ascending order or a descending order
|
|
171
|
+
*/
|
|
172
|
+
template <class T>
|
|
173
|
+
RDKIT_DEPICTOR_EXPORT T rankAtomsByRank(const RDKit::ROMol &mol,
|
|
174
|
+
const T &commAtms,
|
|
175
|
+
bool ascending = true);
|
|
176
|
+
|
|
177
|
+
//! computes a subangle for an atom of given hybridization and degree
|
|
178
|
+
/*!
|
|
179
|
+
\param degree the degree of the atom (number of neighbors)
|
|
180
|
+
\param htype the atom's hybridization
|
|
181
|
+
|
|
182
|
+
\return the subangle (in radians)
|
|
183
|
+
*/
|
|
184
|
+
inline double computeSubAngle(unsigned int degree,
|
|
185
|
+
RDKit::Atom::HybridizationType htype) {
|
|
186
|
+
double angle = M_PI;
|
|
187
|
+
switch (htype) {
|
|
188
|
+
case RDKit::Atom::UNSPECIFIED:
|
|
189
|
+
case RDKit::Atom::SP3:
|
|
190
|
+
if (degree == 4) {
|
|
191
|
+
angle = M_PI / 2;
|
|
192
|
+
} else {
|
|
193
|
+
angle = 2 * M_PI / 3;
|
|
194
|
+
}
|
|
195
|
+
break;
|
|
196
|
+
case RDKit::Atom::SP2:
|
|
197
|
+
angle = 2 * M_PI / 3;
|
|
198
|
+
break;
|
|
199
|
+
default:
|
|
200
|
+
angle = 2. * M_PI / degree;
|
|
201
|
+
}
|
|
202
|
+
return angle;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
//! computes the rotation direction between two vectors
|
|
206
|
+
/*!
|
|
207
|
+
|
|
208
|
+
Let:
|
|
209
|
+
|
|
210
|
+
v1 = loc1 - center
|
|
211
|
+
|
|
212
|
+
v2 = loc2 - center
|
|
213
|
+
|
|
214
|
+
If remaining angle(v1, v2) is < 180 and corss(v1, v2) > 0.0 then the rotation
|
|
215
|
+
dir is +1.0
|
|
216
|
+
|
|
217
|
+
else if remAngle(v1, v2) is > 180 and cross(v1, v2) < 0.0 then rotation dir is
|
|
218
|
+
-1.0
|
|
219
|
+
|
|
220
|
+
else if remAngle(v1, v2) is < 180 and cross(v1, v2) < 0.0 then rotation dir is
|
|
221
|
+
-1.0
|
|
222
|
+
|
|
223
|
+
finally if remAngle(v1, v2) is > 180 and cross(v1, v2) < 0.0 then rotation dir
|
|
224
|
+
is +1.0
|
|
225
|
+
|
|
226
|
+
\param center the common point
|
|
227
|
+
\param loc1 endpoint 1
|
|
228
|
+
\param loc2 endpoint 2
|
|
229
|
+
\param remAngle the remaining angle about center in radians
|
|
230
|
+
|
|
231
|
+
\return the rotation direction (1 or -1)
|
|
232
|
+
*/
|
|
233
|
+
inline int rotationDir(const RDGeom::Point2D ¢er,
|
|
234
|
+
const RDGeom::Point2D &loc1, const RDGeom::Point2D &loc2,
|
|
235
|
+
double remAngle) {
|
|
236
|
+
auto pt1 = loc1 - center;
|
|
237
|
+
auto pt2 = loc2 - center;
|
|
238
|
+
auto cross = pt1.x * pt2.y - pt1.y * pt2.x;
|
|
239
|
+
auto diffAngle = M_PI - remAngle;
|
|
240
|
+
cross *= diffAngle;
|
|
241
|
+
if (cross >= 0.0) {
|
|
242
|
+
return -1;
|
|
243
|
+
} else {
|
|
244
|
+
return 1;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
//! computes and return the normal of a vector between two points
|
|
249
|
+
/*!
|
|
250
|
+
\param center the common point
|
|
251
|
+
\param other the endpoint
|
|
252
|
+
|
|
253
|
+
\return the normal
|
|
254
|
+
*/
|
|
255
|
+
inline RDGeom::Point2D computeNormal(const RDGeom::Point2D ¢er,
|
|
256
|
+
const RDGeom::Point2D &other) {
|
|
257
|
+
auto res = other - center;
|
|
258
|
+
res.normalize();
|
|
259
|
+
std::swap(res.x, res.y);
|
|
260
|
+
res.x *= -1;
|
|
261
|
+
return res;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
//! computes the rotation angle between two vectors
|
|
265
|
+
/*!
|
|
266
|
+
\param center the common point
|
|
267
|
+
\param loc1 endpoint 1
|
|
268
|
+
\param loc2 endpoint 2
|
|
269
|
+
|
|
270
|
+
\return the angle (in radians)
|
|
271
|
+
*/
|
|
272
|
+
inline double computeAngle(const RDGeom::Point2D ¢er,
|
|
273
|
+
const RDGeom::Point2D &loc1,
|
|
274
|
+
const RDGeom::Point2D &loc2) {
|
|
275
|
+
auto v1 = loc1 - center;
|
|
276
|
+
auto v2 = loc2 - center;
|
|
277
|
+
return v1.angleTo(v2);
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
//! \brief pick the ring to embed first in a fused system
|
|
281
|
+
/*!
|
|
282
|
+
\param mol the molecule of interest
|
|
283
|
+
\param fusedRings the collection of the molecule's fused rings
|
|
284
|
+
|
|
285
|
+
\return the index of the ring with the least number of substitutions
|
|
286
|
+
*/
|
|
287
|
+
RDKIT_DEPICTOR_EXPORT int pickFirstRingToEmbed(
|
|
288
|
+
const RDKit::ROMol &mol, const RDKit::VECT_INT_VECT &fusedRings);
|
|
289
|
+
|
|
290
|
+
//! \brief find the rotatable bonds on the shortest path between two atoms
|
|
291
|
+
//! we will ignore ring atoms, and double bonds which are marked cis/trans
|
|
292
|
+
/*!
|
|
293
|
+
<b>Note</b> that rotatable in this context doesn't connect to the
|
|
294
|
+
standard chemical definition of a rotatable bond; we're just talking
|
|
295
|
+
about bonds than can be flipped in order to clean up the depiction.
|
|
296
|
+
|
|
297
|
+
\param mol the molecule of interest
|
|
298
|
+
\param aid1 index of the first atom
|
|
299
|
+
\param aid2 index of the second atom
|
|
300
|
+
|
|
301
|
+
\return a set of the indices of the rotatable bonds
|
|
302
|
+
*/
|
|
303
|
+
RDKIT_DEPICTOR_EXPORT RDKit::INT_VECT getRotatableBonds(const RDKit::ROMol &mol,
|
|
304
|
+
unsigned int aid1,
|
|
305
|
+
unsigned int aid2);
|
|
306
|
+
|
|
307
|
+
//! \brief find all the rotatable bonds in a molecule
|
|
308
|
+
//! we will ignore ring atoms, and double bonds which are marked cis/trans
|
|
309
|
+
/*!
|
|
310
|
+
<b>Note</b> that rotatable in this context doesn't connect to the
|
|
311
|
+
standard chemical definition of a rotatable bond; we're just talking
|
|
312
|
+
about bonds than can be flipped in order to clean up the depiction.
|
|
313
|
+
|
|
314
|
+
\param mol the molecule of interest
|
|
315
|
+
|
|
316
|
+
\return a set of the indices of the rotatable bonds
|
|
317
|
+
*/
|
|
318
|
+
RDKIT_DEPICTOR_EXPORT RDKit::INT_VECT getAllRotatableBonds(
|
|
319
|
+
const RDKit::ROMol &mol);
|
|
320
|
+
|
|
321
|
+
//! Get the ids of the atoms and bonds that are connected to aid
|
|
322
|
+
RDKIT_DEPICTOR_EXPORT void getNbrAtomAndBondIds(unsigned int aid,
|
|
323
|
+
const RDKit::ROMol *mol,
|
|
324
|
+
RDKit::INT_VECT &aids,
|
|
325
|
+
RDKit::INT_VECT &bids);
|
|
326
|
+
|
|
327
|
+
//! Find pairs of bonds that can be permuted at a non-ring degree 4 atom
|
|
328
|
+
/*!
|
|
329
|
+
This function will return only those pairs that cannot be
|
|
330
|
+
permuted by flipping a rotatble bond
|
|
331
|
+
|
|
332
|
+
D
|
|
333
|
+
|
|
|
334
|
+
b3
|
|
335
|
+
|
|
|
336
|
+
A-b1-B-b2-C
|
|
337
|
+
|
|
|
338
|
+
b4
|
|
339
|
+
|
|
|
340
|
+
E
|
|
341
|
+
For example in the above situation on the pairs (b1, b3) and (b1, b4) will be
|
|
342
|
+
returned
|
|
343
|
+
All other permutations can be achieved via a rotatable bond flip.
|
|
344
|
+
|
|
345
|
+
ARGUMENTS:
|
|
346
|
+
\param center - location of the central atom
|
|
347
|
+
\param nbrBids - a vector (of length 4) containing the ids of the bonds to
|
|
348
|
+
the neighbors
|
|
349
|
+
\param nbrLocs - locations of the neighbors
|
|
350
|
+
*/
|
|
351
|
+
RDKIT_DEPICTOR_EXPORT INT_PAIR_VECT findBondsPairsToPermuteDeg4(
|
|
352
|
+
const RDGeom::Point2D ¢er, const RDKit::INT_VECT &nbrBids,
|
|
353
|
+
const VECT_C_POINT &nbrLocs);
|
|
354
|
+
|
|
355
|
+
//! returns the rank of the atom for determining draw order
|
|
356
|
+
inline int getAtomDepictRank(const RDKit::Atom *at) {
|
|
357
|
+
const int maxAtNum = 1000;
|
|
358
|
+
const int maxDeg = 100;
|
|
359
|
+
int anum = at->getAtomicNum();
|
|
360
|
+
anum = anum == 1 ? maxAtNum : anum; // favor non-hydrogen atoms
|
|
361
|
+
int deg = at->getDegree();
|
|
362
|
+
return maxDeg * anum + deg;
|
|
363
|
+
}
|
|
364
|
+
} // namespace RDDepict
|
|
365
|
+
|
|
366
|
+
#endif
|