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.
Files changed (320) hide show
  1. rdkit_headers/__init__.py +13 -0
  2. rdkit_headers/include/rdkit/CIPLabeler/CIPLabeler.h +59 -0
  3. rdkit_headers/include/rdkit/CIPLabeler/TooManyNodesException.h +28 -0
  4. rdkit_headers/include/rdkit/Catalogs/Catalog.h +461 -0
  5. rdkit_headers/include/rdkit/Catalogs/CatalogEntry.h +48 -0
  6. rdkit_headers/include/rdkit/Catalogs/CatalogParams.h +42 -0
  7. rdkit_headers/include/rdkit/ChemicalFeatures/ChemicalFeature.h +38 -0
  8. rdkit_headers/include/rdkit/ChemicalFeatures/FreeChemicalFeature.h +97 -0
  9. rdkit_headers/include/rdkit/DataManip/MetricMatrixCalc/MetricFuncs.h +54 -0
  10. rdkit_headers/include/rdkit/DataManip/MetricMatrixCalc/MetricMatrixCalc.h +106 -0
  11. rdkit_headers/include/rdkit/DataStructs/BitOps.h +337 -0
  12. rdkit_headers/include/rdkit/DataStructs/BitVect.h +68 -0
  13. rdkit_headers/include/rdkit/DataStructs/BitVectUtils.h +35 -0
  14. rdkit_headers/include/rdkit/DataStructs/BitVects.h +25 -0
  15. rdkit_headers/include/rdkit/DataStructs/DatastructsException.h +31 -0
  16. rdkit_headers/include/rdkit/DataStructs/DatastructsStreamOps.h +72 -0
  17. rdkit_headers/include/rdkit/DataStructs/DiscreteDistMat.h +30 -0
  18. rdkit_headers/include/rdkit/DataStructs/DiscreteValueVect.h +146 -0
  19. rdkit_headers/include/rdkit/DataStructs/ExplicitBitVect.h +96 -0
  20. rdkit_headers/include/rdkit/DataStructs/FPBReader.h +281 -0
  21. rdkit_headers/include/rdkit/DataStructs/MultiFPBReader.h +213 -0
  22. rdkit_headers/include/rdkit/DataStructs/SparseBitVect.h +101 -0
  23. rdkit_headers/include/rdkit/DataStructs/SparseIntVect.h +571 -0
  24. rdkit_headers/include/rdkit/DataStructs/base64.h +41 -0
  25. rdkit_headers/include/rdkit/DistGeom/BoundsMatrix.h +121 -0
  26. rdkit_headers/include/rdkit/DistGeom/ChiralSet.h +58 -0
  27. rdkit_headers/include/rdkit/DistGeom/ChiralViolationContrib.h +96 -0
  28. rdkit_headers/include/rdkit/DistGeom/DistGeomUtils.h +195 -0
  29. rdkit_headers/include/rdkit/DistGeom/DistViolationContrib.h +54 -0
  30. rdkit_headers/include/rdkit/DistGeom/FourthDimContrib.h +65 -0
  31. rdkit_headers/include/rdkit/DistGeom/TriangleSmooth.h +36 -0
  32. rdkit_headers/include/rdkit/Features/Feature.h +96 -0
  33. rdkit_headers/include/rdkit/ForceField/Contrib.h +40 -0
  34. rdkit_headers/include/rdkit/ForceField/ForceField.h +253 -0
  35. rdkit_headers/include/rdkit/ForceField/MMFF/AngleBend.h +78 -0
  36. rdkit_headers/include/rdkit/ForceField/MMFF/AngleConstraint.h +64 -0
  37. rdkit_headers/include/rdkit/ForceField/MMFF/BondStretch.h +67 -0
  38. rdkit_headers/include/rdkit/ForceField/MMFF/Contribs.h +26 -0
  39. rdkit_headers/include/rdkit/ForceField/MMFF/DistanceConstraint.h +61 -0
  40. rdkit_headers/include/rdkit/ForceField/MMFF/Nonbonded.h +105 -0
  41. rdkit_headers/include/rdkit/ForceField/MMFF/OopBend.h +65 -0
  42. rdkit_headers/include/rdkit/ForceField/MMFF/Params.h +1134 -0
  43. rdkit_headers/include/rdkit/ForceField/MMFF/PositionConstraint.h +55 -0
  44. rdkit_headers/include/rdkit/ForceField/MMFF/StretchBend.h +70 -0
  45. rdkit_headers/include/rdkit/ForceField/MMFF/TorsionAngle.h +79 -0
  46. rdkit_headers/include/rdkit/ForceField/MMFF/TorsionConstraint.h +70 -0
  47. rdkit_headers/include/rdkit/ForceField/UFF/AngleBend.h +92 -0
  48. rdkit_headers/include/rdkit/ForceField/UFF/AngleConstraint.h +64 -0
  49. rdkit_headers/include/rdkit/ForceField/UFF/BondStretch.h +83 -0
  50. rdkit_headers/include/rdkit/ForceField/UFF/Contribs.h +23 -0
  51. rdkit_headers/include/rdkit/ForceField/UFF/DistanceConstraint.h +62 -0
  52. rdkit_headers/include/rdkit/ForceField/UFF/Inversion.h +81 -0
  53. rdkit_headers/include/rdkit/ForceField/UFF/Nonbonded.h +87 -0
  54. rdkit_headers/include/rdkit/ForceField/UFF/Params.h +153 -0
  55. rdkit_headers/include/rdkit/ForceField/UFF/PositionConstraint.h +55 -0
  56. rdkit_headers/include/rdkit/ForceField/UFF/TorsionAngle.h +115 -0
  57. rdkit_headers/include/rdkit/ForceField/UFF/TorsionConstraint.h +70 -0
  58. rdkit_headers/include/rdkit/Geometry/Grid3D.h +55 -0
  59. rdkit_headers/include/rdkit/Geometry/GridUtils.h +64 -0
  60. rdkit_headers/include/rdkit/Geometry/Transform.h +19 -0
  61. rdkit_headers/include/rdkit/Geometry/Transform2D.h +85 -0
  62. rdkit_headers/include/rdkit/Geometry/Transform3D.h +101 -0
  63. rdkit_headers/include/rdkit/Geometry/UniformGrid3D.h +217 -0
  64. rdkit_headers/include/rdkit/Geometry/Utils.h +97 -0
  65. rdkit_headers/include/rdkit/Geometry/point.h +585 -0
  66. rdkit_headers/include/rdkit/GraphMol/Abbreviations/Abbreviations.h +132 -0
  67. rdkit_headers/include/rdkit/GraphMol/Atom.h +449 -0
  68. rdkit_headers/include/rdkit/GraphMol/AtomIterators.h +212 -0
  69. rdkit_headers/include/rdkit/GraphMol/Bond.h +393 -0
  70. rdkit_headers/include/rdkit/GraphMol/BondIterators.h +75 -0
  71. rdkit_headers/include/rdkit/GraphMol/Canon.h +130 -0
  72. rdkit_headers/include/rdkit/GraphMol/ChemReactions/Enumerate/CartesianProduct.h +147 -0
  73. rdkit_headers/include/rdkit/GraphMol/ChemReactions/Enumerate/Enumerate.h +187 -0
  74. rdkit_headers/include/rdkit/GraphMol/ChemReactions/Enumerate/EnumerateBase.h +200 -0
  75. rdkit_headers/include/rdkit/GraphMol/ChemReactions/Enumerate/EnumerateTypes.h +59 -0
  76. rdkit_headers/include/rdkit/GraphMol/ChemReactions/Enumerate/EnumerationPickler.h +60 -0
  77. rdkit_headers/include/rdkit/GraphMol/ChemReactions/Enumerate/EnumerationStrategyBase.h +227 -0
  78. rdkit_headers/include/rdkit/GraphMol/ChemReactions/Enumerate/RandomSample.h +163 -0
  79. rdkit_headers/include/rdkit/GraphMol/ChemReactions/Enumerate/RandomSampleAllBBs.h +184 -0
  80. rdkit_headers/include/rdkit/GraphMol/ChemReactions/PreprocessRxn.h +64 -0
  81. rdkit_headers/include/rdkit/GraphMol/ChemReactions/Reaction.h +491 -0
  82. rdkit_headers/include/rdkit/GraphMol/ChemReactions/ReactionFingerprints.h +147 -0
  83. rdkit_headers/include/rdkit/GraphMol/ChemReactions/ReactionParser.h +274 -0
  84. rdkit_headers/include/rdkit/GraphMol/ChemReactions/ReactionPickler.h +119 -0
  85. rdkit_headers/include/rdkit/GraphMol/ChemReactions/ReactionRunner.h +116 -0
  86. rdkit_headers/include/rdkit/GraphMol/ChemReactions/ReactionUtils.h +74 -0
  87. rdkit_headers/include/rdkit/GraphMol/ChemReactions/SanitizeRxn.h +169 -0
  88. rdkit_headers/include/rdkit/GraphMol/ChemTransforms/ChemTransforms.h +270 -0
  89. rdkit_headers/include/rdkit/GraphMol/ChemTransforms/MolFragmenter.h +120 -0
  90. rdkit_headers/include/rdkit/GraphMol/Chirality.h +137 -0
  91. rdkit_headers/include/rdkit/GraphMol/Conformer.h +183 -0
  92. rdkit_headers/include/rdkit/GraphMol/CoordGen.h +195 -0
  93. rdkit_headers/include/rdkit/GraphMol/Depictor/DepictUtils.h +366 -0
  94. rdkit_headers/include/rdkit/GraphMol/Depictor/EmbeddedFrag.h +544 -0
  95. rdkit_headers/include/rdkit/GraphMol/Depictor/RDDepictor.h +284 -0
  96. rdkit_headers/include/rdkit/GraphMol/Deprotect/Deprotect.h +105 -0
  97. rdkit_headers/include/rdkit/GraphMol/Descriptors/AUTOCORR2D.h +49 -0
  98. rdkit_headers/include/rdkit/GraphMol/Descriptors/AUTOCORR3D.h +51 -0
  99. rdkit_headers/include/rdkit/GraphMol/Descriptors/AtomFeat.h +39 -0
  100. rdkit_headers/include/rdkit/GraphMol/Descriptors/BCUT.h +66 -0
  101. rdkit_headers/include/rdkit/GraphMol/Descriptors/ConnectivityDescriptors.h +211 -0
  102. rdkit_headers/include/rdkit/GraphMol/Descriptors/CoulombMat.h +42 -0
  103. rdkit_headers/include/rdkit/GraphMol/Descriptors/Crippen.h +137 -0
  104. rdkit_headers/include/rdkit/GraphMol/Descriptors/Data3Ddescriptors.h +55 -0
  105. rdkit_headers/include/rdkit/GraphMol/Descriptors/EEM.h +59 -0
  106. rdkit_headers/include/rdkit/GraphMol/Descriptors/GETAWAY.h +51 -0
  107. rdkit_headers/include/rdkit/GraphMol/Descriptors/Lipinski.h +169 -0
  108. rdkit_headers/include/rdkit/GraphMol/Descriptors/MORSE.h +50 -0
  109. rdkit_headers/include/rdkit/GraphMol/Descriptors/MQN.h +47 -0
  110. rdkit_headers/include/rdkit/GraphMol/Descriptors/MolData3Ddescriptors.h +62 -0
  111. rdkit_headers/include/rdkit/GraphMol/Descriptors/MolDescriptors.h +86 -0
  112. rdkit_headers/include/rdkit/GraphMol/Descriptors/MolDescriptors3D.h +25 -0
  113. rdkit_headers/include/rdkit/GraphMol/Descriptors/MolSurf.h +120 -0
  114. rdkit_headers/include/rdkit/GraphMol/Descriptors/PBF.h +60 -0
  115. rdkit_headers/include/rdkit/GraphMol/Descriptors/PMI.h +128 -0
  116. rdkit_headers/include/rdkit/GraphMol/Descriptors/Property.h +123 -0
  117. rdkit_headers/include/rdkit/GraphMol/Descriptors/RDF.h +52 -0
  118. rdkit_headers/include/rdkit/GraphMol/Descriptors/RegisterDescriptor.h +84 -0
  119. rdkit_headers/include/rdkit/GraphMol/Descriptors/USRDescriptor.h +137 -0
  120. rdkit_headers/include/rdkit/GraphMol/Descriptors/WHIM.h +51 -0
  121. rdkit_headers/include/rdkit/GraphMol/DistGeomHelpers/BoundsMatrixBuilder.h +77 -0
  122. rdkit_headers/include/rdkit/GraphMol/DistGeomHelpers/Embedder.h +437 -0
  123. rdkit_headers/include/rdkit/GraphMol/FMCS/FMCS.h +194 -0
  124. rdkit_headers/include/rdkit/GraphMol/FMCS/Graph.h +43 -0
  125. rdkit_headers/include/rdkit/GraphMol/FileParsers/FileParserUtils.h +231 -0
  126. rdkit_headers/include/rdkit/GraphMol/FileParsers/FileParsers.h +399 -0
  127. rdkit_headers/include/rdkit/GraphMol/FileParsers/GeneralFileReader.h +170 -0
  128. rdkit_headers/include/rdkit/GraphMol/FileParsers/MolFileStereochem.h +60 -0
  129. rdkit_headers/include/rdkit/GraphMol/FileParsers/MolSupplier.h +444 -0
  130. rdkit_headers/include/rdkit/GraphMol/FileParsers/MolWriters.h +338 -0
  131. rdkit_headers/include/rdkit/GraphMol/FileParsers/MultithreadedMolSupplier.h +102 -0
  132. rdkit_headers/include/rdkit/GraphMol/FileParsers/MultithreadedSDMolSupplier.h +65 -0
  133. rdkit_headers/include/rdkit/GraphMol/FileParsers/MultithreadedSmilesMolSupplier.h +66 -0
  134. rdkit_headers/include/rdkit/GraphMol/FileParsers/PNGParser.h +203 -0
  135. rdkit_headers/include/rdkit/GraphMol/FileParsers/SequenceParsers.h +117 -0
  136. rdkit_headers/include/rdkit/GraphMol/FileParsers/SequenceWriters.h +47 -0
  137. rdkit_headers/include/rdkit/GraphMol/FilterCatalog/FilterCatalog.h +260 -0
  138. rdkit_headers/include/rdkit/GraphMol/FilterCatalog/FilterCatalogEntry.h +276 -0
  139. rdkit_headers/include/rdkit/GraphMol/FilterCatalog/FilterMatcherBase.h +152 -0
  140. rdkit_headers/include/rdkit/GraphMol/FilterCatalog/FilterMatchers.h +576 -0
  141. rdkit_headers/include/rdkit/GraphMol/FilterCatalog/FunctionalGroupHierarchy.h +52 -0
  142. rdkit_headers/include/rdkit/GraphMol/Fingerprints/AtomPairGenerator.h +188 -0
  143. rdkit_headers/include/rdkit/GraphMol/Fingerprints/AtomPairs.h +268 -0
  144. rdkit_headers/include/rdkit/GraphMol/Fingerprints/FingerprintGenerator.h +372 -0
  145. rdkit_headers/include/rdkit/GraphMol/Fingerprints/FingerprintUtil.h +160 -0
  146. rdkit_headers/include/rdkit/GraphMol/Fingerprints/Fingerprints.h +167 -0
  147. rdkit_headers/include/rdkit/GraphMol/Fingerprints/MACCS.h +32 -0
  148. rdkit_headers/include/rdkit/GraphMol/Fingerprints/MHFP.h +285 -0
  149. rdkit_headers/include/rdkit/GraphMol/Fingerprints/MorganFingerprints.h +210 -0
  150. rdkit_headers/include/rdkit/GraphMol/Fingerprints/MorganGenerator.h +251 -0
  151. rdkit_headers/include/rdkit/GraphMol/Fingerprints/RDKitFPGenerator.h +162 -0
  152. rdkit_headers/include/rdkit/GraphMol/Fingerprints/TopologicalTorsionGenerator.h +127 -0
  153. rdkit_headers/include/rdkit/GraphMol/ForceFieldHelpers/CrystalFF/TorsionAngleM6.h +72 -0
  154. rdkit_headers/include/rdkit/GraphMol/ForceFieldHelpers/CrystalFF/TorsionPreferences.h +41 -0
  155. rdkit_headers/include/rdkit/GraphMol/ForceFieldHelpers/FFConvenience.h +130 -0
  156. rdkit_headers/include/rdkit/GraphMol/ForceFieldHelpers/MMFF/AtomTyper.h +236 -0
  157. rdkit_headers/include/rdkit/GraphMol/ForceFieldHelpers/MMFF/Builder.h +141 -0
  158. rdkit_headers/include/rdkit/GraphMol/ForceFieldHelpers/MMFF/MMFF.h +105 -0
  159. rdkit_headers/include/rdkit/GraphMol/ForceFieldHelpers/UFF/AtomTyper.h +57 -0
  160. rdkit_headers/include/rdkit/GraphMol/ForceFieldHelpers/UFF/Builder.h +129 -0
  161. rdkit_headers/include/rdkit/GraphMol/ForceFieldHelpers/UFF/UFF.h +82 -0
  162. rdkit_headers/include/rdkit/GraphMol/FragCatalog/FragCatGenerator.h +33 -0
  163. rdkit_headers/include/rdkit/GraphMol/FragCatalog/FragCatParams.h +94 -0
  164. rdkit_headers/include/rdkit/GraphMol/FragCatalog/FragCatalogEntry.h +136 -0
  165. rdkit_headers/include/rdkit/GraphMol/FragCatalog/FragCatalogUtils.h +62 -0
  166. rdkit_headers/include/rdkit/GraphMol/FragCatalog/FragFPGenerator.h +38 -0
  167. rdkit_headers/include/rdkit/GraphMol/GenericGroups/GenericGroups.h +301 -0
  168. rdkit_headers/include/rdkit/GraphMol/GraphMol.h +22 -0
  169. rdkit_headers/include/rdkit/GraphMol/MMPA/MMPA.h +81 -0
  170. rdkit_headers/include/rdkit/GraphMol/MolAlign/AlignMolecules.h +183 -0
  171. rdkit_headers/include/rdkit/GraphMol/MolAlign/O3AAlignMolecules.h +354 -0
  172. rdkit_headers/include/rdkit/GraphMol/MolBundle.h +121 -0
  173. rdkit_headers/include/rdkit/GraphMol/MolCatalog/MolCatalog.h +20 -0
  174. rdkit_headers/include/rdkit/GraphMol/MolCatalog/MolCatalogEntry.h +109 -0
  175. rdkit_headers/include/rdkit/GraphMol/MolCatalog/MolCatalogParams.h +40 -0
  176. rdkit_headers/include/rdkit/GraphMol/MolChemicalFeatures/FeatureParser.h +58 -0
  177. rdkit_headers/include/rdkit/GraphMol/MolChemicalFeatures/MolChemicalFeature.h +98 -0
  178. rdkit_headers/include/rdkit/GraphMol/MolChemicalFeatures/MolChemicalFeatureDef.h +68 -0
  179. rdkit_headers/include/rdkit/GraphMol/MolChemicalFeatures/MolChemicalFeatureFactory.h +78 -0
  180. rdkit_headers/include/rdkit/GraphMol/MolDraw2D/MolDraw2D.h +539 -0
  181. rdkit_headers/include/rdkit/GraphMol/MolDraw2D/MolDraw2DHelpers.h +284 -0
  182. rdkit_headers/include/rdkit/GraphMol/MolDraw2D/MolDraw2DJS.h +62 -0
  183. rdkit_headers/include/rdkit/GraphMol/MolDraw2D/MolDraw2DSVG.h +88 -0
  184. rdkit_headers/include/rdkit/GraphMol/MolDraw2D/MolDraw2DUtils.h +179 -0
  185. rdkit_headers/include/rdkit/GraphMol/MolDraw2D/MolDraw2Dwx.h +107 -0
  186. rdkit_headers/include/rdkit/GraphMol/MolEnumerator/LinkNode.h +159 -0
  187. rdkit_headers/include/rdkit/GraphMol/MolEnumerator/MolEnumerator.h +276 -0
  188. rdkit_headers/include/rdkit/GraphMol/MolHash/MolHash.h +12 -0
  189. rdkit_headers/include/rdkit/GraphMol/MolHash/nmmolhash.h +60 -0
  190. rdkit_headers/include/rdkit/GraphMol/MolInterchange/MolInterchange.h +93 -0
  191. rdkit_headers/include/rdkit/GraphMol/MolInterchange/details.h +49 -0
  192. rdkit_headers/include/rdkit/GraphMol/MolOps.h +1016 -0
  193. rdkit_headers/include/rdkit/GraphMol/MolPickler.h +314 -0
  194. rdkit_headers/include/rdkit/GraphMol/MolStandardize/AcidBaseCatalog/AcidBaseCatalogEntry.h +56 -0
  195. rdkit_headers/include/rdkit/GraphMol/MolStandardize/AcidBaseCatalog/AcidBaseCatalogParams.h +65 -0
  196. rdkit_headers/include/rdkit/GraphMol/MolStandardize/AcidBaseCatalog/AcidBaseCatalogUtils.h +37 -0
  197. rdkit_headers/include/rdkit/GraphMol/MolStandardize/Charge.h +145 -0
  198. rdkit_headers/include/rdkit/GraphMol/MolStandardize/Fragment.h +105 -0
  199. rdkit_headers/include/rdkit/GraphMol/MolStandardize/FragmentCatalog/FragmentCatalogEntry.h +60 -0
  200. rdkit_headers/include/rdkit/GraphMol/MolStandardize/FragmentCatalog/FragmentCatalogParams.h +63 -0
  201. rdkit_headers/include/rdkit/GraphMol/MolStandardize/FragmentCatalog/FragmentCatalogUtils.h +35 -0
  202. rdkit_headers/include/rdkit/GraphMol/MolStandardize/Metal.h +73 -0
  203. rdkit_headers/include/rdkit/GraphMol/MolStandardize/MolStandardize.h +178 -0
  204. rdkit_headers/include/rdkit/GraphMol/MolStandardize/Normalize.h +104 -0
  205. rdkit_headers/include/rdkit/GraphMol/MolStandardize/Tautomer.h +428 -0
  206. rdkit_headers/include/rdkit/GraphMol/MolStandardize/TautomerCatalog/TautomerCatalogEntry.h +59 -0
  207. rdkit_headers/include/rdkit/GraphMol/MolStandardize/TautomerCatalog/TautomerCatalogParams.h +69 -0
  208. rdkit_headers/include/rdkit/GraphMol/MolStandardize/TautomerCatalog/TautomerCatalogUtils.h +81 -0
  209. rdkit_headers/include/rdkit/GraphMol/MolStandardize/TransformCatalog/TransformCatalogEntry.h +57 -0
  210. rdkit_headers/include/rdkit/GraphMol/MolStandardize/TransformCatalog/TransformCatalogParams.h +66 -0
  211. rdkit_headers/include/rdkit/GraphMol/MolStandardize/TransformCatalog/TransformCatalogUtils.h +37 -0
  212. rdkit_headers/include/rdkit/GraphMol/MolStandardize/Validate.h +199 -0
  213. rdkit_headers/include/rdkit/GraphMol/MolTransforms/MolTransforms.h +222 -0
  214. rdkit_headers/include/rdkit/GraphMol/MonomerInfo.h +138 -0
  215. rdkit_headers/include/rdkit/GraphMol/PartialCharges/GasteigerCharges.h +27 -0
  216. rdkit_headers/include/rdkit/GraphMol/PartialCharges/GasteigerParams.h +86 -0
  217. rdkit_headers/include/rdkit/GraphMol/PeriodicTable.h +325 -0
  218. rdkit_headers/include/rdkit/GraphMol/QueryAtom.h +161 -0
  219. rdkit_headers/include/rdkit/GraphMol/QueryBond.h +146 -0
  220. rdkit_headers/include/rdkit/GraphMol/QueryOps.h +1110 -0
  221. rdkit_headers/include/rdkit/GraphMol/RDKitBase.h +35 -0
  222. rdkit_headers/include/rdkit/GraphMol/RDKitQueries.h +25 -0
  223. rdkit_headers/include/rdkit/GraphMol/RGroupDecomposition/RGroupDecomp.h +225 -0
  224. rdkit_headers/include/rdkit/GraphMol/ROMol.h +844 -0
  225. rdkit_headers/include/rdkit/GraphMol/RWMol.h +222 -0
  226. rdkit_headers/include/rdkit/GraphMol/ReducedGraphs/ReducedGraphs.h +85 -0
  227. rdkit_headers/include/rdkit/GraphMol/Resonance.h +236 -0
  228. rdkit_headers/include/rdkit/GraphMol/RingInfo.h +274 -0
  229. rdkit_headers/include/rdkit/GraphMol/Rings.h +90 -0
  230. rdkit_headers/include/rdkit/GraphMol/SLNParse/SLNAttribs.h +93 -0
  231. rdkit_headers/include/rdkit/GraphMol/SLNParse/SLNParse.h +70 -0
  232. rdkit_headers/include/rdkit/GraphMol/SLNParse/SLNParseOps.h +328 -0
  233. rdkit_headers/include/rdkit/GraphMol/SanitException.h +120 -0
  234. rdkit_headers/include/rdkit/GraphMol/ScaffoldNetwork/ScaffoldNetwork.h +195 -0
  235. rdkit_headers/include/rdkit/GraphMol/ShapeHelpers/ShapeEncoder.h +73 -0
  236. rdkit_headers/include/rdkit/GraphMol/ShapeHelpers/ShapeUtils.h +279 -0
  237. rdkit_headers/include/rdkit/GraphMol/SmilesParse/SmartsWrite.h +46 -0
  238. rdkit_headers/include/rdkit/GraphMol/SmilesParse/SmilesParse.h +160 -0
  239. rdkit_headers/include/rdkit/GraphMol/SmilesParse/SmilesParseOps.h +53 -0
  240. rdkit_headers/include/rdkit/GraphMol/SmilesParse/SmilesWrite.h +288 -0
  241. rdkit_headers/include/rdkit/GraphMol/SmilesParse/primes.h +18 -0
  242. rdkit_headers/include/rdkit/GraphMol/StereoGroup.h +74 -0
  243. rdkit_headers/include/rdkit/GraphMol/Subgraphs/SubgraphUtils.h +57 -0
  244. rdkit_headers/include/rdkit/GraphMol/Subgraphs/Subgraphs.h +154 -0
  245. rdkit_headers/include/rdkit/GraphMol/SubstanceGroup.h +297 -0
  246. rdkit_headers/include/rdkit/GraphMol/Substruct/SubstructMatch.h +232 -0
  247. rdkit_headers/include/rdkit/GraphMol/Substruct/SubstructUtils.h +44 -0
  248. rdkit_headers/include/rdkit/GraphMol/SubstructLibrary/PatternFactory.h +40 -0
  249. rdkit_headers/include/rdkit/GraphMol/SubstructLibrary/SubstructLibrary.h +951 -0
  250. rdkit_headers/include/rdkit/GraphMol/SubstructLibrary/SubstructLibrarySerialization.h +231 -0
  251. rdkit_headers/include/rdkit/GraphMol/TautomerQuery/TautomerQuery.h +104 -0
  252. rdkit_headers/include/rdkit/GraphMol/Trajectory/Snapshot.h +69 -0
  253. rdkit_headers/include/rdkit/GraphMol/Trajectory/Trajectory.h +105 -0
  254. rdkit_headers/include/rdkit/GraphMol/atomic_data.h +76 -0
  255. rdkit_headers/include/rdkit/GraphMol/details.h +15 -0
  256. rdkit_headers/include/rdkit/GraphMol/new_canon.h +772 -0
  257. rdkit_headers/include/rdkit/Numerics/Alignment/AlignPoints.h +49 -0
  258. rdkit_headers/include/rdkit/Numerics/Conrec.h +203 -0
  259. rdkit_headers/include/rdkit/Numerics/EigenSolvers/PowerEigenSolver.h +68 -0
  260. rdkit_headers/include/rdkit/Numerics/Matrix.h +347 -0
  261. rdkit_headers/include/rdkit/Numerics/Optimizer/BFGSOpt.h +397 -0
  262. rdkit_headers/include/rdkit/Numerics/SquareMatrix.h +89 -0
  263. rdkit_headers/include/rdkit/Numerics/SymmMatrix.h +361 -0
  264. rdkit_headers/include/rdkit/Numerics/Vector.h +327 -0
  265. rdkit_headers/include/rdkit/Query/AndQuery.h +57 -0
  266. rdkit_headers/include/rdkit/Query/EqualityQuery.h +88 -0
  267. rdkit_headers/include/rdkit/Query/GreaterEqualQuery.h +74 -0
  268. rdkit_headers/include/rdkit/Query/GreaterQuery.h +74 -0
  269. rdkit_headers/include/rdkit/Query/LessEqualQuery.h +75 -0
  270. rdkit_headers/include/rdkit/Query/LessQuery.h +74 -0
  271. rdkit_headers/include/rdkit/Query/NullQueryAlgebra.h +86 -0
  272. rdkit_headers/include/rdkit/Query/OrQuery.h +58 -0
  273. rdkit_headers/include/rdkit/Query/Query.h +210 -0
  274. rdkit_headers/include/rdkit/Query/QueryObjects.h +38 -0
  275. rdkit_headers/include/rdkit/Query/RangeQuery.h +116 -0
  276. rdkit_headers/include/rdkit/Query/SetQuery.h +87 -0
  277. rdkit_headers/include/rdkit/Query/XOrQuery.h +63 -0
  278. rdkit_headers/include/rdkit/RDGeneral/BadFileException.h +39 -0
  279. rdkit_headers/include/rdkit/RDGeneral/BoostEndInclude.h +69 -0
  280. rdkit_headers/include/rdkit/RDGeneral/BoostStartInclude.h +95 -0
  281. rdkit_headers/include/rdkit/RDGeneral/ConcurrentQueue.h +132 -0
  282. rdkit_headers/include/rdkit/RDGeneral/Dict.h +350 -0
  283. rdkit_headers/include/rdkit/RDGeneral/Exceptions.h +73 -0
  284. rdkit_headers/include/rdkit/RDGeneral/FileParseException.h +36 -0
  285. rdkit_headers/include/rdkit/RDGeneral/Invariant.h +198 -0
  286. rdkit_headers/include/rdkit/RDGeneral/LocaleSwitcher.h +54 -0
  287. rdkit_headers/include/rdkit/RDGeneral/RDAny.h +217 -0
  288. rdkit_headers/include/rdkit/RDGeneral/RDConfig.h +49 -0
  289. rdkit_headers/include/rdkit/RDGeneral/RDExportMacros.h +40 -0
  290. rdkit_headers/include/rdkit/RDGeneral/RDLog.h +142 -0
  291. rdkit_headers/include/rdkit/RDGeneral/RDProps.h +172 -0
  292. rdkit_headers/include/rdkit/RDGeneral/RDThreads.h +44 -0
  293. rdkit_headers/include/rdkit/RDGeneral/RDValue-doublemagic.h +478 -0
  294. rdkit_headers/include/rdkit/RDGeneral/RDValue-taggedunion.h +518 -0
  295. rdkit_headers/include/rdkit/RDGeneral/RDValue.h +285 -0
  296. rdkit_headers/include/rdkit/RDGeneral/Ranking.h +87 -0
  297. rdkit_headers/include/rdkit/RDGeneral/StreamOps.h +637 -0
  298. rdkit_headers/include/rdkit/RDGeneral/export.h +559 -0
  299. rdkit_headers/include/rdkit/RDGeneral/hanoiSort.h +167 -0
  300. rdkit_headers/include/rdkit/RDGeneral/hash/detail/float_functions.hpp +156 -0
  301. rdkit_headers/include/rdkit/RDGeneral/hash/detail/hash_float.hpp +179 -0
  302. rdkit_headers/include/rdkit/RDGeneral/hash/extensions.hpp +152 -0
  303. rdkit_headers/include/rdkit/RDGeneral/hash/hash.hpp +463 -0
  304. rdkit_headers/include/rdkit/RDGeneral/hash/hash_fwd.hpp +51 -0
  305. rdkit_headers/include/rdkit/RDGeneral/test.h +274 -0
  306. rdkit_headers/include/rdkit/RDGeneral/types.h +401 -0
  307. rdkit_headers/include/rdkit/RDGeneral/utils.h +106 -0
  308. rdkit_headers/include/rdkit/RDGeneral/versions.h +27 -0
  309. rdkit_headers/include/rdkit/RDStreams/streams.h +19 -0
  310. rdkit_headers/include/rdkit/RingDecomposerLib.h +751 -0
  311. rdkit_headers/include/rdkit/SimDivPickers/DistPicker.h +92 -0
  312. rdkit_headers/include/rdkit/SimDivPickers/HierarchicalClusterPicker.h +107 -0
  313. rdkit_headers/include/rdkit/SimDivPickers/LeaderPicker.h +470 -0
  314. rdkit_headers/include/rdkit/SimDivPickers/MaxMinPicker.h +303 -0
  315. rdkit_headers-2022.3.3.dist-info/METADATA +24 -0
  316. rdkit_headers-2022.3.3.dist-info/RECORD +320 -0
  317. rdkit_headers-2022.3.3.dist-info/WHEEL +4 -0
  318. rdkit_headers-2022.3.3.dist-info/entry_points.txt +4 -0
  319. rdkit_headers-2022.3.3.dist-info/licenses/LICENSE +29 -0
  320. rdkit_headers-2022.3.3.dist-info/licenses/NOTICE +5 -0
