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,130 @@
1
+ //
2
+ // Copyright (C) 2019 Paolo Tosco
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_FFCONVENIENCE_H
12
+ #define RD_FFCONVENIENCE_H
13
+ #include <ForceField/ForceField.h>
14
+ #include <RDGeneral/RDThreads.h>
15
+
16
+ namespace RDKit {
17
+ class ROMol;
18
+ namespace ForceFieldsHelper {
19
+ namespace detail {
20
+ #ifdef RDK_THREADSAFE_SSS
21
+ void OptimizeMoleculeConfsHelper_(ForceFields::ForceField ff, ROMol *mol,
22
+ std::vector<std::pair<int, double>> *res,
23
+ unsigned int threadIdx,
24
+ unsigned int numThreads, int maxIters) {
25
+ PRECONDITION(mol, "mol must not be nullptr");
26
+ PRECONDITION(res, "res must not be nullptr");
27
+ PRECONDITION(res->size() >= mol->getNumConformers(),
28
+ "res->size() must be >= mol->getNumConformers()");
29
+ unsigned int i = 0;
30
+ ff.positions().resize(mol->getNumAtoms());
31
+ for (ROMol::ConformerIterator cit = mol->beginConformers();
32
+ cit != mol->endConformers(); ++cit, ++i) {
33
+ if (i % numThreads != threadIdx) {
34
+ continue;
35
+ }
36
+ for (unsigned int aidx = 0; aidx < mol->getNumAtoms(); ++aidx) {
37
+ ff.positions()[aidx] = &(*cit)->getAtomPos(aidx);
38
+ }
39
+ ff.initialize();
40
+ int needsMore = ff.minimize(maxIters);
41
+ double e = ff.calcEnergy();
42
+ (*res)[i] = std::make_pair(needsMore, e);
43
+ }
44
+ }
45
+
46
+ void OptimizeMoleculeConfsMT(ROMol &mol, const ForceFields::ForceField &ff,
47
+ std::vector<std::pair<int, double>> &res,
48
+ int numThreads, int maxIters) {
49
+ std::vector<std::thread> tg;
50
+ for (int ti = 0; ti < numThreads; ++ti) {
51
+ tg.emplace_back(std::thread(detail::OptimizeMoleculeConfsHelper_, ff, &mol,
52
+ &res, ti, numThreads, maxIters));
53
+ }
54
+ for (auto &thread : tg) {
55
+ if (thread.joinable()) {
56
+ thread.join();
57
+ }
58
+ }
59
+ }
60
+ #endif
61
+
62
+ void OptimizeMoleculeConfsST(ROMol &mol, ForceFields::ForceField &ff,
63
+ std::vector<std::pair<int, double>> &res,
64
+ int maxIters) {
65
+ PRECONDITION(res.size() >= mol.getNumConformers(),
66
+ "res.size() must be >= mol.getNumConformers()");
67
+ unsigned int i = 0;
68
+ for (ROMol::ConformerIterator cit = mol.beginConformers();
69
+ cit != mol.endConformers(); ++cit, ++i) {
70
+ for (unsigned int aidx = 0; aidx < mol.getNumAtoms(); ++aidx) {
71
+ ff.positions()[aidx] = &(*cit)->getAtomPos(aidx);
72
+ }
73
+ ff.initialize();
74
+ int needsMore = ff.minimize(maxIters);
75
+ double e = ff.calcEnergy();
76
+ res[i] = std::make_pair(needsMore, e);
77
+ }
78
+ }
79
+ } // namespace detail
80
+
81
+ //! Convenience function for optimizing a molecule using a pre-generated
82
+ //! force-field
83
+ /*
84
+ \param ff the force-field
85
+ \param res vector of (needsMore,energy) pairs
86
+ \param maxIters the maximum number of force-field iterations
87
+
88
+ \return a pair with:
89
+ first: -1 if parameters were missing, 0 if the optimization converged, 1 if
90
+ more iterations are required.
91
+ second: the energy
92
+ */
93
+ std::pair<int, double> OptimizeMolecule(ForceFields::ForceField &ff,
94
+ int maxIters = 1000) {
95
+ ff.initialize();
96
+ int res = ff.minimize(maxIters);
97
+ double e = ff.calcEnergy();
98
+ return std::make_pair(res, e);
99
+ }
100
+
101
+ //! Convenience function for optimizing all of a molecule's conformations using
102
+ /// a pre-generated force-field
103
+ /*
104
+ \param mol the molecule to use
105
+ \param ff the force-field
106
+ \param res vector of (needsMore,energy) pairs
107
+ \param numThreads the number of simultaneous threads to use (only has an
108
+ effect if the RDKit is compiled with thread support).
109
+ If set to zero, the max supported by the system will be
110
+ used.
111
+ \param maxIters the maximum number of force-field iterations
112
+
113
+ */
114
+ void OptimizeMoleculeConfs(ROMol &mol, ForceFields::ForceField &ff,
115
+ std::vector<std::pair<int, double>> &res,
116
+ int numThreads = 1, int maxIters = 1000) {
117
+ res.resize(mol.getNumConformers());
118
+ numThreads = getNumThreadsToUse(numThreads);
119
+ if (numThreads == 1) {
120
+ detail::OptimizeMoleculeConfsST(mol, ff, res, maxIters);
121
+ }
122
+ #ifdef RDK_THREADSAFE_SSS
123
+ else {
124
+ detail::OptimizeMoleculeConfsMT(mol, ff, res, numThreads, maxIters);
125
+ }
126
+ #endif
127
+ }
128
+ } // end of namespace ForceFieldsHelper
129
+ } // end of namespace RDKit
130
+ #endif
@@ -0,0 +1,236 @@
1
+ //
2
+ // Copyright (C) 2013-2016 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_MMFFATOMTYPER_H__
14
+ #define _RD_MMFFATOMTYPER_H__
15
+
16
+ #include <vector>
17
+ #include <string>
18
+ #include <iostream>
19
+ #include <ForceField/MMFF/Params.h>
20
+ #include <cstdint>
21
+
22
+ namespace RDKit {
23
+ class ROMol;
24
+ class RWMol;
25
+ class Atom;
26
+ class Bond;
27
+
28
+ namespace MMFF {
29
+
30
+ namespace DefaultParameters {
31
+ RDKIT_FORCEFIELDHELPERS_EXPORT const ForceFields::MMFF::MMFFPropCollection *
32
+ getMMFFProp();
33
+ RDKIT_FORCEFIELDHELPERS_EXPORT const ForceFields::MMFF::MMFFAromCollection *
34
+ getMMFFArom();
35
+ RDKIT_FORCEFIELDHELPERS_EXPORT const ForceFields::MMFF::MMFFDefCollection *
36
+ getMMFFDef();
37
+ RDKIT_FORCEFIELDHELPERS_EXPORT const
38
+ ForceFields::MMFF::MMFFHerschbachLaurieCollection *
39
+ getMMFFHerschbachLaurie();
40
+ RDKIT_FORCEFIELDHELPERS_EXPORT const ForceFields::MMFF::MMFFPBCICollection *
41
+ getMMFFPBCI();
42
+ RDKIT_FORCEFIELDHELPERS_EXPORT const ForceFields::MMFF::MMFFAngleCollection *
43
+ getMMFFAngle();
44
+ RDKIT_FORCEFIELDHELPERS_EXPORT const ForceFields::MMFF::MMFFStbnCollection *
45
+ getMMFFStbn();
46
+ RDKIT_FORCEFIELDHELPERS_EXPORT const ForceFields::MMFF::MMFFDfsbCollection *
47
+ getMMFFDfsb();
48
+ RDKIT_FORCEFIELDHELPERS_EXPORT const ForceFields::MMFF::MMFFTorCollection *
49
+ getMMFFTor(const bool isMMFFs);
50
+ RDKIT_FORCEFIELDHELPERS_EXPORT const ForceFields::MMFF::MMFFOopCollection *
51
+ getMMFFOop(const bool isMMFFs);
52
+ RDKIT_FORCEFIELDHELPERS_EXPORT const ForceFields::MMFF::MMFFVdWCollection *
53
+ getMMFFVdW();
54
+ } // namespace DefaultParameters
55
+
56
+ class RingMembershipSize;
57
+ using namespace ForceFields::MMFF;
58
+ class RDKIT_FORCEFIELDHELPERS_EXPORT MMFFAtomProperties {
59
+ public:
60
+ MMFFAtomProperties() {}
61
+ ~MMFFAtomProperties() = default;
62
+ std::uint8_t mmffAtomType{0};
63
+ double mmffFormalCharge{0.0};
64
+ double mmffPartialCharge{0.0};
65
+ };
66
+
67
+ typedef boost::shared_ptr<MMFFAtomProperties> MMFFAtomPropertiesPtr;
68
+ enum { CONSTANT = 1, DISTANCE = 2 };
69
+ enum {
70
+ MMFF_VERBOSITY_NONE = 0,
71
+ MMFF_VERBOSITY_LOW = 1,
72
+ MMFF_VERBOSITY_HIGH = 2
73
+ };
74
+ class RDKIT_FORCEFIELDHELPERS_EXPORT MMFFMolProperties {
75
+ public:
76
+ MMFFMolProperties(ROMol &mol, const std::string &mmffVariant = "MMFF94",
77
+ std::uint8_t verbosity = MMFF_VERBOSITY_NONE,
78
+ std::ostream &oStream = std::cout);
79
+ ~MMFFMolProperties() = default;
80
+ unsigned int getMMFFBondType(const Bond *bond);
81
+ unsigned int getMMFFAngleType(const ROMol &mol, const unsigned int idx1,
82
+ const unsigned int idx2,
83
+ const unsigned int idx3);
84
+ const std::pair<unsigned int, unsigned int> getMMFFTorsionType(
85
+ const ROMol &mol, const unsigned int idx1, const unsigned int idx2,
86
+ const unsigned int idx3, const unsigned int idx4);
87
+ void computeMMFFCharges(const ROMol &mol);
88
+ const ForceFields::MMFF::MMFFTor *getMMFFTorsionEmpiricalRuleParams(
89
+ const ROMol &mol, unsigned int idx2, unsigned int idx3);
90
+ const ForceFields::MMFF::MMFFBond *getMMFFBondStretchEmpiricalRuleParams(
91
+ const ROMol &mol, const Bond *bond);
92
+ std::uint8_t getMMFFAtomType(const unsigned int idx) {
93
+ URANGE_CHECK(idx, this->d_MMFFAtomPropertiesPtrVect.size());
94
+
95
+ return this->d_MMFFAtomPropertiesPtrVect[idx]->mmffAtomType;
96
+ }
97
+ double getMMFFFormalCharge(const unsigned int idx) {
98
+ URANGE_CHECK(idx, this->d_MMFFAtomPropertiesPtrVect.size());
99
+
100
+ return this->d_MMFFAtomPropertiesPtrVect[idx]->mmffFormalCharge;
101
+ }
102
+ double getMMFFPartialCharge(const unsigned int idx) {
103
+ URANGE_CHECK(idx, this->d_MMFFAtomPropertiesPtrVect.size());
104
+
105
+ return this->d_MMFFAtomPropertiesPtrVect[idx]->mmffPartialCharge;
106
+ }
107
+ void setMMFFBondTerm(const bool state) { this->d_bondTerm = state; }
108
+ bool getMMFFBondTerm() { return this->d_bondTerm; }
109
+ void setMMFFAngleTerm(const bool state) { this->d_angleTerm = state; }
110
+ bool getMMFFAngleTerm() { return this->d_angleTerm; }
111
+ void setMMFFStretchBendTerm(const bool state) {
112
+ this->d_stretchBendTerm = state;
113
+ }
114
+ bool getMMFFStretchBendTerm() { return this->d_stretchBendTerm; }
115
+ void setMMFFOopTerm(const bool state) { this->d_oopTerm = state; }
116
+ bool getMMFFOopTerm() { return this->d_oopTerm; }
117
+ void setMMFFTorsionTerm(const bool state) { this->d_torsionTerm = state; }
118
+ bool getMMFFTorsionTerm() { return this->d_torsionTerm; }
119
+ void setMMFFVdWTerm(const bool state) { this->d_vdWTerm = state; }
120
+ bool getMMFFVdWTerm() { return this->d_vdWTerm; }
121
+ void setMMFFEleTerm(const bool state) { this->d_eleTerm = state; }
122
+ bool getMMFFEleTerm() { return this->d_eleTerm; }
123
+ void setMMFFVariant(const std::string &mmffVariant) {
124
+ PRECONDITION((mmffVariant == "MMFF94") || (mmffVariant == "MMFF94s"),
125
+ "bad MMFF variant");
126
+
127
+ this->d_mmffs = mmffVariant == "MMFF94s";
128
+ }
129
+ const std::string getMMFFVariant() {
130
+ return (this->d_mmffs ? "MMFF94s" : "MMFF94");
131
+ }
132
+ void setMMFFDielectricConstant(const double dielConst) {
133
+ PRECONDITION(dielConst > 0.0, "bad dielectric constant");
134
+
135
+ this->d_dielConst = dielConst;
136
+ }
137
+ double getMMFFDielectricConstant() { return this->d_dielConst; }
138
+ void setMMFFDielectricModel(std::uint8_t dielModel) {
139
+ this->d_dielModel = dielModel;
140
+ }
141
+ std::uint8_t getMMFFDielectricModel() { return this->d_dielModel; }
142
+ void setMMFFVerbosity(std::uint8_t verbosity) {
143
+ this->d_verbosity = verbosity;
144
+ }
145
+ std::uint8_t getMMFFVerbosity() { return this->d_verbosity; }
146
+ void setMMFFOStream(std::ostream *oStream) { this->d_oStream = oStream; }
147
+ std::ostream &getMMFFOStream() { return *(this->d_oStream); }
148
+ bool isValid() { return d_valid; }
149
+ bool getMMFFBondStretchParams(const ROMol &mol, const unsigned int idx1,
150
+ const unsigned int idx2, unsigned int &bondType,
151
+ MMFFBond &mmffBondStretchParams);
152
+ bool getMMFFAngleBendParams(const ROMol &mol, const unsigned int idx1,
153
+ const unsigned int idx2, const unsigned int idx3,
154
+ unsigned int &angleType,
155
+ MMFFAngle &mmffAngleBendParams);
156
+ bool getMMFFStretchBendParams(const ROMol &mol, const unsigned int idx1,
157
+ const unsigned int idx2,
158
+ const unsigned int idx3,
159
+ unsigned int &stretchBendType,
160
+ MMFFStbn &mmffStretchBendParams,
161
+ MMFFBond mmffBondStretchParams[2],
162
+ MMFFAngle &mmffAngleBendParams);
163
+ bool getMMFFTorsionParams(const ROMol &mol, const unsigned int idx1,
164
+ const unsigned int idx2, const unsigned int idx3,
165
+ const unsigned int idx4, unsigned int &torsionType,
166
+ MMFFTor &mmffTorsionParams);
167
+ bool getMMFFOopBendParams(const ROMol &mol, const unsigned int idx1,
168
+ const unsigned int idx2, const unsigned int idx3,
169
+ const unsigned int idx4,
170
+ MMFFOop &mmffOopBendParams);
171
+ bool getMMFFVdWParams(const unsigned int idx1, const unsigned int idx2,
172
+ MMFFVdWRijstarEps &mmffVdWParams);
173
+
174
+ private:
175
+ void setMMFFHeavyAtomType(const RingMembershipSize &rmSize, const Atom *atom);
176
+ void setMMFFHydrogenType(const Atom *atom);
177
+ void setMMFFFormalCharge(const unsigned int idx, const double fChg) {
178
+ URANGE_CHECK(idx, this->d_MMFFAtomPropertiesPtrVect.size());
179
+
180
+ this->d_MMFFAtomPropertiesPtrVect[idx]->mmffFormalCharge = fChg;
181
+ }
182
+ void setMMFFPartialCharge(const unsigned int idx, const double pChg) {
183
+ URANGE_CHECK(idx, this->d_MMFFAtomPropertiesPtrVect.size());
184
+
185
+ this->d_MMFFAtomPropertiesPtrVect[idx]->mmffPartialCharge = pChg;
186
+ }
187
+ bool d_valid;
188
+ bool d_mmffs;
189
+ bool d_bondTerm;
190
+ bool d_angleTerm;
191
+ bool d_stretchBendTerm;
192
+ bool d_oopTerm;
193
+ bool d_torsionTerm;
194
+ bool d_vdWTerm;
195
+ bool d_eleTerm;
196
+ double d_dielConst; //!< the dielectric constant
197
+ std::uint8_t d_dielModel; //!< the dielectric model (1 = constant, 2 =
198
+ // distance-dependent)
199
+ std::uint8_t d_verbosity;
200
+ std::ostream *d_oStream;
201
+ std::vector<MMFFAtomPropertiesPtr> d_MMFFAtomPropertiesPtrVect;
202
+ };
203
+ RDKIT_FORCEFIELDHELPERS_EXPORT unsigned int isAngleInRingOfSize3or4(
204
+ const ROMol &mol, const unsigned int idx1, const unsigned int idx2,
205
+ const unsigned int idx3);
206
+ RDKIT_FORCEFIELDHELPERS_EXPORT unsigned int isTorsionInRingOfSize4or5(
207
+ const ROMol &mol, const unsigned int idx1, const unsigned int idx2,
208
+ const unsigned int idx3, const unsigned int idx4);
209
+ RDKIT_FORCEFIELDHELPERS_EXPORT bool isRingAromatic(
210
+ const ROMol &mol, const INT_VECT &ringIndxVect);
211
+ RDKIT_FORCEFIELDHELPERS_EXPORT bool isAtomInAromaticRingOfSize(
212
+ const Atom *atom, const unsigned int ringSize);
213
+ RDKIT_FORCEFIELDHELPERS_EXPORT bool isAtomNOxide(const Atom *atom);
214
+ RDKIT_FORCEFIELDHELPERS_EXPORT bool areAtomsInSameAromaticRing(
215
+ const ROMol &mol, const unsigned int idx1, const unsigned int idx2);
216
+ RDKIT_FORCEFIELDHELPERS_EXPORT bool areAtomsInSameRingOfSize(
217
+ const ROMol &mol, const unsigned int ringSize, const unsigned int numAtoms,
218
+ ...);
219
+ RDKIT_FORCEFIELDHELPERS_EXPORT unsigned int sanitizeMMFFMol(RWMol &mol);
220
+ RDKIT_FORCEFIELDHELPERS_EXPORT void setMMFFAromaticity(RWMol &mol);
221
+ RDKIT_FORCEFIELDHELPERS_EXPORT unsigned int getMMFFStretchBendType(
222
+ const unsigned int angleType, const unsigned int bondType1,
223
+ const unsigned int bondType2);
224
+ RDKIT_FORCEFIELDHELPERS_EXPORT unsigned int getPeriodicTableRow(
225
+ const int atomicNum);
226
+ RDKIT_FORCEFIELDHELPERS_EXPORT const ForceFields::MMFF::MMFFAngle *
227
+ getMMFFAngleBendEmpiricalRuleParams(
228
+ const ROMol &mol, const ForceFields::MMFF::MMFFAngle *oldMMFFAngleParams,
229
+ const ForceFields::MMFF::MMFFProp *mmffPropParamsCentralAtom,
230
+ const ForceFields::MMFF::MMFFBond *mmffBondParams1,
231
+ const ForceFields::MMFF::MMFFBond *mmffBondParams2, unsigned int idx1,
232
+ unsigned int idx2, unsigned int idx3);
233
+ } // namespace MMFF
234
+ } // namespace RDKit
235
+
236
+ #endif
@@ -0,0 +1,141 @@
1
+ //
2
+ // Copyright (C) 2013-2018 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_MMFFBUILDER_H
14
+ #define RD_MMFFBUILDER_H
15
+
16
+ #include <vector>
17
+ #include <string>
18
+ #include <boost/shared_array.hpp>
19
+ #include <boost/scoped_ptr.hpp>
20
+ #ifdef RDK_THREADSAFE_SSS
21
+ #include <mutex>
22
+ #endif
23
+ #include <boost/noncopyable.hpp>
24
+ #include <boost/tuple/tuple.hpp>
25
+ #include <cstdint>
26
+
27
+ namespace ForceFields {
28
+ class ForceField;
29
+ }
30
+
31
+ namespace RDKit {
32
+ class ROMol;
33
+ namespace MMFF {
34
+ class MMFFMolProperties;
35
+
36
+ //! Builds and returns a MMFF force field for a molecule
37
+ /*!
38
+
39
+ \param mol the molecule to use
40
+ \param nonBondedThresh the threshold to be used in adding non-bonded terms
41
+ to the force field. Any non-bonded contact whose
42
+ current
43
+ distance is greater than \c nonBondedThresh * the minimum
44
+ value
45
+ for that contact will not be included.
46
+ \param confId the optional conformer id, if this isn't provided, the
47
+ molecule's
48
+ default confId will be used.
49
+ \param ignoreInterfragInteractions if true, nonbonded terms will not be added
50
+ between
51
+ fragments
52
+
53
+ \return the new force field. The client is responsible for free'ing this.
54
+ */
55
+ RDKIT_FORCEFIELDHELPERS_EXPORT ForceFields::ForceField *constructForceField(
56
+ ROMol &mol, double nonBondedThresh = 100.0, int confId = -1,
57
+ bool ignoreInterfragInteractions = true);
58
+
59
+ //! Builds and returns a MMFF force field for a molecule
60
+ /*!
61
+
62
+ \param mol the molecule to use
63
+ \param mmffMolProperties pointer to a MMFFMolProperties object
64
+ \param nonBondedThresh the threshold to be used in adding non-bonded terms
65
+ to the force field. Any non-bonded contact whose current
66
+ distance is greater than \c nonBondedThresh * the minimum
67
+ value
68
+ for that contact will not be included.
69
+ \param confId the optional conformer id, if this isn't provided, the
70
+ molecule's
71
+ default confId will be used.
72
+ \param ignoreInterfragInteractions if true, nonbonded terms will not be added
73
+ between
74
+ fragments
75
+
76
+ \return the new force field. The client is responsible for free'ing this.
77
+ */
78
+ RDKIT_FORCEFIELDHELPERS_EXPORT ForceFields::ForceField *constructForceField(
79
+ ROMol &mol, MMFFMolProperties *mmffMolProperties,
80
+ double nonBondedThresh = 100.0, int confId = -1,
81
+ bool ignoreInterfragInteractions = true);
82
+
83
+ namespace Tools {
84
+ class RDKIT_FORCEFIELDHELPERS_EXPORT DefaultTorsionBondSmarts
85
+ : private boost::noncopyable {
86
+ public:
87
+ static const std::string &string() { return ds_string; }
88
+ static const ROMol *query();
89
+
90
+ private:
91
+ DefaultTorsionBondSmarts() {}
92
+ static void create();
93
+ static const std::string ds_string;
94
+ static boost::scoped_ptr<const ROMol> ds_instance;
95
+ #ifdef RDK_THREADSAFE_SSS
96
+ static std::once_flag ds_flag;
97
+ #endif
98
+ };
99
+
100
+ enum { RELATION_1_2 = 0, RELATION_1_3 = 1, RELATION_1_4 = 2, RELATION_1_X = 3 };
101
+ // these functions are primarily exposed so they can be tested.
102
+ RDKIT_FORCEFIELDHELPERS_EXPORT unsigned int twoBitCellPos(unsigned int nAtoms,
103
+ int i, int j);
104
+ RDKIT_FORCEFIELDHELPERS_EXPORT void setTwoBitCell(
105
+ boost::shared_array<std::uint8_t> &res, unsigned int pos,
106
+ std::uint8_t value);
107
+ RDKIT_FORCEFIELDHELPERS_EXPORT std::uint8_t getTwoBitCell(
108
+ boost::shared_array<std::uint8_t> &res, unsigned int pos);
109
+ RDKIT_FORCEFIELDHELPERS_EXPORT boost::shared_array<std::uint8_t>
110
+ buildNeighborMatrix(const ROMol &mol);
111
+ RDKIT_FORCEFIELDHELPERS_EXPORT void addBonds(
112
+ const ROMol &mol, MMFFMolProperties *mmffMolProperties,
113
+ ForceFields::ForceField *field);
114
+ RDKIT_FORCEFIELDHELPERS_EXPORT void addAngles(
115
+ const ROMol &mol, MMFFMolProperties *mmffMolProperties,
116
+ ForceFields::ForceField *field);
117
+ RDKIT_FORCEFIELDHELPERS_EXPORT void addStretchBend(
118
+ const ROMol &mol, MMFFMolProperties *mmffMolProperties,
119
+ ForceFields::ForceField *field);
120
+ RDKIT_FORCEFIELDHELPERS_EXPORT void addOop(const ROMol &mol,
121
+ MMFFMolProperties *mmffMolProperties,
122
+ ForceFields::ForceField *field);
123
+ RDKIT_FORCEFIELDHELPERS_EXPORT void addTorsions(
124
+ const ROMol &mol, MMFFMolProperties *mmffMolProperties,
125
+ ForceFields::ForceField *field,
126
+ const std::string &torsionBondSmarts = DefaultTorsionBondSmarts::string());
127
+ RDKIT_FORCEFIELDHELPERS_EXPORT void addVdW(
128
+ const ROMol &mol, int confId, MMFFMolProperties *mmffMolProperties,
129
+ ForceFields::ForceField *field,
130
+ boost::shared_array<std::uint8_t> neighborMatrix,
131
+ double nonBondedThresh = 100.0, bool ignoreInterfragInteractions = true);
132
+ RDKIT_FORCEFIELDHELPERS_EXPORT void addEle(
133
+ const ROMol &mol, int confId, MMFFMolProperties *mmffMolProperties,
134
+ ForceFields::ForceField *field,
135
+ boost::shared_array<std::uint8_t> neighborMatrix,
136
+ double nonBondedThresh = 100.0, bool ignoreInterfragInteractions = true);
137
+ } // namespace Tools
138
+ } // namespace MMFF
139
+ } // namespace RDKit
140
+
141
+ #endif
@@ -0,0 +1,105 @@
1
+ //
2
+ // Copyright (C) 2015-2018 Greg Landrum
3
+ //
4
+ // @@ All Rights Reserved @@
5
+ // This file is part of the RDKit.
6
+ // The contents are covered by the terms of the BSD license
7
+ // which is included in the file license.txt, found at the root
8
+ // of the RDKit source tree.
9
+ //
10
+ #include <RDGeneral/export.h>
11
+ #ifndef RD_MMFFCONVENIENCE_H
12
+ #define RD_MMFFCONVENIENCE_H
13
+ #include <ForceField/ForceField.h>
14
+ #include <GraphMol/ForceFieldHelpers/FFConvenience.h>
15
+ #include <RDGeneral/RDThreads.h>
16
+ #include "AtomTyper.h"
17
+ #include "Builder.h"
18
+
19
+ namespace RDKit {
20
+ class ROMol;
21
+ namespace MMFF {
22
+ //! Convenience function for optimizing a molecule using MMFF
23
+ /*
24
+ \param mol the molecule to use
25
+ \param maxIters the maximum number of force-field iterations
26
+ \param mmffVariant the MMFF variant to use, should be "MMFF94" or "MMFF94S"
27
+ \param nonBondedThresh the threshold to be used in adding non-bonded terms
28
+ to the force field. Any non-bonded contact whose
29
+ current
30
+ distance is greater than \c nonBondedThresh * the minimum
31
+ value
32
+ for that contact will not be included.
33
+ \param confId the optional conformer id, if this isn't provided, the
34
+ molecule's
35
+ default confId will be used.
36
+ \param ignoreInterfragInteractions if true, nonbonded terms will not be added
37
+ between
38
+ fragments
39
+
40
+ \return a pair with:
41
+ first: -1 if parameters were missing, 0 if the optimization converged, 1 if
42
+ more iterations are required.
43
+ second: the energy
44
+ */
45
+ std::pair<int, double> MMFFOptimizeMolecule(
46
+ ROMol &mol, int maxIters = 1000, std::string mmffVariant = "MMFF94",
47
+ double nonBondedThresh = 10.0, int confId = -1,
48
+ bool ignoreInterfragInteractions = true) {
49
+ std::pair<int, double> res = std::make_pair(-1, -1);
50
+ MMFF::MMFFMolProperties mmffMolProperties(mol, mmffVariant);
51
+ if (mmffMolProperties.isValid()) {
52
+ ForceFields::ForceField *ff = MMFF::constructForceField(
53
+ mol, nonBondedThresh, confId, ignoreInterfragInteractions);
54
+ res = ForceFieldsHelper::OptimizeMolecule(*ff, maxIters);
55
+ delete ff;
56
+ }
57
+ return res;
58
+ }
59
+
60
+ //! Convenience function for optimizing all of a molecule's conformations using
61
+ /// MMFF
62
+ /*
63
+ \param mol the molecule to use
64
+ \param res vector of (needsMore,energy) pairs
65
+ \param numThreads the number of simultaneous threads to use (only has an
66
+ effect if the RDKit is compiled with thread support).
67
+ If set to zero, the max supported by the system will be
68
+ used.
69
+ \param maxIters the maximum number of force-field iterations
70
+ \param mmffVariant the MMFF variant to use, should be "MMFF94" or "MMFF94S"
71
+ \param nonBondedThresh the threshold to be used in adding non-bonded terms
72
+ to the force field. Any non-bonded contact whose
73
+ current
74
+ distance is greater than \c nonBondedThresh * the minimum
75
+ value
76
+ for that contact will not be included.
77
+ \param ignoreInterfragInteractions if true, nonbonded terms will not be added
78
+ between
79
+ fragments
80
+
81
+ */
82
+ void MMFFOptimizeMoleculeConfs(ROMol &mol,
83
+ std::vector<std::pair<int, double>> &res,
84
+ int numThreads = 1, int maxIters = 1000,
85
+ std::string mmffVariant = "MMFF94",
86
+ double nonBondedThresh = 10.0,
87
+ bool ignoreInterfragInteractions = true) {
88
+ MMFF::MMFFMolProperties mmffMolProperties(mol, mmffVariant);
89
+ if (mmffMolProperties.isValid()) {
90
+ ForceFields::ForceField *ff =
91
+ MMFF::constructForceField(mol, &mmffMolProperties, nonBondedThresh, -1,
92
+ ignoreInterfragInteractions);
93
+ ForceFieldsHelper::OptimizeMoleculeConfs(mol, *ff, res, numThreads,
94
+ maxIters);
95
+ delete ff;
96
+ } else {
97
+ res.resize(mol.getNumConformers());
98
+ for (unsigned int i = 0; i < mol.getNumConformers(); ++i) {
99
+ res[i] = std::make_pair(static_cast<int>(-1), static_cast<double>(-1));
100
+ }
101
+ }
102
+ }
103
+ } // namespace MMFF
104
+ } // end of namespace RDKit
105
+ #endif
@@ -0,0 +1,57 @@
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_UFFATOMTYPER_H__
12
+ #define _RD_UFFATOMTYPER_H__
13
+
14
+ #include <vector>
15
+ #include <string>
16
+ #include <ForceField/UFF/Params.h>
17
+
18
+ namespace ForceFields {
19
+ namespace UFF {
20
+ class AtomicParams;
21
+ }
22
+ } // namespace ForceFields
23
+ namespace RDKit {
24
+ class ROMol;
25
+ class Atom;
26
+
27
+ namespace UFF {
28
+ typedef std::vector<const ForceFields::UFF::AtomicParams *> AtomicParamVect;
29
+
30
+ RDKIT_FORCEFIELDHELPERS_EXPORT std::pair<AtomicParamVect, bool> getAtomTypes(
31
+ const ROMol &mol, const std::string &paramData = "");
32
+ RDKIT_FORCEFIELDHELPERS_EXPORT bool getUFFBondStretchParams(
33
+ const ROMol &mol, unsigned int idx1, unsigned int idx2,
34
+ ForceFields::UFF::UFFBond &uffBondStretchParams);
35
+ RDKIT_FORCEFIELDHELPERS_EXPORT bool getUFFAngleBendParams(
36
+ const ROMol &mol, unsigned int idx1, unsigned int idx2, unsigned int idx3,
37
+ ForceFields::UFF::UFFAngle &uffAngleBendParams);
38
+ RDKIT_FORCEFIELDHELPERS_EXPORT bool getUFFTorsionParams(
39
+ const ROMol &mol, unsigned int idx1, unsigned int idx2, unsigned int idx3,
40
+ unsigned int idx4, ForceFields::UFF::UFFTor &uffTorsionParams);
41
+ RDKIT_FORCEFIELDHELPERS_EXPORT bool getUFFInversionParams(
42
+ const ROMol &mol, unsigned int idx1, unsigned int idx2, unsigned int idx3,
43
+ unsigned int idx4, ForceFields::UFF::UFFInv &uffInversionParams);
44
+ RDKIT_FORCEFIELDHELPERS_EXPORT bool getUFFVdWParams(
45
+ const ROMol &mol, unsigned int idx1, unsigned int idx2,
46
+ ForceFields::UFF::UFFVdW &uffVdWParams);
47
+
48
+ namespace Tools {
49
+ // these functions are primarily exposed so they can be tested.
50
+ RDKIT_FORCEFIELDHELPERS_EXPORT void addAtomChargeFlags(
51
+ const Atom *atom, std::string &atomKey, bool tolerateChargeMismatch = true);
52
+ RDKIT_FORCEFIELDHELPERS_EXPORT std::string getAtomLabel(const Atom *atom);
53
+ } // namespace Tools
54
+ } // namespace UFF
55
+ } // namespace RDKit
56
+
57
+ #endif