rdkit_chem 2025.09.3.1-x86_64-linux
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.
- checksums.yaml +7 -0
- data/CMakeLists.txt +713 -0
- data/Code/CMakeLists.txt +44 -0
- data/Code/RubyWrappers/Abbreviations.i +19 -0
- data/Code/RubyWrappers/AddHs.i +34 -0
- data/Code/RubyWrappers/Atom.i +165 -0
- data/Code/RubyWrappers/AtomIterators.i +77 -0
- data/Code/RubyWrappers/AtomPairs.i +95 -0
- data/Code/RubyWrappers/AvalonLib.i +41 -0
- data/Code/RubyWrappers/BitOps.i +72 -0
- data/Code/RubyWrappers/Bond.i +87 -0
- data/Code/RubyWrappers/BondIterators.i +61 -0
- data/Code/RubyWrappers/CMakeLists.txt +67 -0
- data/Code/RubyWrappers/Canon.i +40 -0
- data/Code/RubyWrappers/ChemDraw.i +81 -0
- data/Code/RubyWrappers/ChemReactions.i +166 -0
- data/Code/RubyWrappers/ChemTransforms.i +126 -0
- data/Code/RubyWrappers/Conformer.i +69 -0
- data/Code/RubyWrappers/Descriptors.i +64 -0
- data/Code/RubyWrappers/Dict.i +45 -0
- data/Code/RubyWrappers/DistGeom.i +217 -0
- data/Code/RubyWrappers/DiversityPick.h +49 -0
- data/Code/RubyWrappers/DiversityPick.i +10 -0
- data/Code/RubyWrappers/ErrorGenerator.i +73 -0
- data/Code/RubyWrappers/ExplicitBitVect.i +76 -0
- data/Code/RubyWrappers/FMCS.i +63 -0
- data/Code/RubyWrappers/FilterCatalog.i +154 -0
- data/Code/RubyWrappers/Fingerprints.i +56 -0
- data/Code/RubyWrappers/ForceField.i +161 -0
- data/Code/RubyWrappers/GeneralizedSubstruct.i +38 -0
- data/Code/RubyWrappers/GenericRDKitException.h +27 -0
- data/Code/RubyWrappers/Inchi.i +38 -0
- data/Code/RubyWrappers/MolBundle.i +16 -0
- data/Code/RubyWrappers/MolDraw2D.i +117 -0
- data/Code/RubyWrappers/MolEnumerator.i +45 -0
- data/Code/RubyWrappers/MolHash.i +25 -0
- data/Code/RubyWrappers/MolOps.i +72 -0
- data/Code/RubyWrappers/MolStandardize.i +37 -0
- data/Code/RubyWrappers/MolSupplier.i +83 -0
- data/Code/RubyWrappers/MolTransforms.i +39 -0
- data/Code/RubyWrappers/MolWriters.i +41 -0
- data/Code/RubyWrappers/MonomerInfo.i +42 -0
- data/Code/RubyWrappers/MorganFingerprints.h +21 -0
- data/Code/RubyWrappers/MorganFingerprints.i +66 -0
- data/Code/RubyWrappers/PeriodicTable.i +44 -0
- data/Code/RubyWrappers/Queries.i +289 -0
- data/Code/RubyWrappers/QueryAtom.i +47 -0
- data/Code/RubyWrappers/QueryBond.i +47 -0
- data/Code/RubyWrappers/QueryOps.i +44 -0
- data/Code/RubyWrappers/RDKitExceptions.i +75 -0
- data/Code/RubyWrappers/RDLogger.i +74 -0
- data/Code/RubyWrappers/RDProps.i +44 -0
- data/Code/RubyWrappers/RGroupDecomposition.i +52 -0
- data/Code/RubyWrappers/ROMol.i +695 -0
- data/Code/RubyWrappers/RWMol.i +241 -0
- data/Code/RubyWrappers/RascalMCES.i +71 -0
- data/Code/RubyWrappers/ReactionFingerprints.i +37 -0
- data/Code/RubyWrappers/RingInfo.i +40 -0
- data/Code/RubyWrappers/Rings.i +40 -0
- data/Code/RubyWrappers/SanitException.i +100 -0
- data/Code/RubyWrappers/ScaffoldNetwork.i +28 -0
- data/Code/RubyWrappers/SmartsWrite.i +38 -0
- data/Code/RubyWrappers/SmilesParse.i +40 -0
- data/Code/RubyWrappers/SmilesWrite.i +42 -0
- data/Code/RubyWrappers/StereoGroup.i +16 -0
- data/Code/RubyWrappers/Streams.i +67 -0
- data/Code/RubyWrappers/Subgraphs.i +53 -0
- data/Code/RubyWrappers/Subset.i +75 -0
- data/Code/RubyWrappers/SubstanceGroup.i +91 -0
- data/Code/RubyWrappers/SubstructLibrary.i +80 -0
- data/Code/RubyWrappers/TautomerQuery.i +19 -0
- data/Code/RubyWrappers/Trajectory.i +34 -0
- data/Code/RubyWrappers/boost_tuple.i +64 -0
- data/Code/RubyWrappers/extend_std_vector.i +10 -0
- data/Code/RubyWrappers/gmwrapper/CMakeLists.txt +69 -0
- data/Code/RubyWrappers/gmwrapper/GraphMolRuby.i +431 -0
- data/Code/RubyWrappers/gmwrapper/std_list.i +65 -0
- data/Code/RubyWrappers/point.i +56 -0
- data/Code/RubyWrappers/transforms.i +60 -0
- data/Code/RubyWrappers/types.i +40 -0
- data/README.md +24 -0
- data/Rakefile +130 -0
- data/ext/rdkit_chem/CMakeLists.txt +69 -0
- data/ext/rdkit_chem/Makefile +5 -0
- data/ext/rdkit_chem/extconf.rb +84 -0
- data/lib/rdkit_chem/3.3.0/RDKitChem.so +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitAbbreviations.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitAbbreviations.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitAbbreviations.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitAlignment.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitAlignment.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitAlignment.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitCIPLabeler.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitCIPLabeler.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitCIPLabeler.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitCatalogs.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitCatalogs.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitCatalogs.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitChemDraw.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitChemDraw.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitChemDraw.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitChemReactions.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitChemReactions.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitChemReactions.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitChemTransforms.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitChemTransforms.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitChemTransforms.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitChemicalFeatures.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitChemicalFeatures.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitChemicalFeatures.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitDataStructs.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitDataStructs.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitDataStructs.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitDepictor.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitDepictor.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitDepictor.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitDeprotect.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitDeprotect.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitDeprotect.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitDescriptors.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitDescriptors.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitDescriptors.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitDistGeomHelpers.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitDistGeomHelpers.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitDistGeomHelpers.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitDistGeometry.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitDistGeometry.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitDistGeometry.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitEigenSolvers.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitEigenSolvers.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitEigenSolvers.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitEnumerateStereoisomers.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitEnumerateStereoisomers.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitEnumerateStereoisomers.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitFMCS.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitFMCS.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitFMCS.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitFileParsers.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitFileParsers.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitFileParsers.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitFilterCatalog.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitFilterCatalog.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitFilterCatalog.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitFingerprints.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitFingerprints.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitFingerprints.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitForceField.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitForceField.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitForceField.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitForceFieldHelpers.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitForceFieldHelpers.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitForceFieldHelpers.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitFragCatalog.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitFragCatalog.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitFragCatalog.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitGeneralizedSubstruct.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitGeneralizedSubstruct.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitGeneralizedSubstruct.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitGenericGroups.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitGenericGroups.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitGenericGroups.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitGraphMol.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitGraphMol.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitGraphMol.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitInfoTheory.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitInfoTheory.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitInfoTheory.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitMMPA.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitMMPA.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitMMPA.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitMarvinParser.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitMarvinParser.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitMarvinParser.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitMolAlign.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitMolAlign.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitMolAlign.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitMolCatalog.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitMolCatalog.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitMolCatalog.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitMolChemicalFeatures.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitMolChemicalFeatures.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitMolChemicalFeatures.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitMolDraw2D.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitMolDraw2D.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitMolDraw2D.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitMolEnumerator.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitMolEnumerator.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitMolEnumerator.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitMolHash.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitMolHash.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitMolHash.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitMolInteractionFields.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitMolInteractionFields.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitMolInteractionFields.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitMolInterchange.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitMolInterchange.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitMolInterchange.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitMolProcessing.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitMolProcessing.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitMolProcessing.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitMolStandardize.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitMolStandardize.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitMolStandardize.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitMolTransforms.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitMolTransforms.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitMolTransforms.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitO3AAlign.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitO3AAlign.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitO3AAlign.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitOptimizer.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitOptimizer.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitOptimizer.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitPartialCharges.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitPartialCharges.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitPartialCharges.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitPubChemShape.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitPubChemShape.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitPubChemShape.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitRDChemDrawLib.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitRDChemDrawLib.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitRDChemDrawLib.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitRDChemDrawReactionLib.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitRDChemDrawReactionLib.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitRDChemDrawReactionLib.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitRDGeneral.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitRDGeneral.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitRDGeneral.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitRDGeometryLib.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitRDGeometryLib.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitRDGeometryLib.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitRDStreams.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitRDStreams.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitRDStreams.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitRGroupDecomposition.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitRGroupDecomposition.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitRGroupDecomposition.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitRascalMCES.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitRascalMCES.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitRascalMCES.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitReducedGraphs.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitReducedGraphs.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitReducedGraphs.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitRingDecomposerLib.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitRingDecomposerLib.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitRingDecomposerLib.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitSLNParse.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitSLNParse.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitSLNParse.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitScaffoldNetwork.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitScaffoldNetwork.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitScaffoldNetwork.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitShapeHelpers.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitShapeHelpers.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitShapeHelpers.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitSimDivPickers.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitSimDivPickers.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitSimDivPickers.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitSmilesParse.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitSmilesParse.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitSmilesParse.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitSubgraphs.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitSubgraphs.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitSubgraphs.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitSubstructLibrary.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitSubstructLibrary.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitSubstructLibrary.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitSubstructMatch.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitSubstructMatch.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitSubstructMatch.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitSynthonSpaceSearch.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitSynthonSpaceSearch.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitSynthonSpaceSearch.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitTautomerQuery.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitTautomerQuery.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitTautomerQuery.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitTrajectory.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitTrajectory.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitTrajectory.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitcoordgen.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitcoordgen.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitcoordgen.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitga.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitga.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitga.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKithc.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKithc.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKithc.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitmaeparser.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitmaeparser.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitmaeparser.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/3.3.0/libRDKitpubchem_align3d.so +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitpubchem_align3d.so.1 +1 -0
- data/lib/rdkit_chem/3.3.0/libRDKitpubchem_align3d.so.1.2026.03.1pre +0 -0
- data/lib/rdkit_chem/version.rb +4 -0
- data/lib/rdkit_chem.rb +32 -0
- data/test/test_rdkit_chem.rb +47 -0
- metadata +364 -0
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* $Id$
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2010, Novartis Institutes for BioMedical Research Inc.
|
|
5
|
+
* All rights reserved.
|
|
6
|
+
*
|
|
7
|
+
* Redistribution and use in source and binary forms, with or without
|
|
8
|
+
* modification, are permitted provided that the following conditions are
|
|
9
|
+
* met:
|
|
10
|
+
*
|
|
11
|
+
* * Redistributions of source code must retain the above copyright
|
|
12
|
+
* notice, this list of conditions and the following disclaimer.
|
|
13
|
+
* * Redistributions in binary form must reproduce the above
|
|
14
|
+
* copyright notice, this list of conditions and the following
|
|
15
|
+
* disclaimer in the documentation and/or other materials provided
|
|
16
|
+
* with the distribution.
|
|
17
|
+
* * Neither the name of Novartis Institutes for BioMedical Research Inc.
|
|
18
|
+
* nor the names of its contributors may be used to endorse or promote
|
|
19
|
+
* products derived from this software without specific prior written permission.
|
|
20
|
+
*
|
|
21
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
22
|
+
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
23
|
+
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
24
|
+
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
25
|
+
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
26
|
+
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
27
|
+
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
28
|
+
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
29
|
+
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
30
|
+
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
31
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
32
|
+
*/
|
|
33
|
+
|
|
34
|
+
%{
|
|
35
|
+
#include <DataStructs/ExplicitBitVect.h>
|
|
36
|
+
#include <DataStructs/BitOps.h>
|
|
37
|
+
#include <GraphMol/Fingerprints/FingerprintUtil.h>
|
|
38
|
+
#include <GraphMol/Fingerprints/Fingerprints.h>
|
|
39
|
+
#include <GraphMol/Fingerprints/MACCS.h>
|
|
40
|
+
%}
|
|
41
|
+
|
|
42
|
+
// Use base types (unsigned int) to avoid duplicate swig::traits definitions
|
|
43
|
+
%template(UIntPair) std::pair<unsigned int,unsigned int>;
|
|
44
|
+
%template(UIntPairVect) std::vector<std::pair<unsigned int,unsigned int> >;
|
|
45
|
+
%template(BitInfoMap) std::map<unsigned int,std::vector<std::pair<unsigned int,unsigned int> > >;
|
|
46
|
+
%newobject RDKit::RDKFingerprintMol;
|
|
47
|
+
%newobject RDKit::LayeredFingerprintMol;
|
|
48
|
+
%newobject RDKit::PatternFingerprintMol;
|
|
49
|
+
%include <GraphMol/Fingerprints/Fingerprints.h>
|
|
50
|
+
|
|
51
|
+
%newobject RDKit::MACCSFingerprints::getFingerprintAsBitVect;
|
|
52
|
+
%rename(MACCSFingerprintMol) RDKit::MACCSFingerprints::getFingerprintAsBitVect;
|
|
53
|
+
%include <GraphMol/Fingerprints/MACCS.h>
|
|
54
|
+
|
|
55
|
+
%ignore RDKit::RDKitFPUtils::enumerateAllPaths;
|
|
56
|
+
%include <GraphMol/Fingerprints/FingerprintUtil.h>
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* $Id$
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2010, Novartis Institutes for BioMedical Research Inc.
|
|
5
|
+
* All rights reserved.
|
|
6
|
+
*
|
|
7
|
+
* Redistribution and use in source and binary forms, with or without
|
|
8
|
+
* modification, are permitted provided that the following conditions are
|
|
9
|
+
* met:
|
|
10
|
+
*
|
|
11
|
+
* * Redistributions of source code must retain the above copyright
|
|
12
|
+
* notice, this list of conditions and the following disclaimer.
|
|
13
|
+
* * Redistributions in binary form must reproduce the above
|
|
14
|
+
* copyright notice, this list of conditions and the following
|
|
15
|
+
* disclaimer in the documentation and/or other materials provided
|
|
16
|
+
* with the distribution.
|
|
17
|
+
* * Neither the name of Novartis Institutes for BioMedical Research Inc.
|
|
18
|
+
* nor the names of its contributors may be used to endorse or promote
|
|
19
|
+
* products derived from this software without specific prior written permission.
|
|
20
|
+
*
|
|
21
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
22
|
+
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
23
|
+
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
24
|
+
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
25
|
+
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
26
|
+
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
27
|
+
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
28
|
+
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
29
|
+
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
30
|
+
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
31
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
32
|
+
*/
|
|
33
|
+
%{
|
|
34
|
+
#include <ForceField/ForceField.h>
|
|
35
|
+
#include <GraphMol/ForceFieldHelpers/UFF/AtomTyper.h>
|
|
36
|
+
#include <GraphMol/ForceFieldHelpers/UFF/Builder.h>
|
|
37
|
+
#include <GraphMol/ForceFieldHelpers/MMFF/AtomTyper.h>
|
|
38
|
+
#include <GraphMol/ForceFieldHelpers/MMFF/Builder.h>
|
|
39
|
+
#include <ForceField/Contrib.h>
|
|
40
|
+
#include <ForceField/UFF/Params.h>
|
|
41
|
+
#include <ForceField/UFF/AngleBend.h>
|
|
42
|
+
#include <ForceField/UFF/BondStretch.h>
|
|
43
|
+
#include <ForceField/UFF/Contribs.h>
|
|
44
|
+
#include <ForceField/DistanceConstraint.h>
|
|
45
|
+
#include <ForceField/UFF/Nonbonded.h>
|
|
46
|
+
#include <ForceField/UFF/TorsionAngle.h>
|
|
47
|
+
#include <ForceField/UFF/Inversion.h>
|
|
48
|
+
#include <boost/tuple/tuple.hpp>
|
|
49
|
+
#include <GraphMol/ROMol.h>
|
|
50
|
+
%}
|
|
51
|
+
|
|
52
|
+
// We have trouble with the definition as it is -- make it a Point3D_Vect instead
|
|
53
|
+
%ignore ForceFields::ForceField::positions();
|
|
54
|
+
%ignore ForceFields::ForceField::positions() const;
|
|
55
|
+
%rename(get) ForceFields::UFF::ParamCollection::operator();
|
|
56
|
+
|
|
57
|
+
%include <ForceField/ForceField.h>
|
|
58
|
+
%include <ForceField/Contrib.h>
|
|
59
|
+
%include <ForceField/UFF/Params.h>
|
|
60
|
+
%include <ForceField/UFF/AngleBend.h>
|
|
61
|
+
%include <ForceField/UFF/BondStretch.h>
|
|
62
|
+
%include <ForceField/DistanceConstraint.h>
|
|
63
|
+
%include <ForceField/UFF/Nonbonded.h>
|
|
64
|
+
%include <ForceField/UFF/TorsionAngle.h>
|
|
65
|
+
%include <ForceField/UFF/Inversion.h>
|
|
66
|
+
|
|
67
|
+
%template(FF_Contrib_Vect) std::vector<ForceFields::ContribPtr>;
|
|
68
|
+
%extend ForceFields::ForceField {
|
|
69
|
+
std::vector<RDGeom::Point3D *> &positions3D () {
|
|
70
|
+
return ((std::vector<RDGeom::Point3D *> &) ($self)->positions());
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
static int UFFOptimizeMolecule(RDKit::ROMol &mol, int maxIters=200,
|
|
74
|
+
double vdwThresh=10.0, int confId=-1,
|
|
75
|
+
bool ignoreInterfragInteractions=true ) {
|
|
76
|
+
|
|
77
|
+
ForceFields::ForceField *ff=RDKit::UFF::constructForceField(mol,vdwThresh, confId, ignoreInterfragInteractions);
|
|
78
|
+
ff->initialize();
|
|
79
|
+
int res=ff->minimize(maxIters);
|
|
80
|
+
delete ff;
|
|
81
|
+
return res;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
%newobject UFFGetMoleculeForceField;
|
|
85
|
+
static ForceFields::ForceField *UFFGetMoleculeForceField(RDKit::ROMol &mol,
|
|
86
|
+
double vdwThresh=10.0,
|
|
87
|
+
int confId=-1,
|
|
88
|
+
bool ignoreInterfragInteractions=true ) {
|
|
89
|
+
|
|
90
|
+
ForceFields::ForceField *ff=RDKit::UFF::constructForceField(mol,vdwThresh, confId, ignoreInterfragInteractions);
|
|
91
|
+
ff->initialize();
|
|
92
|
+
return ff;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
static bool UFFHasAllMoleculeParams(const RDKit::ROMol &mol){
|
|
96
|
+
RDKit::UFF::AtomicParamVect types;
|
|
97
|
+
bool foundAll;
|
|
98
|
+
boost::tie(types,foundAll)=RDKit::UFF::getAtomTypes(mol);
|
|
99
|
+
return foundAll;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/* From GraphMol/ForceFieldHelpers/UFF/AtomTyper.h */
|
|
103
|
+
static void UFFAddAtomChargeFlags(const RDKit::Atom *atom, std::string &atomKey, bool tolerateChargeMismatch=true) {
|
|
104
|
+
RDKit::UFF::Tools::addAtomChargeFlags(atom, atomKey, tolerateChargeMismatch);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
static std::string UFFGetAtomLabel(const RDKit::Atom *atom) {
|
|
108
|
+
return RDKit::UFF::Tools::getAtomLabel(atom);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/* From GraphMol/ForceFieldHelpers/UFF/AtomTyper.h */
|
|
112
|
+
static std::pair<std::vector<const ForceFields::UFF::AtomicParams *>,bool> UFFGetAtomTypes(const RDKit::ROMol &mol, const std::string ¶mData="") {
|
|
113
|
+
return RDKit::UFF::getAtomTypes(mol, paramData);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
static int MMFFOptimizeMolecule(RDKit::ROMol &mol,
|
|
117
|
+
std::string mmffVariant="MMFF94",
|
|
118
|
+
int maxIters=200,
|
|
119
|
+
double nonBondedThresh=100.0, int confId=-1,
|
|
120
|
+
bool ignoreInterfragInteractions=true ) {
|
|
121
|
+
int res=1;
|
|
122
|
+
RDKit::MMFF::MMFFMolProperties mmffMolProperties(mol, mmffVariant);
|
|
123
|
+
|
|
124
|
+
if (mmffMolProperties.isValid()) {
|
|
125
|
+
ForceFields::ForceField *ff = RDKit::MMFF::constructForceField(mol,
|
|
126
|
+
&mmffMolProperties, nonBondedThresh, confId, ignoreInterfragInteractions);
|
|
127
|
+
ff->initialize();
|
|
128
|
+
res = ff->minimize(maxIters);
|
|
129
|
+
delete ff;
|
|
130
|
+
} else {
|
|
131
|
+
BOOST_LOG(rdErrorLog) << "Could not construct MMFF force field"<<std::endl;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
return res;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
%newobject MMFFGetMoleculeForceField;
|
|
138
|
+
static ForceFields::ForceField *MMFFGetMoleculeForceField(RDKit::ROMol &mol,
|
|
139
|
+
std::string mmffVariant="MMFF94",
|
|
140
|
+
double nonBondedThresh=100.0,
|
|
141
|
+
int confId=-1,
|
|
142
|
+
bool ignoreInterfragInteractions=true ) {
|
|
143
|
+
|
|
144
|
+
ForceFields::ForceField *ff = 0;
|
|
145
|
+
RDKit::MMFF::MMFFMolProperties mmffMolProperties(mol, mmffVariant);
|
|
146
|
+
if (mmffMolProperties.isValid()) {
|
|
147
|
+
ff = RDKit::MMFF::constructForceField(mol,
|
|
148
|
+
&mmffMolProperties, nonBondedThresh,
|
|
149
|
+
confId, ignoreInterfragInteractions);
|
|
150
|
+
ff->initialize();
|
|
151
|
+
} else {
|
|
152
|
+
BOOST_LOG(rdErrorLog) << "Could not construct MMFF force field"<<std::endl;
|
|
153
|
+
}
|
|
154
|
+
return ff;
|
|
155
|
+
}
|
|
156
|
+
static bool MMFFHasAllMoleculeParams(RDKit::ROMol &mol){
|
|
157
|
+
RDKit::MMFF::MMFFMolProperties mmffMolProperties(mol);
|
|
158
|
+
return mmffMolProperties.isValid();
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/*
|
|
2
|
+
*
|
|
3
|
+
* This file is part of the RDKit.
|
|
4
|
+
* The contents are covered by the terms of the BSD license
|
|
5
|
+
* which is included in the file license.txt, found at the root
|
|
6
|
+
* of the RDKit source tree.
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
#if SWIG_VERSION >= 0x040101
|
|
11
|
+
%include <std_unique_ptr.i>
|
|
12
|
+
%unique_ptr(ExplicitBitVect)
|
|
13
|
+
#endif
|
|
14
|
+
|
|
15
|
+
%{
|
|
16
|
+
#include <GraphMol/GeneralizedSubstruct/XQMol.h>
|
|
17
|
+
%}
|
|
18
|
+
|
|
19
|
+
#if SWIG_VERSION < 0x040101
|
|
20
|
+
%ignore patternFingerprintTargetMol(const ROMol &mol, unsigned int fpSize = 2048U);
|
|
21
|
+
%ignore patternFingerprintQuery(unsigned int fpSize = 2048U) const;
|
|
22
|
+
#endif
|
|
23
|
+
|
|
24
|
+
%ignore ExtendedQueryMol(std::unique_ptr<RWMol> mol);
|
|
25
|
+
%ignore ExtendedQueryMol(std::unique_ptr<MolBundle> mol);
|
|
26
|
+
%ignore ExtendedQueryMol(std::unique_ptr<TautomerQuery> mol);
|
|
27
|
+
%ignore ExtendedQueryMol(
|
|
28
|
+
std::unique_ptr<std::vector<std::unique_ptr<TautomerQuery>>> tqs);
|
|
29
|
+
%ignore xqmol;
|
|
30
|
+
|
|
31
|
+
%include "GraphMol/GeneralizedSubstruct/XQMol.h";
|
|
32
|
+
|
|
33
|
+
%extend RDKit::GeneralizedSubstruct::ExtendedQueryMol {
|
|
34
|
+
std::vector< std::vector<std::pair<int, int> > > getSubstructMatches(RDKit::ROMol &target,RDKit::SubstructMatchParameters ps = RDKit::SubstructMatchParameters()){
|
|
35
|
+
std::vector<RDKit::MatchVectType> mvs = SubstructMatch(target, *($self),ps);
|
|
36
|
+
return mvs;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// $Id: GenericRDKitException.h
|
|
2
|
+
//
|
|
3
|
+
// @@ All Rights Reserved @@
|
|
4
|
+
// This file is part of the RDKit.
|
|
5
|
+
// The contents are covered by the terms of the BSD license
|
|
6
|
+
// which is included in the file license.txt, found at the root
|
|
7
|
+
// of the RDKit source tree.
|
|
8
|
+
//
|
|
9
|
+
|
|
10
|
+
// A generic exception (to cause a corresponding one to be created in Java)
|
|
11
|
+
|
|
12
|
+
#include <RDGeneral/export.h>
|
|
13
|
+
#include <exception>
|
|
14
|
+
|
|
15
|
+
namespace RDKit {
|
|
16
|
+
|
|
17
|
+
class GenericRDKitException : public std::exception {
|
|
18
|
+
public:
|
|
19
|
+
GenericRDKitException(const std::string &i) : _value(i){};
|
|
20
|
+
GenericRDKitException(const char *msg) : _value(msg){};
|
|
21
|
+
const char *what() const noexcept override { return _value.c_str(); };
|
|
22
|
+
~GenericRDKitException() noexcept {};
|
|
23
|
+
|
|
24
|
+
private:
|
|
25
|
+
std::string _value;
|
|
26
|
+
};
|
|
27
|
+
} // namespace RDKit
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* $Id$
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2010, Novartis Institutes for BioMedical Research Inc.
|
|
5
|
+
* All rights reserved.
|
|
6
|
+
*
|
|
7
|
+
* Redistribution and use in source and binary forms, with or without
|
|
8
|
+
* modification, are permitted provided that the following conditions are
|
|
9
|
+
* met:
|
|
10
|
+
*
|
|
11
|
+
* * Redistributions of source code must retain the above copyright
|
|
12
|
+
* notice, this list of conditions and the following disclaimer.
|
|
13
|
+
* * Redistributions in binary form must reproduce the above
|
|
14
|
+
* copyright notice, this list of conditions and the following
|
|
15
|
+
* disclaimer in the documentation and/or other materials provided
|
|
16
|
+
* with the distribution.
|
|
17
|
+
* * Neither the name of Novartis Institutes for BioMedical Research Inc.
|
|
18
|
+
* nor the names of its contributors may be used to endorse or promote
|
|
19
|
+
* products derived from this software without specific prior written permission.
|
|
20
|
+
*
|
|
21
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
22
|
+
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
23
|
+
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
24
|
+
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
25
|
+
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
26
|
+
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
27
|
+
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
28
|
+
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
29
|
+
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
30
|
+
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
31
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
32
|
+
*/
|
|
33
|
+
|
|
34
|
+
%{
|
|
35
|
+
#include <INCHI-API/inchi.h>
|
|
36
|
+
%}
|
|
37
|
+
%include <INCHI-API/inchi.h>
|
|
38
|
+
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) 2020, Greg Landrum and T5 Informatics GmbH
|
|
4
|
+
* All rights reserved.
|
|
5
|
+
*
|
|
6
|
+
* This file is part of the RDKit.
|
|
7
|
+
* The contents are covered by the terms of the BSD license
|
|
8
|
+
* which is included in the file license.txt, found at the root
|
|
9
|
+
* of the RDKit source tree.
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
%{
|
|
13
|
+
#include <GraphMol/MolBundle.h>
|
|
14
|
+
%}
|
|
15
|
+
|
|
16
|
+
%include<GraphMol/MolBundle.h>
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/*
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) 2015, Novartis Institutes for BioMedical Research Inc.
|
|
4
|
+
* All rights reserved.
|
|
5
|
+
*
|
|
6
|
+
* Redistribution and use in source and binary forms, with or without
|
|
7
|
+
* modification, are permitted provided that the following conditions are
|
|
8
|
+
* met:
|
|
9
|
+
*
|
|
10
|
+
* * Redistributions of source code must retain the above copyright
|
|
11
|
+
* notice, this list of conditions and the following disclaimer.
|
|
12
|
+
* * Redistributions in binary form must reproduce the above
|
|
13
|
+
* copyright notice, this list of conditions and the following
|
|
14
|
+
* disclaimer in the documentation and/or other materials provided
|
|
15
|
+
* with the distribution.
|
|
16
|
+
* * Neither the name of Novartis Institutes for BioMedical Research Inc.
|
|
17
|
+
* nor the names of its contributors may be used to endorse or promote
|
|
18
|
+
* products derived from this software without specific prior written permission.
|
|
19
|
+
*
|
|
20
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
21
|
+
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
22
|
+
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
23
|
+
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
24
|
+
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
25
|
+
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
26
|
+
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
27
|
+
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
28
|
+
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
29
|
+
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
30
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
31
|
+
*/
|
|
32
|
+
%include "boost_tuple.i"
|
|
33
|
+
%include "std_vector.i"
|
|
34
|
+
%include "std_map.i"
|
|
35
|
+
%include "std_pair.i"
|
|
36
|
+
%{
|
|
37
|
+
#include <GraphMol/RDKitBase.h>
|
|
38
|
+
#include <GraphMol/MolDraw2D/MolDraw2DHelpers.h>
|
|
39
|
+
#include <GraphMol/MolDraw2D/MolDraw2D.h>
|
|
40
|
+
#include <GraphMol/MolDraw2D/MolDraw2DSVG.h>
|
|
41
|
+
#include <GraphMol/MolDraw2D/MolDraw2DUtils.h>
|
|
42
|
+
#include <map>
|
|
43
|
+
#include <vector>
|
|
44
|
+
#include <utility>
|
|
45
|
+
%}
|
|
46
|
+
|
|
47
|
+
%template(Int_String_Map) std::map< int, std::string >;
|
|
48
|
+
%template(ColourPalette) std::map< int, RDKit::DrawColour >;
|
|
49
|
+
%template(Colour_Vect) std::vector< RDKit::DrawColour >;
|
|
50
|
+
%template(MultipleColourPalette) std::map< int, std::vector< RDKit::DrawColour > >;
|
|
51
|
+
%template(Int_Double_Map) std::map< int, double >;
|
|
52
|
+
%template(Float_Pair) std::pair<float,float>;
|
|
53
|
+
%template(Float_Pair_Vect) std::vector< std::pair<float,float> >;
|
|
54
|
+
%template(ROMol_Ptr_Vect) std::vector<RDKit::ROMol*>;
|
|
55
|
+
%template(Point2D_Vect) std::vector<RDGeom::Point2D *>;
|
|
56
|
+
%template(ColourPalette_Vect) std::vector< std::map< int, RDKit::DrawColour > >;
|
|
57
|
+
%template(Int_Double_Map_Vect) std::vector< std::map< int, double > >;
|
|
58
|
+
|
|
59
|
+
%ignore RDKit::MolDraw2DSVG::MolDraw2DSVG(int,int,std::ostream &);
|
|
60
|
+
%ignore RDKit::MolDraw2DUtils::contourAndDrawGaussians(
|
|
61
|
+
MolDraw2D &, const std::vector<Point2D> &,
|
|
62
|
+
const std::vector<double> &, const std::vector<double> &,
|
|
63
|
+
size_t, std::vector<double> &,
|
|
64
|
+
const ContourParams &);
|
|
65
|
+
%ignore RDKit::MolDraw2DUtils::contourAndDrawGaussians(
|
|
66
|
+
MolDraw2D &, const std::vector<Point2D> &,
|
|
67
|
+
const std::vector<double> &, const std::vector<double> &,
|
|
68
|
+
size_t, ContourParams &);
|
|
69
|
+
%ignore RDKit::MolDraw2DUtils::contourAndDrawGaussians;
|
|
70
|
+
%ignore RDKit::MolDraw2DUtils::contourAndDrawGrid;
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
%include <GraphMol/MolDraw2D/MolDraw2DHelpers.h>
|
|
74
|
+
%include <GraphMol/MolDraw2D/MolDraw2D.h>
|
|
75
|
+
%include <GraphMol/MolDraw2D/MolDraw2DSVG.h>
|
|
76
|
+
%include <GraphMol/MolDraw2D/MolDraw2DUtils.h>
|
|
77
|
+
|
|
78
|
+
%inline %{
|
|
79
|
+
void ContourAndDrawGaussians(
|
|
80
|
+
RDKit::MolDraw2D &drawer, const std::vector<RDGeom::Point2D *> &p_locs,
|
|
81
|
+
const std::vector<double> &heights, const std::vector<double> &widths,
|
|
82
|
+
size_t nContours, std::vector<double> &levels,
|
|
83
|
+
const RDKit::MolDraw2DUtils::ContourParams &ps = RDKit::MolDraw2DUtils::ContourParams()){
|
|
84
|
+
std::vector<Point2D> locs;
|
|
85
|
+
locs.reserve(p_locs.size());
|
|
86
|
+
for(const auto *p : p_locs){
|
|
87
|
+
locs.push_back(*p);
|
|
88
|
+
}
|
|
89
|
+
contourAndDrawGaussians(drawer,locs,heights,widths,nContours,levels,ps);
|
|
90
|
+
};
|
|
91
|
+
void ContourAndDrawGaussians(
|
|
92
|
+
RDKit::MolDraw2D &drawer, const std::vector<RDGeom::Point2D *> &p_locs,
|
|
93
|
+
const std::vector<double> &heights, const std::vector<double> &widths,
|
|
94
|
+
size_t nContours = 10,
|
|
95
|
+
const RDKit::MolDraw2DUtils::ContourParams &ps = RDKit::MolDraw2DUtils::ContourParams()){
|
|
96
|
+
std::vector<Point2D> locs;
|
|
97
|
+
locs.reserve(p_locs.size());
|
|
98
|
+
for(const auto *p : p_locs){
|
|
99
|
+
locs.push_back(*p);
|
|
100
|
+
}
|
|
101
|
+
contourAndDrawGaussians(drawer,locs,heights,widths,nContours,ps);
|
|
102
|
+
};
|
|
103
|
+
void ContourAndDrawGrid(
|
|
104
|
+
RDKit::MolDraw2D &drawer, const std::vector<double> &p_grid,
|
|
105
|
+
const std::vector<double> &xcoords, const std::vector<double> &ycoords,
|
|
106
|
+
size_t nContours, std::vector<double> &levels,
|
|
107
|
+
const RDKit::MolDraw2DUtils::ContourParams &ps = RDKit::MolDraw2DUtils::ContourParams()){
|
|
108
|
+
contourAndDrawGrid(drawer,p_grid.data(),xcoords,ycoords,nContours,levels,ps);
|
|
109
|
+
};
|
|
110
|
+
void ContourAndDrawGrid(
|
|
111
|
+
RDKit::MolDraw2D &drawer, const std::vector<double> &p_grid,
|
|
112
|
+
const std::vector<double> &xcoords, const std::vector<double> &ycoords,
|
|
113
|
+
size_t nContours=10,
|
|
114
|
+
const RDKit::MolDraw2DUtils::ContourParams &ps = RDKit::MolDraw2DUtils::ContourParams()){
|
|
115
|
+
contourAndDrawGrid(drawer,p_grid.data(),xcoords,ycoords,nContours,ps);
|
|
116
|
+
};
|
|
117
|
+
%}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/*
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) 2020-2021, Greg Landrum and T5 Informatics GmbH
|
|
4
|
+
* All rights reserved.
|
|
5
|
+
*
|
|
6
|
+
* This file is part of the RDKit.
|
|
7
|
+
* The contents are covered by the terms of the BSD license
|
|
8
|
+
* which is included in the file license.txt, found at the root
|
|
9
|
+
* of the RDKit source tree.
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
%{
|
|
13
|
+
#include <GraphMol/MolEnumerator/MolEnumerator.h>
|
|
14
|
+
%}
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
%ignore RDKit::MolEnumerator::detail::idxPropName;
|
|
18
|
+
%ignore RDKit::MolEnumerator::detail::preserveOrigIndices;
|
|
19
|
+
%ignore RDKit::MolEnumerator::detail::removeOrigIndices;
|
|
20
|
+
|
|
21
|
+
%ignore RDKit::MolEnumerator::MolEnumeratorOp;
|
|
22
|
+
%ignore RDKit::MolEnumerator::PositionVariationOp;
|
|
23
|
+
%ignore RDKit::MolEnumerator::LinkNodeOp;
|
|
24
|
+
%ignore RDKit::MolEnumerator::RepeatUnitOp;
|
|
25
|
+
|
|
26
|
+
%inline %{
|
|
27
|
+
|
|
28
|
+
RDKit::MolEnumerator::MolEnumeratorParams getLinkNodeParams(){
|
|
29
|
+
RDKit::MolEnumerator::MolEnumeratorParams res;
|
|
30
|
+
res.dp_operation.reset(new RDKit::MolEnumerator::LinkNodeOp());
|
|
31
|
+
return res;
|
|
32
|
+
}
|
|
33
|
+
RDKit::MolEnumerator::MolEnumeratorParams getPositionVariationParams(){
|
|
34
|
+
RDKit::MolEnumerator::MolEnumeratorParams res;
|
|
35
|
+
res.dp_operation.reset(new RDKit::MolEnumerator::PositionVariationOp());
|
|
36
|
+
return res;
|
|
37
|
+
}
|
|
38
|
+
RDKit::MolEnumerator::MolEnumeratorParams getRepeatUnitParams(){
|
|
39
|
+
RDKit::MolEnumerator::MolEnumeratorParams res;
|
|
40
|
+
res.dp_operation.reset(new RDKit::MolEnumerator::RepeatUnitOp());
|
|
41
|
+
return res;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
%}
|
|
45
|
+
%include<GraphMol/MolEnumerator/MolEnumerator.h>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2019 Greg Landrum
|
|
3
|
+
* All rights reserved.
|
|
4
|
+
*
|
|
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
|
+
|
|
11
|
+
%include "std_string.i"
|
|
12
|
+
|
|
13
|
+
%{
|
|
14
|
+
#include <GraphMol/MolHash/MolHash.h>
|
|
15
|
+
%}
|
|
16
|
+
|
|
17
|
+
%ignore RDKit::MolHash::generateMoleculeHashCode;
|
|
18
|
+
%ignore RDKit::MolHash::CodeFlags;
|
|
19
|
+
%ignore RDKit::MolHash::fillAtomBondCodes;
|
|
20
|
+
%ignore RDKit::MolHash::HashSet;
|
|
21
|
+
%ignore RDKit::MolHash::generateMoleculeHashSet;
|
|
22
|
+
%ignore RDKit::MolHash::encode;
|
|
23
|
+
|
|
24
|
+
%include<GraphMol/MolHash/nmmolhash.h>
|
|
25
|
+
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/*
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) 2010, Novartis Institutes for BioMedical Research Inc.
|
|
4
|
+
* All rights reserved.
|
|
5
|
+
*
|
|
6
|
+
* Redistribution and use in source and binary forms, with or without
|
|
7
|
+
* modification, are permitted provided that the following conditions are
|
|
8
|
+
* met:
|
|
9
|
+
*
|
|
10
|
+
* * Redistributions of source code must retain the above copyright
|
|
11
|
+
* notice, this list of conditions and the following disclaimer.
|
|
12
|
+
* * Redistributions in binary form must reproduce the above
|
|
13
|
+
* copyright notice, this list of conditions and the following
|
|
14
|
+
* disclaimer in the documentation and/or other materials provided
|
|
15
|
+
* with the distribution.
|
|
16
|
+
* * Neither the name of Novartis Institutes for BioMedical Research Inc.
|
|
17
|
+
* nor the names of its contributors may be used to endorse or promote
|
|
18
|
+
* products derived from this software without specific prior written permission.
|
|
19
|
+
*
|
|
20
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
21
|
+
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
22
|
+
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
23
|
+
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
24
|
+
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
25
|
+
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
26
|
+
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
27
|
+
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
28
|
+
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
29
|
+
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
30
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
31
|
+
*/
|
|
32
|
+
%include "std_pair.i"
|
|
33
|
+
|
|
34
|
+
%{
|
|
35
|
+
#include <GraphMol/MolOps.h>
|
|
36
|
+
%}
|
|
37
|
+
|
|
38
|
+
%template(MolSanitizeException_Vect) std::vector<boost::shared_ptr<RDKit::MolSanitizeException>>;
|
|
39
|
+
|
|
40
|
+
%newobject RDKit::MolOps::renumberAtoms;
|
|
41
|
+
%newobject RDKit::MolOps::removeHs;
|
|
42
|
+
%newobject RDKit::MolOps::addHs;
|
|
43
|
+
%newobject RDKit::MolOps::removeAllHs;
|
|
44
|
+
%newobject RDKit::MolOps::mergeQueryHs;
|
|
45
|
+
%newobject RDKit::MolOps::adjustQueryProperties;
|
|
46
|
+
|
|
47
|
+
%ignore RDKit::MolOps::detectChemistryProblems;
|
|
48
|
+
// Ignore all native sanitizeMol overloads - we provide a custom wrapper below
|
|
49
|
+
%ignore RDKit::MolOps::sanitizeMol;
|
|
50
|
+
%include <GraphMol/MolOps.h>
|
|
51
|
+
%template(BoolPair) std::pair<bool, bool>;
|
|
52
|
+
|
|
53
|
+
%inline %{
|
|
54
|
+
int sanitizeMol(RDKit::RWMol &mol,int sanitizeOps){
|
|
55
|
+
unsigned int opThatFailed;
|
|
56
|
+
try{
|
|
57
|
+
RDKit::MolOps::sanitizeMol(mol,opThatFailed,
|
|
58
|
+
static_cast<unsigned int>(sanitizeOps));
|
|
59
|
+
} catch(...) {
|
|
60
|
+
|
|
61
|
+
}
|
|
62
|
+
return static_cast<int>(opThatFailed);
|
|
63
|
+
};
|
|
64
|
+
std::vector<boost::shared_ptr<RDKit::MolSanitizeException>> detectChemistryProblems(RDKit::ROMol &mol,int sanitizeOps=RDKit::MolOps::SANITIZE_ALL){
|
|
65
|
+
std::vector<boost::shared_ptr<RDKit::MolSanitizeException>> res;
|
|
66
|
+
auto probs = RDKit::MolOps::detectChemistryProblems(mol,sanitizeOps);
|
|
67
|
+
for(const auto &exc_ptr : probs) {
|
|
68
|
+
res.push_back(boost::shared_ptr<RDKit::MolSanitizeException>(exc_ptr->copy()));
|
|
69
|
+
}
|
|
70
|
+
return res;
|
|
71
|
+
};
|
|
72
|
+
%}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
%{
|
|
2
|
+
#include <GraphMol/MolStandardize/MolStandardize.h>
|
|
3
|
+
#include <GraphMol/MolStandardize/Pipeline.h>
|
|
4
|
+
|
|
5
|
+
namespace RDKit {
|
|
6
|
+
namespace MolStandardize {
|
|
7
|
+
bool operator==(const PipelineLogEntry & rhs, const PipelineLogEntry & lhs) {
|
|
8
|
+
return (rhs.status == lhs.status) && (rhs.detail == lhs.detail);
|
|
9
|
+
}
|
|
10
|
+
bool operator!=(const PipelineLogEntry & rhs, const PipelineLogEntry & lhs) {
|
|
11
|
+
return !(rhs == lhs);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
%}
|
|
16
|
+
|
|
17
|
+
%include <std_vector.i>
|
|
18
|
+
namespace std {
|
|
19
|
+
%template(PipelineLog) std::vector<RDKit::MolStandardize::PipelineLogEntry>;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
%newobject RDKit::MolStandardize::cleanup;
|
|
23
|
+
%newobject RDKit::MolStandardize::normalize;
|
|
24
|
+
%newobject RDKit::MolStandardize::reionize;
|
|
25
|
+
%newobject RDKit::MolStandardize::removeFragments;
|
|
26
|
+
%newobject RDKit::MolStandardize::canonicalTautomer;
|
|
27
|
+
%newobject RDKit::MolStandardize::tautomerParent;
|
|
28
|
+
%newobject RDKit::MolStandardize::fragmentParent;
|
|
29
|
+
%newobject RDKit::MolStandardize::stereoParent;
|
|
30
|
+
%newobject RDKit::MolStandardize::isotopeParent;
|
|
31
|
+
%newobject RDKit::MolStandardize::chargeParent;
|
|
32
|
+
%newobject RDKit::MolStandardize::superParent;
|
|
33
|
+
%newobject RDKit::MolStandardize::disconnectOrganometallics;
|
|
34
|
+
|
|
35
|
+
%include <GraphMol/MolStandardize/MolStandardize.h>
|
|
36
|
+
|
|
37
|
+
%include <GraphMol/MolStandardize/Pipeline.h>
|