@@ -0,0 +1,96 @@
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 __FEATURE_H_30112004_1121__
12
+ #define __FEATURE_H_30112004_1121__
13
+
14
+ #include <vector>
15
+ #include <Geometry/point.h>
16
+
17
+ namespace RDFeatures {
18
+ template <typename FAMILYMARKER, typename TYPEMARKER = FAMILYMARKER,
19
+ typename LOCTYPE = RDGeom::Point3D>
20
+ class ExplicitFeature {
21
+ public:
22
+ ExplicitFeature() {}
23
+ explicit ExplicitFeature(const FAMILYMARKER &f, const TYPEMARKER &t)
24
+ : d_family(f), d_type(t) {}
25
+ ExplicitFeature(const FAMILYMARKER &f, const TYPEMARKER &t,
26
+ const LOCTYPE &loc)
27
+ : d_family(f), d_type(t), d_loc(loc) {}
28
+
29
+ const FAMILYMARKER &getFamily() const { return d_family; }
30
+ void setFamily(const FAMILYMARKER &f) { d_family = f; }
31
+
32
+ const TYPEMARKER &getType() const { return d_type; }
33
+ void setType(const TYPEMARKER &t) { d_type = t; }
34
+
35
+ const LOCTYPE &getLoc() const { return d_loc; }
36
+ void setLoc(const LOCTYPE &loc) { d_loc = loc; }
37
+
38
+ const std::vector<LOCTYPE> &getDirs() const { return d_dirs; }
39
+ std::vector<LOCTYPE> &getDirs() { return d_dirs; }
40
+
41
+ private:
42
+ FAMILYMARKER d_family;
43
+ TYPEMARKER d_type;
44
+ LOCTYPE d_loc;
45
+ std::vector<LOCTYPE> d_dirs;
46
+ };
47
+
48
+ template <typename FAMILYMARKER, typename TYPEMARKER = FAMILYMARKER,
49
+ typename LOCTYPE = RDGeom::Point3D>
50
+ class ImplicitFeature {
51
+ public:
52
+ ImplicitFeature() : d_weightSum(0.0) {}
53
+ explicit ImplicitFeature(const FAMILYMARKER &f, const TYPEMARKER &t)
54
+ : d_weightSum(0.0), d_family(f), d_type(t) {}
55
+
56
+ const FAMILYMARKER &getFamily() const { return d_family; }
57
+ void setFamily(const FAMILYMARKER &f) { d_family = f; }
58
+
59
+ const TYPEMARKER &getType() const { return d_type; }
60
+ void setType(const TYPEMARKER &t) { d_type = t; }
61
+
62
+ LOCTYPE getLoc() const {
63
+ PRECONDITION(d_weights.size() == d_locs.size(), "weight/locs mismatch");
64
+ LOCTYPE accum;
65
+ for (unsigned int i = 0; i < d_weights.size(); i++) {
66
+ LOCTYPE tmp = *d_locs[i];
67
+ tmp *= d_weights[i] / d_weightSum;
68
+ accum += tmp;
69
+ }
70
+ return accum;
71
+ }
72
+ void addPoint(const LOCTYPE *p, double weight = 1.0) {
73
+ d_locs.push_back(p);
74
+ d_weights.push_back(weight);
75
+ d_weightSum += weight;
76
+ }
77
+ void reset() {
78
+ d_locs.clear();
79
+ d_weights.clear();
80
+ d_weightSum = 0.0;
81
+ }
82
+
83
+ const std::vector<LOCTYPE> &getDirs() const { return d_dirs; }
84
+ std::vector<LOCTYPE> &getDirs() { return d_dirs; }
85
+
86
+ private:
87
+ double d_weightSum;
88
+ FAMILYMARKER d_family;
89
+ TYPEMARKER d_type;
90
+ std::vector<double> d_weights;
91
+ std::vector<const LOCTYPE *> d_locs;
92
+ // FIX: add something correct for directions
93
+ std::vector<LOCTYPE> d_dirs;
94
+ };
95
+ } // namespace RDFeatures
96
+ #endif
@@ -0,0 +1,40 @@
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_FFCONTRIB_H__
12
+ #define __RD_FFCONTRIB_H__
13
+
14
+ namespace ForceFields {
15
+ class ForceField;
16
+
17
+ //! abstract base class for contributions to ForceFields
18
+ class RDKIT_FORCEFIELD_EXPORT ForceFieldContrib {
19
+ public:
20
+ friend class ForceField;
21
+
22
+ ForceFieldContrib() {}
23
+ ForceFieldContrib(ForceFields::ForceField *owner) : dp_forceField(owner) {}
24
+ virtual ~ForceFieldContrib() {}
25
+
26
+ //! returns our contribution to the energy of a position
27
+ virtual double getEnergy(double *pos) const = 0;
28
+
29
+ //! calculates our contribution to the gradients of a position
30
+ virtual void getGrad(double *pos, double *grad) const = 0;
31
+
32
+ //! return a copy
33
+ virtual ForceFieldContrib *copy() const = 0;
34
+
35
+ protected:
36
+ ForceField *dp_forceField{nullptr}; //!< our owning ForceField
37
+ };
38
+ } // namespace ForceFields
39
+
40
+ #endif
@@ -0,0 +1,253 @@
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_FORCEFIELD_H__
12
+ #define __RD_FORCEFIELD_H__
13
+
14
+ #include <vector>
15
+ #include <boost/smart_ptr.hpp>
16
+ #include <Geometry/point.h>
17
+ #include <GraphMol/Trajectory/Snapshot.h>
18
+
19
+ namespace RDKit {
20
+ namespace ForceFieldsHelper {
21
+ void RDKIT_FORCEFIELD_EXPORT normalizeAngleDeg(double &angleDeg);
22
+ void RDKIT_FORCEFIELD_EXPORT computeDihedral(
23
+ const RDGeom::PointPtrVect &pos, unsigned int idx1, unsigned int idx2,
24
+ unsigned int idx3, unsigned int idx4, double *dihedral = nullptr,
25
+ double *cosPhi = nullptr, RDGeom::Point3D r[4] = nullptr,
26
+ RDGeom::Point3D t[2] = nullptr, double d[2] = nullptr);
27
+ void RDKIT_FORCEFIELD_EXPORT computeDihedral(
28
+ const double *pos, unsigned int idx1, unsigned int idx2, unsigned int idx3,
29
+ unsigned int idx4, double *dihedral = nullptr, double *cosPhi = nullptr,
30
+ RDGeom::Point3D r[4] = nullptr, RDGeom::Point3D t[2] = nullptr,
31
+ double d[2] = nullptr);
32
+ void RDKIT_FORCEFIELD_EXPORT
33
+ computeDihedral(const RDGeom::Point3D *p1, const RDGeom::Point3D *p2,
34
+ const RDGeom::Point3D *p3, const RDGeom::Point3D *p4,
35
+ double *dihedral = nullptr, double *cosPhi = nullptr,
36
+ RDGeom::Point3D r[4] = nullptr, RDGeom::Point3D t[2] = nullptr,
37
+ double d[2] = nullptr);
38
+ } // namespace ForceFieldsHelper
39
+ } // namespace RDKit
40
+
41
+ namespace ForceFields {
42
+ class ForceFieldContrib;
43
+ typedef std::vector<int> INT_VECT;
44
+ typedef boost::shared_ptr<const ForceFieldContrib> ContribPtr;
45
+ typedef std::vector<ContribPtr> ContribPtrVect;
46
+
47
+ //-------------------------------------------------------
48
+ //! A class to store forcefields and handle minimization
49
+ /*!
50
+ A force field is used like this (schematically):
51
+
52
+ \verbatim
53
+ ForceField ff;
54
+
55
+ // add contributions:
56
+ for contrib in contribs:
57
+ ff.contribs().push_back(contrib);
58
+
59
+ // set up the points:
60
+ for positionPtr in positions:
61
+ ff.positions().push_back(point);
62
+
63
+ // initialize:
64
+ ff.initialize()
65
+
66
+ // and minimize:
67
+ needsMore = ff.minimize();
68
+
69
+ \endverbatim
70
+
71
+ <b>Notes:</b>
72
+ - The ForceField owns its contributions, which are stored using smart
73
+ pointers.
74
+ - Distance calculations are currently lazy; the full distance matrix is
75
+ never generated. In systems where the distance matrix is not sparse,
76
+ this is almost certainly inefficient.
77
+
78
+ */
79
+ class RDKIT_FORCEFIELD_EXPORT ForceField {
80
+ public:
81
+ //! construct with a dimension
82
+ ForceField(unsigned int dimension = 3) : d_dimension(dimension) {}
83
+
84
+ ~ForceField();
85
+
86
+ //! copy ctor, copies contribs.
87
+ ForceField(const ForceField &other);
88
+
89
+ //! does initialization
90
+ void initialize();
91
+
92
+ //! calculates and returns the energy (in kcal/mol) based on existing
93
+ /// positions in the forcefield
94
+ /*!
95
+
96
+ \return the current energy
97
+
98
+ <b>Note:</b>
99
+ This function is less efficient than calcEnergy with postions passed in as
100
+ double *
101
+ the positions need to be converted to double * here
102
+ */
103
+ double calcEnergy(std::vector<double> *contribs = nullptr) const;
104
+
105
+ // these next two aren't const because they may update our
106
+ // distance matrix
107
+
108
+ //! calculates and returns the energy of the position passed in
109
+ /*!
110
+ \param pos an array of doubles. Should be \c 3*this->numPoints() long.
111
+
112
+ \return the current energy
113
+
114
+ <b>Side effects:</b>
115
+ - Calling this resets the current distance matrix
116
+ - The individual contributions may further update the distance matrix
117
+ */
118
+ double calcEnergy(double *pos);
119
+
120
+ //! calculates the gradient of the energy at the current position
121
+ /*!
122
+
123
+ \param forces an array of doubles. Should be \c 3*this->numPoints() long.
124
+
125
+ <b>Note:</b>
126
+ This function is less efficient than calcGrad with positions passed in
127
+ the positions need to be converted to double * here
128
+ */
129
+ void calcGrad(double *forces) const;
130
+
131
+ //! calculates the gradient of the energy at the provided position
132
+ /*!
133
+
134
+ \param pos an array of doubles. Should be \c 3*this->numPoints() long.
135
+ \param forces an array of doubles. Should be \c 3*this->numPoints() long.
136
+
137
+ <b>Side effects:</b>
138
+ - The individual contributions may modify the distance matrix
139
+ */
140
+ void calcGrad(double *pos, double *forces);
141
+
142
+ //! minimizes the energy of the system by following gradients
143
+ /*!
144
+ \param maxIts the maximum number of iterations to try
145
+ \param forceTol the convergence criterion for forces
146
+ \param energyTol the convergence criterion for energies
147
+
148
+ \return an integer value indicating whether or not the convergence
149
+ criteria were achieved:
150
+ - 0: indicates success
151
+ - 1: the minimization did not converge in \c maxIts iterations.
152
+ */
153
+ int minimize(unsigned int snapshotFreq, RDKit::SnapshotVect *snapshotVect,
154
+ unsigned int maxIts = 200, double forceTol = 1e-4,
155
+ double energyTol = 1e-6);
156
+
157
+ //! minimizes the energy of the system by following gradients
158
+ /*!
159
+ \param maxIts the maximum number of iterations to try
160
+ \param forceTol the convergence criterion for forces
161
+ \param energyTol the convergence criterion for energies
162
+ \param snapshotFreq a snapshot of the minimization trajectory
163
+ will be stored after as many steps as indicated
164
+ through this parameter; defaults to 0 (no
165
+ trajectory stored)
166
+ \param snapshotVect a pointer to a std::vector<Snapshot> where
167
+ coordinates and energies will be stored
168
+
169
+ \return an integer value indicating whether or not the convergence
170
+ criteria were achieved:
171
+ - 0: indicates success
172
+ - 1: the minimization did not converge in \c maxIts iterations.
173
+ */
174
+ int minimize(unsigned int maxIts = 200, double forceTol = 1e-4,
175
+ double energyTol = 1e-6);
176
+
177
+ // ---------------------------
178
+ // setters and getters
179
+
180
+ //! returns a reference to our points (a PointPtrVect)
181
+ RDGeom::PointPtrVect &positions() { return d_positions; }
182
+ const RDGeom::PointPtrVect &positions() const { return d_positions; }
183
+
184
+ //! returns a reference to our contribs (a ContribPtrVect)
185
+ ContribPtrVect &contribs() { return d_contribs; }
186
+ const ContribPtrVect &contribs() const { return d_contribs; }
187
+
188
+ //! returns the distance between two points
189
+ /*!
190
+ \param i point index
191
+ \param j point index
192
+ \param pos (optional) If this argument is provided, it will be used
193
+ to provide the positions of points. \c pos should be
194
+ \c 3*this->numPoints() long.
195
+
196
+ \return the distance
197
+
198
+ <b>Side effects:</b>
199
+ - if the distance between i and j has not previously been calculated,
200
+ our internal distance matrix will be updated.
201
+ */
202
+ double distance(unsigned int i, unsigned int j, double *pos = nullptr);
203
+
204
+ //! returns the distance between two points
205
+ /*!
206
+ \param i point index
207
+ \param j point index
208
+ \param pos (optional) If this argument is provided, it will be used
209
+ to provide the positions of points. \c pos should be
210
+ \c 3*this->numPoints() long.
211
+
212
+ \return the distance
213
+
214
+ <b>Note:</b>
215
+ The internal distance matrix is not updated in this case
216
+ */
217
+ double distance(unsigned int i, unsigned int j, double *pos = nullptr) const;
218
+
219
+ //! returns the dimension of the forcefield
220
+ unsigned int dimension() const { return d_dimension; }
221
+
222
+ //! returns the number of points the ForceField is handling
223
+ unsigned int numPoints() const { return d_numPoints; }
224
+
225
+ INT_VECT &fixedPoints() { return d_fixedPoints; }
226
+ const INT_VECT &fixedPoints() const { return d_fixedPoints; }
227
+
228
+ protected:
229
+ unsigned int d_dimension;
230
+ bool df_init{false}; //!< whether or not we've been initialized
231
+ unsigned int d_numPoints{0}; //!< the number of active points
232
+ double *dp_distMat{nullptr}; //!< our internal distance matrix
233
+ RDGeom::PointPtrVect d_positions; //!< pointers to the points we're using
234
+ ContribPtrVect d_contribs; //!< contributions to the energy
235
+ INT_VECT d_fixedPoints;
236
+ unsigned int d_matSize = 0;
237
+ //! scatter our positions into an array
238
+ /*!
239
+ \param pos should be \c 3*this->numPoints() long;
240
+ */
241
+ void scatter(double *pos) const;
242
+
243
+ //! update our positions from an array
244
+ /*!
245
+ \param pos should be \c 3*this->numPoints() long;
246
+ */
247
+ void gather(double *pos);
248
+
249
+ //! initializes our internal distance matrix
250
+ void initDistanceMatrix();
251
+ };
252
+ } // namespace ForceFields
253
+ #endif
@@ -0,0 +1,78 @@
1
+ //
2
+ // Copyright (C) 2013 Paolo Tosco
3
+ //
4
+ // Copyright (C) 2004-2006 Rational Discovery LLC
5
+ //
6
+ // @@ All Rights Reserved @@
7
+ // This file is part of the RDKit.
8
+ // The contents are covered by the terms of the BSD license
9
+ // which is included in the file license.txt, found at the root
10
+ // of the RDKit source tree.
11
+ //
12
+ #include <RDGeneral/export.h>
13
+ #ifndef __RD_MMFFANGLEBEND_H__
14
+ #define __RD_MMFFANGLEBEND_H__
15
+
16
+ #include <ForceField/ForceField.h>
17
+ #include <ForceField/Contrib.h>
18
+
19
+ namespace ForceFields {
20
+ namespace MMFF {
21
+ class MMFFBond;
22
+ class MMFFAngle;
23
+ class MMFFProp;
24
+
25
+ //! The angle-bend term for MMFF
26
+ class RDKIT_FORCEFIELD_EXPORT AngleBendContrib : public ForceFieldContrib {
27
+ public:
28
+ AngleBendContrib() {}
29
+ //! Constructor
30
+ /*!
31
+ The angle is between atom1 - atom2 - atom3
32
+
33
+ \param owner pointer to the owning ForceField
34
+ \param idx1 index of atom1 in the ForceField's positions
35
+ \param idx2 index of atom2 in the ForceField's positions
36
+ \param idx3 index of atom3 in the ForceField's positions
37
+ \param angleType MMFF type of the angle (as an unsigned int)
38
+
39
+ */
40
+ AngleBendContrib(ForceField *owner, unsigned int idx1, unsigned int idx2,
41
+ unsigned int idx3, const MMFFAngle *mmffAngleParams,
42
+ const MMFFProp *mmffPropParamsCentralAtom);
43
+ double getEnergy(double *pos) const override;
44
+ void getGrad(double *pos, double *grad) const override;
45
+ AngleBendContrib *copy() const override {
46
+ return new AngleBendContrib(*this);
47
+ }
48
+
49
+ private:
50
+ bool d_isLinear;
51
+ int d_at1Idx{-1}, d_at2Idx{-1}, d_at3Idx{-1};
52
+ double d_ka, d_theta0;
53
+ };
54
+ namespace Utils {
55
+ //! returns the MMFF rest value for an angle
56
+ RDKIT_FORCEFIELD_EXPORT double calcAngleRestValue(
57
+ const MMFFAngle *mmffAngleParams);
58
+ //! returns the MMFF force constant for an angle
59
+ RDKIT_FORCEFIELD_EXPORT double calcAngleForceConstant(
60
+ const MMFFAngle *mmffAngleParams);
61
+ //! calculates and returns the cosine of the angle between points p1, p2, p3
62
+ RDKIT_FORCEFIELD_EXPORT double calcCosTheta(RDGeom::Point3D p1,
63
+ RDGeom::Point3D p2,
64
+ RDGeom::Point3D p3, double dist1,
65
+ double dist2);
66
+ //! calculates and returns the angle bending MMFF energy
67
+ RDKIT_FORCEFIELD_EXPORT double calcAngleBendEnergy(const double theta0,
68
+ const double ka,
69
+ bool isLinear,
70
+ const double cosTheta);
71
+ RDKIT_FORCEFIELD_EXPORT void calcAngleBendGrad(RDGeom::Point3D *r, double *dist,
72
+ double **g, double &dE_dTheta,
73
+ double &cosTheta,
74
+ double &sinTheta);
75
+ } // namespace Utils
76
+ } // namespace MMFF
77
+ } // namespace ForceFields
78
+ #endif
@@ -0,0 +1,64 @@
1
+ //
2
+ // Copyright (C) 2013 Paolo Tosco
3
+ //
4
+ // Copyright (C) 2004-2006 Rational Discovery LLC
5
+ //
6
+ // @@ All Rights Reserved @@
7
+ // This file is part of the RDKit.
8
+ // The contents are covered by the terms of the BSD license
9
+ // which is included in the file license.txt, found at the root
10
+ // of the RDKit source tree.
11
+ //
12
+ #include <RDGeneral/export.h>
13
+ #ifndef __RD_MMFFANGLECONSTRAINT_H__
14
+ #define __RD_MMFFANGLECONSTRAINT_H__
15
+ #include <iostream>
16
+ #include <ForceField/Contrib.h>
17
+
18
+ namespace ForceFields {
19
+ namespace MMFF {
20
+
21
+ //! An angle range constraint modelled after a AngleBendContrib
22
+ class RDKIT_FORCEFIELD_EXPORT AngleConstraintContrib
23
+ : public ForceFieldContrib {
24
+ public:
25
+ AngleConstraintContrib() {}
26
+ //! Constructor
27
+ /*!
28
+ \param owner pointer to the owning ForceField
29
+ \param idx1 index of atom1 in the ForceField's positions
30
+ \param idx2 index of atom2 in the ForceField's positions
31
+ \param idx3 index of atom3 in the ForceField's positions
32
+ \param minAngle minimum angle
33
+ \param maxAngle maximum angle
34
+ \param forceConst force Constant
35
+
36
+ */
37
+ AngleConstraintContrib(ForceField *owner, unsigned int idx1,
38
+ unsigned int idx2, unsigned int idx3,
39
+ double minAngleDeg, double maxAngleDeg,
40
+ double forceConst);
41
+ AngleConstraintContrib(ForceField *owner, unsigned int idx1,
42
+ unsigned int idx2, unsigned int idx3, bool relative,
43
+ double minAngleDeg, double maxAngleDeg,
44
+ double forceConst);
45
+
46
+ ~AngleConstraintContrib() override = default;
47
+ double getEnergy(double *pos) const override;
48
+
49
+ void getGrad(double *pos, double *grad) const override;
50
+
51
+ AngleConstraintContrib *copy() const override {
52
+ return new AngleConstraintContrib(*this);
53
+ }
54
+
55
+ private:
56
+ double computeAngleTerm(double angle) const;
57
+ int d_at1Idx{-1}, d_at2Idx{-1},
58
+ d_at3Idx{-1}; //!< indices of atoms forming the angle
59
+ double d_minAngleDeg, d_maxAngleDeg; //!< rest amplitudes of the angle
60
+ double d_forceConstant; //!< force constant of the angle constraint
61
+ };
62
+ } // namespace MMFF
63
+ } // namespace ForceFields
64
+ #endif
@@ -0,0 +1,67 @@
1
+ //
2
+ // Copyright (C) 2013 Paolo Tosco
3
+ //
4
+ // Copyright (C) 2004-2006 Rational Discovery LLC
5
+ //
6
+ // @@ All Rights Reserved @@
7
+ // This file is part of the RDKit.
8
+ // The contents are covered by the terms of the BSD license
9
+ // which is included in the file license.txt, found at the root
10
+ // of the RDKit source tree.
11
+ //
12
+ #include <RDGeneral/export.h>
13
+ #ifndef __RD_MMFFBONDSTRETCH_H__
14
+ #define __RD_MMFFBONDSTRETCH_H__
15
+ #include <ForceField/Contrib.h>
16
+
17
+ namespace ForceFields {
18
+ namespace MMFF {
19
+ class MMFFBond;
20
+ class MMFFBondStretchEmpiricalRule;
21
+
22
+ //! The bond-stretch term for MMFF
23
+ class RDKIT_FORCEFIELD_EXPORT BondStretchContrib : public ForceFieldContrib {
24
+ public:
25
+ BondStretchContrib() {}
26
+ //! Constructor
27
+ /*!
28
+ \param owner pointer to the owning ForceField
29
+ \param idx1 index of end1 in the ForceField's positions
30
+ \param idx2 index of end2 in the ForceField's positions
31
+ \param bondType MMFF94 type of the bond (as an unsigned int)
32
+ \param end1Params pointer to the parameters for end1
33
+ \param end2Params pointer to the parameters for end2
34
+
35
+ */
36
+ BondStretchContrib(ForceField *owner, const unsigned int idx1,
37
+ const unsigned int idx2, const MMFFBond *mmffBondParams);
38
+
39
+ double getEnergy(double *pos) const override;
40
+
41
+ void getGrad(double *pos, double *grad) const override;
42
+
43
+ BondStretchContrib *copy() const override {
44
+ return new BondStretchContrib(*this);
45
+ }
46
+
47
+ private:
48
+ int d_at1Idx{-1}, d_at2Idx{-1}; //!< indices of end points
49
+ double d_r0; //!< rest length of the bond
50
+ double d_kb; //!< force constant of the bond
51
+ };
52
+
53
+ namespace Utils {
54
+ //! returns the MMFF rest length for a bond
55
+ RDKIT_FORCEFIELD_EXPORT double calcBondRestLength(
56
+ const MMFFBond *mmffBondParams);
57
+ //! returns the MMFF force constant for a bond
58
+ RDKIT_FORCEFIELD_EXPORT double calcBondForceConstant(
59
+ const MMFFBond *mmffBondParams);
60
+ //! calculates and returns the bond stretching MMFF energy
61
+ RDKIT_FORCEFIELD_EXPORT double calcBondStretchEnergy(const double r0,
62
+ const double kb,
63
+ const double distance);
64
+ } // namespace Utils
65
+ } // namespace MMFF
66
+ } // namespace ForceFields
67
+ #endif
@@ -0,0 +1,26 @@
1
+ //
2
+ // Copyright (C) 2013 Paolo Tosco
3
+ //
4
+ // Copyright (C) 2004-2006 Rational Discovery LLC
5
+ //
6
+ // @@ All Rights Reserved @@
7
+ // This file is part of the RDKit.
8
+ // The contents are covered by the terms of the BSD license
9
+ // which is included in the file license.txt, found at the root
10
+ // of the RDKit source tree.
11
+ //
12
+ #include <RDGeneral/export.h>
13
+ #ifndef __RD_MMFFCONTRIBS_H__
14
+ #define __RD_MMFFCONTRIBS_H__
15
+ /*! \file Contribs.h
16
+ \brief This convenience include pulls in all the other MMFF include files
17
+ */
18
+
19
+ #include "BondStretch.h"
20
+ #include "AngleBend.h"
21
+ #include "StretchBend.h"
22
+ #include "OopBend.h"
23
+ #include "TorsionAngle.h"
24
+ #include "Nonbonded.h"
25
+
26
+ #endif
@@ -0,0 +1,61 @@
1
+ //
2
+ // Copyright (C) 2013 Paolo Tosco
3
+ //
4
+ // Copyright (C) 2004-2006 Rational Discovery LLC
5
+ //
6
+ // @@ All Rights Reserved @@
7
+ // This file is part of the RDKit.
8
+ // The contents are covered by the terms of the BSD license
9
+ // which is included in the file license.txt, found at the root
10
+ // of the RDKit source tree.
11
+ //
12
+ #include <RDGeneral/export.h>
13
+ #ifndef __RD_MMFFDISTANCECONSTRAINT_H__
14
+ #define __RD_MMFFDISTANCECONSTRAINT_H__
15
+ #include <iostream>
16
+ #include <ForceField/Contrib.h>
17
+
18
+ namespace ForceFields {
19
+ namespace MMFF {
20
+
21
+ //! A distance range constraint modelled after a BondStretchContrib
22
+ class RDKIT_FORCEFIELD_EXPORT DistanceConstraintContrib
23
+ : public ForceFieldContrib {
24
+ public:
25
+ DistanceConstraintContrib() {}
26
+ //! Constructor
27
+ /*!
28
+ \param owner pointer to the owning ForceField
29
+ \param idx1 index of end1 in the ForceField's positions
30
+ \param idx2 index of end2 in the ForceField's positions
31
+ \param minLen minimum distance
32
+ \param maxLen maximum distance
33
+ \param forceConst force Constant
34
+
35
+ */
36
+ DistanceConstraintContrib(ForceField *owner, unsigned int idx1,
37
+ unsigned int idx2, double minLen, double maxLen,
38
+ double forceConst);
39
+ DistanceConstraintContrib(ForceField *owner, unsigned int idx1,
40
+ unsigned int idx2, bool relative, double minLen,
41
+ double maxLen, double forceConst);
42
+
43
+ ~DistanceConstraintContrib() override {
44
+ // std::cerr << " ==== Destroy constraint " << d_end1Idx << " " << d_end2Idx
45
+ // << std::endl;
46
+ }
47
+ double getEnergy(double *pos) const override;
48
+
49
+ void getGrad(double *pos, double *grad) const override;
50
+ DistanceConstraintContrib *copy() const override {
51
+ return new DistanceConstraintContrib(*this);
52
+ }
53
+
54
+ private:
55
+ int d_end1Idx{-1}, d_end2Idx{-1}; //!< indices of end points
56
+ double d_minLen, d_maxLen; //!< rest length of the bond
57
+ double d_forceConstant; //!< force constant of the bond
58
+ };
59
+ } // namespace MMFF
60
+ } // namespace ForceFields
61
+ #endif