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,66 @@
1
+ //
2
+ // Copyright (C) 2018-2021 Susan H. Leung and other RDKit contributors
3
+ //
4
+ // @@ All Rights Reserved @@
5
+ // This file is part of the RDKit.
6
+ // The contents are covered by the terms of the BSD license
7
+ // which is included in the file license.txt, found at the root
8
+ // of the RDKit source tree.
9
+ //
10
+ #include <RDGeneral/export.h>
11
+ #ifndef RD_TRANSFORM_CATALOG_PARAMS_H
12
+ #define RD_TRANSFORM_CATALOG_PARAMS_H
13
+
14
+ #include <Catalogs/CatalogParams.h>
15
+ #include "TransformCatalogUtils.h"
16
+ #include <GraphMol/RDKitBase.h>
17
+ #include <GraphMol/ChemReactions/Reaction.h>
18
+ #include <string>
19
+ #include <vector>
20
+ #include <iostream>
21
+
22
+ namespace RDKit {
23
+ class ROMol;
24
+
25
+ namespace MolStandardize {
26
+ class RDKIT_MOLSTANDARDIZE_EXPORT TransformCatalogParams
27
+ : public RDCatalog::CatalogParams {
28
+ public:
29
+ TransformCatalogParams() {
30
+ d_typeStr = "Transform Catalog Parameters";
31
+ d_transformations.clear();
32
+ }
33
+
34
+ // if the string here is empty the default transforms will be used
35
+ TransformCatalogParams(const std::string &transformFile);
36
+ TransformCatalogParams(std::istream &transformStream);
37
+ TransformCatalogParams(
38
+ const std::vector<std::pair<std::string, std::string>> &data);
39
+ // copy constructor
40
+ TransformCatalogParams(const TransformCatalogParams &other);
41
+
42
+ ~TransformCatalogParams() override;
43
+
44
+ unsigned int getNumTransformations() const {
45
+ return static_cast<unsigned int>(d_transformations.size());
46
+ }
47
+
48
+ const std::vector<std::shared_ptr<ChemicalReaction>> &getTransformations()
49
+ const;
50
+
51
+ const ChemicalReaction *getTransformation(unsigned int fid) const;
52
+
53
+ void toStream(std::ostream &) const override;
54
+ std::string Serialize() const override;
55
+ void initFromStream(std::istream &ss) override;
56
+ void initFromString(const std::string &text) override;
57
+
58
+ private:
59
+ std::vector<std::shared_ptr<ChemicalReaction>> d_transformations;
60
+
61
+ }; // class TransformCatalogParams
62
+
63
+ } // namespace MolStandardize
64
+ } // namespace RDKit
65
+
66
+ #endif
@@ -0,0 +1,37 @@
1
+ //
2
+ // Copyright (C) 2018-2021 Susan H. Leung and other RDKit contributors
3
+ //
4
+ // @@ All Rights Reserved @@
5
+ // This file is part of the RDKit.
6
+ // The contents are covered by the terms of the BSD license
7
+ // which is included in the file license.txt, found at the root
8
+ // of the RDKit source tree.
9
+ //
10
+ #include <RDGeneral/export.h>
11
+ #ifndef RD_TRANSFORM_CATALOG_UTILS_H
12
+ #define RD_TRANSFORM_CATALOG_UTILS_H
13
+
14
+ #include <GraphMol/RDKitBase.h>
15
+ #include "TransformCatalogParams.h"
16
+ #include <GraphMol/Substruct/SubstructMatch.h>
17
+ #include <GraphMol/ChemReactions/Reaction.h>
18
+ #include <iostream>
19
+
20
+ namespace RDKit {
21
+ class ROMol;
22
+
23
+ namespace MolStandardize {
24
+ class TransformCatalogParams;
25
+
26
+ RDKIT_MOLSTANDARDIZE_EXPORT std::vector<std::shared_ptr<ChemicalReaction>>
27
+ readTransformations(std::string fileName);
28
+ RDKIT_MOLSTANDARDIZE_EXPORT std::vector<std::shared_ptr<ChemicalReaction>>
29
+ readTransformations(std::istream &inStream, int nToRead = -1);
30
+ RDKIT_MOLSTANDARDIZE_EXPORT std::vector<std::shared_ptr<ChemicalReaction>>
31
+ readTransformations(
32
+ const std::vector<std::pair<std::string, std::string>> &data);
33
+
34
+ } // namespace MolStandardize
35
+ } // namespace RDKit
36
+
37
+ #endif
@@ -0,0 +1,199 @@
1
+ //
2
+ // Copyright (C) 2018-2021 Susan H. Leung and other RDKit contributors
3
+ //
4
+ // @@ All Rights Reserved @@
5
+ // This file is part of the RDKit.
6
+ // The contents are covered by the terms of the BSD license
7
+ // which is included in the file license.txt, found at the root
8
+ // of the RDKit source tree.
9
+ //
10
+ /*! \file Validate.h
11
+
12
+ \brief Defines the ValidationErrorInfo class and four different
13
+ validation methods: RDKitValidation, MolVSValidation, AllowedAtomsValidation,
14
+ DisallowedAtomsValidation.
15
+
16
+ */
17
+ #include <RDGeneral/export.h>
18
+ #ifndef RD_VALIDATE_H
19
+ #define RD_VALIDATE_H
20
+
21
+ #include <GraphMol/RDKitBase.h>
22
+ #include <GraphMol/ROMol.h>
23
+ #include <GraphMol/Atom.h>
24
+ #include <iostream>
25
+ #include <exception>
26
+ #include <string>
27
+ #include <utility>
28
+ #include <vector>
29
+
30
+ namespace RDKit {
31
+ class RWMol;
32
+ class ROMol;
33
+
34
+ namespace MolStandardize {
35
+
36
+ //! The ValidationErrorInfo class is used to store the information returned by a
37
+ /// ValidationMethod validate.
38
+ class RDKIT_MOLSTANDARDIZE_EXPORT ValidationErrorInfo : public std::exception {
39
+ public:
40
+ ValidationErrorInfo(std::string msg) : d_msg(std::move(msg)) {
41
+ BOOST_LOG(rdInfoLog) << d_msg << std::endl;
42
+ }
43
+ const char *what() const noexcept override { return d_msg.c_str(); }
44
+ ~ValidationErrorInfo() noexcept override = default;
45
+
46
+ private:
47
+ std::string d_msg;
48
+ }; // class ValidationErrorInfo
49
+
50
+ //! The ValidationMethod class is the abstract base class upon which all the
51
+ /// four different ValidationMethods inherit from.
52
+ class RDKIT_MOLSTANDARDIZE_EXPORT ValidationMethod {
53
+ public:
54
+ ValidationMethod() = default;
55
+ virtual ~ValidationMethod() = default;
56
+
57
+ virtual std::vector<ValidationErrorInfo> validate(
58
+ const ROMol &mol, bool reportAllFailures) const = 0;
59
+ };
60
+
61
+ //! The RDKitValidation class throws an error when there are no atoms in the
62
+ /// molecule or when there is incorrect atom valency.
63
+ /*!
64
+
65
+ <b>Notes:</b>
66
+ - RDKit automatically throws up atom valency issues but this class was made
67
+ for completeness of the project.
68
+ */
69
+ class RDKIT_MOLSTANDARDIZE_EXPORT RDKitValidation : public ValidationMethod {
70
+ public:
71
+ std::vector<ValidationErrorInfo> validate(
72
+ const ROMol &mol, bool reportAllFailures) const override;
73
+ };
74
+
75
+ //////////////////////////////
76
+ /// MolVS Validations
77
+ //
78
+ //! The MolVSValidations class includes most of the same validations as
79
+ /// molvs.validations, namely NoAtomValidation, FragmentValidation,
80
+ /// NeutralValidation, IsotopeValidation. MolVS also has IsNoneValidation and
81
+ /// DichloroethaneValidation but these were not included here (yet).
82
+ class RDKIT_MOLSTANDARDIZE_EXPORT MolVSValidations {
83
+ public:
84
+ virtual void run(const ROMol &mol, bool reportAllFailures,
85
+ std::vector<ValidationErrorInfo> &errors) const = 0;
86
+ virtual boost::shared_ptr<MolVSValidations> copy() const = 0;
87
+ };
88
+
89
+ //! The NoAtomValidation class throws an error if no atoms are present in the
90
+ /// molecule.
91
+ class RDKIT_MOLSTANDARDIZE_EXPORT NoAtomValidation final
92
+ : public MolVSValidations {
93
+ public:
94
+ void run(const ROMol &mol, bool reportAllFailures,
95
+ std::vector<ValidationErrorInfo> &errors) const override;
96
+ //! makes a copy of NoAtomValidation object and returns a MolVSValidations
97
+ //! pointer to it
98
+ boost::shared_ptr<MolVSValidations> copy() const override {
99
+ return boost::make_shared<NoAtomValidation>(*this);
100
+ }
101
+ };
102
+
103
+ //! The FragmentValidation class logs if certain fragments are present.
104
+ class RDKIT_MOLSTANDARDIZE_EXPORT FragmentValidation final
105
+ : public MolVSValidations {
106
+ public:
107
+ void run(const ROMol &mol, bool reportAllFailures,
108
+ std::vector<ValidationErrorInfo> &errors) const override;
109
+ //! makes a copy of FragmentValidation object and returns a MolVSValidations
110
+ //! pointer to it
111
+ boost::shared_ptr<MolVSValidations> copy() const override {
112
+ return boost::make_shared<FragmentValidation>(*this);
113
+ }
114
+ };
115
+
116
+ //! The NeutralValidation class logs if not an overall neutral system.
117
+ class RDKIT_MOLSTANDARDIZE_EXPORT NeutralValidation final
118
+ : public MolVSValidations {
119
+ public:
120
+ void run(const ROMol &mol, bool reportAllFailures,
121
+ std::vector<ValidationErrorInfo> &errors) const override;
122
+ //! makes a copy of NeutralValidation object and returns a MolVSValidations
123
+ //! pointer to it
124
+ boost::shared_ptr<MolVSValidations> copy() const override {
125
+ return boost::make_shared<NeutralValidation>(*this);
126
+ }
127
+ };
128
+
129
+ //! The IsotopeValidation class logs if molecule contains isotopes.
130
+ class RDKIT_MOLSTANDARDIZE_EXPORT IsotopeValidation final
131
+ : public MolVSValidations {
132
+ public:
133
+ void run(const ROMol &mol, bool reportAllFailures,
134
+ std::vector<ValidationErrorInfo> &errors) const override;
135
+ //! makes a copy of IsotopeValidation object and returns a MolVSValidations
136
+ //! pointer to it
137
+ boost::shared_ptr<MolVSValidations> copy() const override {
138
+ return boost::make_shared<IsotopeValidation>(*this);
139
+ }
140
+ };
141
+
142
+ ////////////////////////////////
143
+
144
+ //! The MolVSValidation class can be used to perform all MolVSValidions.
145
+ class RDKIT_MOLSTANDARDIZE_EXPORT MolVSValidation : public ValidationMethod {
146
+ public:
147
+ // constructor
148
+ MolVSValidation();
149
+ //! overloaded constructor to take in a user-defined list of MolVSValidations
150
+ MolVSValidation(
151
+ const std::vector<boost::shared_ptr<MolVSValidations>> validations);
152
+ MolVSValidation(const MolVSValidation &other);
153
+ ~MolVSValidation() override;
154
+
155
+ std::vector<ValidationErrorInfo> validate(
156
+ const ROMol &mol, bool reportAllFailures) const override;
157
+
158
+ private:
159
+ std::vector<boost::shared_ptr<MolVSValidations>> d_validations;
160
+ };
161
+
162
+ //! The AllowedAtomsValidation class lets the user input a list of atoms,
163
+ //! anything not on
164
+ /// the list throws an error.
165
+ class RDKIT_MOLSTANDARDIZE_EXPORT AllowedAtomsValidation
166
+ : public ValidationMethod {
167
+ public:
168
+ AllowedAtomsValidation(std::vector<std::shared_ptr<Atom>> atoms)
169
+ : d_allowedList(std::move(atoms)) {}
170
+ std::vector<ValidationErrorInfo> validate(
171
+ const ROMol &mol, bool reportAllFailures) const override;
172
+
173
+ private:
174
+ std::vector<std::shared_ptr<Atom>> d_allowedList;
175
+ };
176
+
177
+ //! The DisallowedAtomsValidation class lets the user input a list of atoms and
178
+ //! as long
179
+ /// as there are no atoms from the list it is deemed acceptable.
180
+ class RDKIT_MOLSTANDARDIZE_EXPORT DisallowedAtomsValidation
181
+ : public ValidationMethod {
182
+ public:
183
+ DisallowedAtomsValidation(std::vector<std::shared_ptr<Atom>> atoms)
184
+ : d_disallowedList(std::move(atoms)) {}
185
+ std::vector<ValidationErrorInfo> validate(
186
+ const ROMol &mol, bool reportAllFailures) const override;
187
+
188
+ private:
189
+ std::vector<std::shared_ptr<Atom>> d_disallowedList;
190
+ };
191
+
192
+ //! A convenience function for quickly validating a single SMILES string.
193
+ RDKIT_MOLSTANDARDIZE_EXPORT std::vector<ValidationErrorInfo> validateSmiles(
194
+ const std::string &smiles);
195
+
196
+ } // namespace MolStandardize
197
+ } // namespace RDKit
198
+
199
+ #endif
@@ -0,0 +1,222 @@
1
+ //
2
+ // Copyright (C) 2003-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_MOLTRANSFORMS_H_
12
+ #define _RD_MOLTRANSFORMS_H_
13
+
14
+ #include <Geometry/point.h>
15
+ #include <Numerics/SymmMatrix.h>
16
+
17
+ #ifdef RDK_HAS_EIGEN3
18
+ #include <Eigen/Dense>
19
+ #endif
20
+
21
+ namespace RDKit {
22
+ class ROMol;
23
+ class Atom;
24
+ class Conformer;
25
+ } // namespace RDKit
26
+
27
+ namespace RDGeom {
28
+ class Transform3D;
29
+ }
30
+
31
+ namespace MolTransforms {
32
+ RDKIT_MOLTRANSFORMS_EXPORT void transformMolsAtoms(RDKit::ROMol *mol,
33
+ RDGeom::Transform3D &tform);
34
+ RDKIT_MOLTRANSFORMS_EXPORT void transformAtom(RDKit::Atom *atom,
35
+ RDGeom::Transform3D &tform);
36
+
37
+ //! Compute the centroid of a conformer
38
+ /*!
39
+ This is simple the average of the heavy atom locations in the conformer,
40
+ not attention is paid to hydrogens or the differences in atomic radii
41
+
42
+ \param conf Conformer of interest
43
+ \param ignoreHs If true, ignore hydrogen atoms
44
+ \param weights If present, used to weigh the atomic coordinates
45
+ */
46
+ RDKIT_MOLTRANSFORMS_EXPORT RDGeom::Point3D computeCentroid(
47
+ const RDKit::Conformer &conf, bool ignoreHs = true,
48
+ const std::vector<double> *weights = nullptr);
49
+
50
+ #ifdef RDK_HAS_EIGEN3
51
+ //! Compute principal axes and moments of inertia for a conformer
52
+ /*!
53
+ These values are calculated from the inertia tensor:
54
+ Iij = - sum_{s=1..N}(w_s * r_{si} * r_{sj}) i != j
55
+ Iii = sum_{s=1..N} sum_{j!=i} (w_s * r_{sj} * r_{sj})
56
+ where the coordinates are relative to the center of mass.
57
+
58
+
59
+ \param conf Conformer of interest
60
+ \param axes used to return the principal axes
61
+ \param moments used to return the principal moments
62
+ \param ignoreHs If true, ignore hydrogen atoms
63
+ \param force If true, the calculation will be carried out even if a
64
+ cached value is present
65
+ \param weights If present, used to weigh the atomic coordinates
66
+
67
+ \returns whether or not the calculation was successful
68
+ */
69
+ RDKIT_MOLTRANSFORMS_EXPORT bool computePrincipalAxesAndMoments(
70
+ const RDKit::Conformer &conf, Eigen::Matrix3d &axes,
71
+ Eigen::Vector3d &moments, bool ignoreHs = false, bool force = false,
72
+ const std::vector<double> *weights = nullptr);
73
+ //! Compute principal axes and moments from the gyration matrix of a conformer
74
+ /*!
75
+
76
+ These values are calculated from the gyration matrix/tensor:
77
+ Iij = sum_{s=1..N}(w_s * r_{si} * r_{sj}) i != j
78
+ Iii = sum_{s=1..N} sum_{t!=s}(w_s * r_{si} * r_{ti})
79
+ where the coordinates are relative to the center of mass.
80
+
81
+ \param conf Conformer of interest
82
+ \param axes used to return the principal axes
83
+ \param moments used to return the principal moments
84
+ \param ignoreHs If true, ignore hydrogen atoms
85
+ \param force If true, the calculation will be carried out even if a
86
+ cached value is present
87
+ \param weights If present, used to weigh the atomic coordinates
88
+
89
+ \returns whether or not the calculation was successful
90
+ */
91
+ RDKIT_MOLTRANSFORMS_EXPORT bool
92
+ computePrincipalAxesAndMomentsFromGyrationMatrix(
93
+ const RDKit::Conformer &conf, Eigen::Matrix3d &axes,
94
+ Eigen::Vector3d &moments, bool ignoreHs = false, bool force = false,
95
+ const std::vector<double> *weights = nullptr);
96
+ #endif
97
+
98
+ //! Compute the transformation required to orient the conformation
99
+ //! along the principal axes about the center; i.e. center is made to coincide
100
+ /// with the
101
+ //! origin, the largest principal axis with the x-axis, the next largest with
102
+ /// the y-axis
103
+ //! and the smallest with the z-axis
104
+ /*!
105
+ If center is not specified the centroid of the conformer will be used
106
+ \param conf Conformer of interest
107
+ \param center Center to be used for canonicalization, defaults to
108
+ the centroid of the
109
+ conformation
110
+ \param normalizeCovar Normalize the covariance matrix with the number of
111
+ atoms
112
+ \param ignoreHs Optionally ignore hydrogens
113
+ */
114
+ RDKIT_MOLTRANSFORMS_EXPORT RDGeom::Transform3D *computeCanonicalTransform(
115
+ const RDKit::Conformer &conf, const RDGeom::Point3D *center = nullptr,
116
+ bool normalizeCovar = false, bool ignoreHs = true);
117
+
118
+ //! Transform the conformation using the specified transformation
119
+ RDKIT_MOLTRANSFORMS_EXPORT void transformConformer(
120
+ RDKit::Conformer &conf, const RDGeom::Transform3D &trans);
121
+
122
+ //! Transforms coordinates in a molecule's substance groups
123
+ RDKIT_MOLTRANSFORMS_EXPORT void transformMolSubstanceGroups(
124
+ RDKit::ROMol &mol, const RDGeom::Transform3D &trans);
125
+
126
+ //! Canonicalize the orientation of a conformer so that its principal axes
127
+ //! around the specified center point coincide with the x, y, z axes
128
+ /*!
129
+ \param conf The conformer of interest
130
+ \param center Optional center point about which the principal axes are
131
+ computed
132
+ if not specified the centroid of the conformer will be
133
+ used
134
+ \param normalizeCovar Optionally normalize the covariance matrix by the number
135
+ of atoms
136
+ \param ignoreHs If true, ignore hydrogen atoms
137
+
138
+ */
139
+ RDKIT_MOLTRANSFORMS_EXPORT void canonicalizeConformer(
140
+ RDKit::Conformer &conf, const RDGeom::Point3D *center = nullptr,
141
+ bool normalizeCovar = false, bool ignoreHs = true);
142
+
143
+ //! Canonicalize all the conformations in a molecule
144
+ /*!
145
+ \param mol the molecule of interest
146
+ \param normalizeCovar Optionally normalize the covariance matrix by the number
147
+ of atoms
148
+ \param ignoreHs If true, ignore hydrogens
149
+ */
150
+ RDKIT_MOLTRANSFORMS_EXPORT void canonicalizeMol(RDKit::ROMol &mol,
151
+ bool normalizeCovar = false,
152
+ bool ignoreHs = true);
153
+
154
+ //! Get the bond length between the specified atoms i, j
155
+ RDKIT_MOLTRANSFORMS_EXPORT double getBondLength(const RDKit::Conformer &conf,
156
+ unsigned int iAtomId,
157
+ unsigned int jAtomId);
158
+
159
+ //! Set the bond length between the specified atoms i, j
160
+ //! (all atoms bonded to atom j are moved)
161
+ RDKIT_MOLTRANSFORMS_EXPORT void setBondLength(RDKit::Conformer &conf,
162
+ unsigned int iAtomId,
163
+ unsigned int jAtomId,
164
+ double value);
165
+
166
+ //! Get the angle in radians among the specified atoms i, j, k
167
+ RDKIT_MOLTRANSFORMS_EXPORT double getAngleRad(const RDKit::Conformer &conf,
168
+ unsigned int iAtomId,
169
+ unsigned int jAtomId,
170
+ unsigned int kAtomId);
171
+
172
+ //! Get the angle in degrees among the specified atoms i, j, k
173
+ inline double getAngleDeg(const RDKit::Conformer &conf, unsigned int iAtomId,
174
+ unsigned int jAtomId, unsigned int kAtomId) {
175
+ return (180. / M_PI * getAngleRad(conf, iAtomId, jAtomId, kAtomId));
176
+ }
177
+
178
+ //! Set the angle in radians among the specified atoms i, j, k
179
+ //! (all atoms bonded to atom k are moved)
180
+ RDKIT_MOLTRANSFORMS_EXPORT void setAngleRad(RDKit::Conformer &conf,
181
+ unsigned int iAtomId,
182
+ unsigned int jAtomId,
183
+ unsigned int kAtomId, double value);
184
+
185
+ //! Set the angle in degrees among the specified atoms i, j, k
186
+ //! (all atoms bonded to atom k are moved)
187
+ inline void setAngleDeg(RDKit::Conformer &conf, unsigned int iAtomId,
188
+ unsigned int jAtomId, unsigned int kAtomId,
189
+ double value) {
190
+ setAngleRad(conf, iAtomId, jAtomId, kAtomId, value / 180. * M_PI);
191
+ }
192
+
193
+ //! Get the dihedral angle in radians among the specified atoms i, j, k, l
194
+ RDKIT_MOLTRANSFORMS_EXPORT double getDihedralRad(const RDKit::Conformer &conf,
195
+ unsigned int iAtomId,
196
+ unsigned int jAtomId,
197
+ unsigned int kAtomId,
198
+ unsigned int lAtomId);
199
+
200
+ //! Get the dihedral angle in degrees among the specified atoms i, j, k, l
201
+ inline double getDihedralDeg(const RDKit::Conformer &conf, unsigned int iAtomId,
202
+ unsigned int jAtomId, unsigned int kAtomId,
203
+ unsigned int lAtomId) {
204
+ return (180. / M_PI *
205
+ getDihedralRad(conf, iAtomId, jAtomId, kAtomId, lAtomId));
206
+ }
207
+
208
+ //! Set the dihedral angle in radians among the specified atoms i, j, k, l
209
+ //! (all atoms bonded to atom l are moved)
210
+ RDKIT_MOLTRANSFORMS_EXPORT void setDihedralRad(
211
+ RDKit::Conformer &conf, unsigned int iAtomId, unsigned int jAtomId,
212
+ unsigned int kAtomId, unsigned int lAtomId, double value);
213
+
214
+ //! Set the dihedral angle in degrees among the specified atoms i, j, k, l
215
+ //! (all atoms bonded to atom l are moved)
216
+ inline void setDihedralDeg(RDKit::Conformer &conf, unsigned int iAtomId,
217
+ unsigned int jAtomId, unsigned int kAtomId,
218
+ unsigned int lAtomId, double value) {
219
+ setDihedralRad(conf, iAtomId, jAtomId, kAtomId, lAtomId, value / 180. * M_PI);
220
+ }
221
+ } // namespace MolTransforms
222
+ #endif
@@ -0,0 +1,138 @@
1
+ //
2
+ // Copyright (C) 2013-2021 Greg Landrum and other RDKit contributors
3
+ //
4
+ // @@ All Rights Reserved @@
5
+ // This file is part of the RDKit.
6
+ // The contents are covered by the terms of the BSD license
7
+ // which is included in the file license.txt, found at the root
8
+ // of the RDKit source tree.
9
+ //
10
+ /*! \file MonomerInfo.h
11
+
12
+ \brief Defines Monomer information classes
13
+
14
+ */
15
+ #include <RDGeneral/export.h>
16
+ #ifndef RD_MONOMERINFO_H
17
+ #define RD_MONOMERINFO_H
18
+
19
+ #include <string>
20
+ #include <utility>
21
+ #include <boost/shared_ptr.hpp>
22
+
23
+ namespace RDKit {
24
+
25
+ //! The abstract base class for atom-level monomer info
26
+ class RDKIT_GRAPHMOL_EXPORT AtomMonomerInfo {
27
+ public:
28
+ typedef enum { UNKNOWN = 0, PDBRESIDUE, OTHER } AtomMonomerType;
29
+
30
+ virtual ~AtomMonomerInfo() {}
31
+
32
+ AtomMonomerInfo() : d_name("") {}
33
+ AtomMonomerInfo(AtomMonomerType typ, std::string nm = "")
34
+ : d_monomerType(typ), d_name(std::move(nm)) {}
35
+ AtomMonomerInfo(const AtomMonomerInfo &other)
36
+ : d_monomerType(other.d_monomerType), d_name(other.d_name) {}
37
+
38
+ const std::string &getName() const { return d_name; }
39
+ void setName(const std::string &nm) { d_name = nm; }
40
+ AtomMonomerType getMonomerType() const { return d_monomerType; }
41
+ void setMonomerType(AtomMonomerType typ) { d_monomerType = typ; }
42
+
43
+ virtual AtomMonomerInfo *copy() const { return new AtomMonomerInfo(*this); }
44
+
45
+ private:
46
+ AtomMonomerType d_monomerType{UNKNOWN};
47
+ std::string d_name;
48
+ };
49
+
50
+ //! Captures atom-level information about peptide residues
51
+ class RDKIT_GRAPHMOL_EXPORT AtomPDBResidueInfo : public AtomMonomerInfo {
52
+ public:
53
+ AtomPDBResidueInfo() : AtomMonomerInfo(PDBRESIDUE) {}
54
+ AtomPDBResidueInfo(const AtomPDBResidueInfo &other)
55
+ : AtomMonomerInfo(other),
56
+ d_serialNumber(other.d_serialNumber),
57
+ d_altLoc(other.d_altLoc),
58
+ d_residueName(other.d_residueName),
59
+ d_residueNumber(other.d_residueNumber),
60
+ d_chainId(other.d_chainId),
61
+ d_insertionCode(other.d_insertionCode),
62
+ d_occupancy(other.d_occupancy),
63
+ d_tempFactor(other.d_tempFactor),
64
+ df_heteroAtom(other.df_heteroAtom),
65
+ d_secondaryStructure(other.d_secondaryStructure),
66
+ d_segmentNumber(other.d_segmentNumber) {}
67
+
68
+ AtomPDBResidueInfo(const std::string &atomName, int serialNumber = 0,
69
+ std::string altLoc = "", std::string residueName = "",
70
+ int residueNumber = 0, std::string chainId = "",
71
+ std::string insertionCode = "", double occupancy = 1.0,
72
+ double tempFactor = 0.0, bool isHeteroAtom = false,
73
+ unsigned int secondaryStructure = 0,
74
+ unsigned int segmentNumber = 0)
75
+ : AtomMonomerInfo(PDBRESIDUE, atomName),
76
+ d_serialNumber(serialNumber),
77
+ d_altLoc(std::move(altLoc)),
78
+ d_residueName(std::move(residueName)),
79
+ d_residueNumber(residueNumber),
80
+ d_chainId(std::move(chainId)),
81
+ d_insertionCode(std::move(insertionCode)),
82
+ d_occupancy(occupancy),
83
+ d_tempFactor(tempFactor),
84
+ df_heteroAtom(isHeteroAtom),
85
+ d_secondaryStructure(secondaryStructure),
86
+ d_segmentNumber(segmentNumber) {}
87
+
88
+ int getSerialNumber() const { return d_serialNumber; }
89
+ void setSerialNumber(int val) { d_serialNumber = val; }
90
+ const std::string &getAltLoc() const { return d_altLoc; }
91
+ void setAltLoc(const std::string &val) { d_altLoc = val; }
92
+ const std::string &getResidueName() const { return d_residueName; }
93
+ void setResidueName(const std::string &val) { d_residueName = val; }
94
+ int getResidueNumber() const { return d_residueNumber; }
95
+ void setResidueNumber(int val) { d_residueNumber = val; }
96
+ const std::string &getChainId() const { return d_chainId; }
97
+ void setChainId(const std::string &val) { d_chainId = val; }
98
+ const std::string &getInsertionCode() const { return d_insertionCode; }
99
+ void setInsertionCode(const std::string &val) { d_insertionCode = val; }
100
+ double getOccupancy() const { return d_occupancy; }
101
+ void setOccupancy(double val) { d_occupancy = val; }
102
+ double getTempFactor() const { return d_tempFactor; }
103
+ void setTempFactor(double val) { d_tempFactor = val; }
104
+ bool getIsHeteroAtom() const { return df_heteroAtom; }
105
+ void setIsHeteroAtom(bool val) { df_heteroAtom = val; }
106
+ unsigned int getSecondaryStructure() const { return d_secondaryStructure; }
107
+ void setSecondaryStructure(unsigned int val) { d_secondaryStructure = val; }
108
+ unsigned int getSegmentNumber() const { return d_segmentNumber; }
109
+ void setSegmentNumber(unsigned int val) { d_segmentNumber = val; }
110
+
111
+ AtomMonomerInfo *copy() const override {
112
+ return static_cast<AtomMonomerInfo *>(new AtomPDBResidueInfo(*this));
113
+ }
114
+
115
+ private:
116
+ // the fields here are from the PDB definition
117
+ // (http://www.wwpdb.org/documentation/format33/sect9.html#ATOM) [9 Aug, 2013]
118
+ // element and charge are not present since the atom itself stores that
119
+ // information
120
+ unsigned int d_serialNumber = 0;
121
+ std::string d_altLoc = "";
122
+ std::string d_residueName = "";
123
+ int d_residueNumber = 0;
124
+ std::string d_chainId = "";
125
+ std::string d_insertionCode = "";
126
+ double d_occupancy = 1.0;
127
+ double d_tempFactor = 0.0;
128
+ // additional, non-PDB fields:
129
+ bool df_heteroAtom = false; // is this from a HETATM record?
130
+ unsigned int d_secondaryStructure = 0;
131
+ unsigned int d_segmentNumber = 0;
132
+ };
133
+ }; // namespace RDKit
134
+ //! allows AtomPDBResidueInfo objects to be dumped to streams
135
+ RDKIT_GRAPHMOL_EXPORT std::ostream &operator<<(
136
+ std::ostream &target, const RDKit::AtomPDBResidueInfo &apri);
137
+
138
+ #endif
@@ -0,0 +1,27 @@
1
+ //
2
+ // Copyright (C) 2003-2011 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_GASTEIGERCHARGES_H
12
+ #define _RD_GASTEIGERCHARGES_H
13
+
14
+ #include <vector>
15
+
16
+ namespace RDKit {
17
+ class ROMol;
18
+ RDKIT_PARTIALCHARGES_EXPORT void computeGasteigerCharges(
19
+ const ROMol *mol, int nIter = 12, bool throwOnParamFailure = false);
20
+ RDKIT_PARTIALCHARGES_EXPORT void computeGasteigerCharges(
21
+ const ROMol &mol, int nIter = 12, bool throwOnParamFailure = false);
22
+ RDKIT_PARTIALCHARGES_EXPORT void computeGasteigerCharges(
23
+ const ROMol &mol, std::vector<double> &charges, int nIter = 12,
24
+ bool throwOnParamFailure = false);
25
+ } // namespace RDKit
26
+
27
+ #endif