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,45 @@
|
|
|
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
|
+
|
|
33
|
+
%{
|
|
34
|
+
#include <RDGeneral/types.h>
|
|
35
|
+
#include <RDGeneral/Dict.h>
|
|
36
|
+
%}
|
|
37
|
+
|
|
38
|
+
// This requires SWIG 4.2 or higher
|
|
39
|
+
%include "std_string_view.i"
|
|
40
|
+
|
|
41
|
+
%ignore RDKit::Dict::Pair;
|
|
42
|
+
%ignore RDKit::PairHolder;
|
|
43
|
+
%include <RDGeneral/Dict.h>
|
|
44
|
+
|
|
45
|
+
|
|
@@ -0,0 +1,217 @@
|
|
|
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 <DistGeom/ChiralSet.h>
|
|
35
|
+
#include <DistGeom/BoundsMatrix.h>
|
|
36
|
+
#include <DistGeom/DistGeomUtils.h>
|
|
37
|
+
#include <GraphMol/DistGeomHelpers/BoundsMatrixBuilder.h>
|
|
38
|
+
#include <GraphMol/DistGeomHelpers/Embedder.h>
|
|
39
|
+
#include <DistGeom/TriangleSmooth.h>
|
|
40
|
+
#include <GraphMol/ROMol.h>
|
|
41
|
+
%}
|
|
42
|
+
|
|
43
|
+
// This prevents duplicate definitions in Ruby code (due to 2 C++ functions resolving to the same Ruby function)
|
|
44
|
+
%ignore RDKit::DGeomHelpers::initBoundsMat(DistGeom::BoundsMatPtr, double, double);
|
|
45
|
+
%ignore RDKit::DGeomHelpers::initBoundsMat(DistGeom::BoundsMatPtr,double);
|
|
46
|
+
%ignore RDKit::DGeomHelpers::initBoundsMat(DistGeom::BoundsMatPtr);
|
|
47
|
+
|
|
48
|
+
// This conflicts with definitions in UFF::, so ignore and make it a method on the bounds matrix
|
|
49
|
+
%ignore DistGeom::constructForceField;
|
|
50
|
+
|
|
51
|
+
%include <DistGeom/ChiralSet.h>
|
|
52
|
+
%include <DistGeom/BoundsMatrix.h>
|
|
53
|
+
%include <GraphMol/DistGeomHelpers/BoundsMatrixBuilder.h>
|
|
54
|
+
%include <DistGeom/DistGeomUtils.h>
|
|
55
|
+
%include <DistGeom/TriangleSmooth.h>
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
%ignore RDKit::DGeomHelpers::EmbedMolecule;
|
|
59
|
+
%ignore RDKit::DGeomHelpers::EmbedMultipleConfs;
|
|
60
|
+
// make sure the struct has a copy constructor:
|
|
61
|
+
%copyctor RDKit::DGeomHelpers::EmbedParameters;
|
|
62
|
+
|
|
63
|
+
// we want to ignore the const global parameter objects because SWIG does a
|
|
64
|
+
// poor job of making them read-only when they are exposed.
|
|
65
|
+
%ignore RDKit::DGeomHelpers::KDG;
|
|
66
|
+
%ignore RDKit::DGeomHelpers::ETDG;
|
|
67
|
+
%ignore RDKit::DGeomHelpers::ETKDG;
|
|
68
|
+
%ignore RDKit::DGeomHelpers::ETKDGv2;
|
|
69
|
+
%ignore RDKit::DGeomHelpers::ETKDGv3;
|
|
70
|
+
%ignore RDKit::DGeomHelpers::srETKDGv3;
|
|
71
|
+
|
|
72
|
+
%include <GraphMol/DistGeomHelpers/Embedder.h>
|
|
73
|
+
|
|
74
|
+
// create functions to return copies of the global parameter objects
|
|
75
|
+
%newobject RDKit::DGeomHelpers::getKDG;
|
|
76
|
+
%newobject RDKit::DGeomHelpers::getETDG;
|
|
77
|
+
%newobject RDKit::DGeomHelpers::getETKDG;
|
|
78
|
+
%newobject RDKit::DGeomHelpers::getETKDGv2;
|
|
79
|
+
%newobject RDKit::DGeomHelpers::getETKDGv3;
|
|
80
|
+
%newobject RDKit::DGeomHelpers::getsrETKDGv3;
|
|
81
|
+
%inline {
|
|
82
|
+
namespace RDKit{
|
|
83
|
+
namespace DGeomHelpers {
|
|
84
|
+
EmbedParameters *getKDG() {
|
|
85
|
+
return new EmbedParameters(KDG);
|
|
86
|
+
}
|
|
87
|
+
EmbedParameters *getETDG() {
|
|
88
|
+
return new EmbedParameters(ETDG);
|
|
89
|
+
}
|
|
90
|
+
EmbedParameters *getETKDG() {
|
|
91
|
+
return new EmbedParameters(ETKDG);
|
|
92
|
+
}
|
|
93
|
+
EmbedParameters *getETKDGv2() {
|
|
94
|
+
return new EmbedParameters(ETKDGv2);
|
|
95
|
+
}
|
|
96
|
+
EmbedParameters *getETKDGv3() {
|
|
97
|
+
return new EmbedParameters(ETKDGv3);
|
|
98
|
+
}
|
|
99
|
+
EmbedParameters *getsrETKDGv3() {
|
|
100
|
+
return new EmbedParameters(srETKDGv3);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
// A class to hang special distance geometry methods on.
|
|
107
|
+
%inline {
|
|
108
|
+
namespace DistGeom {
|
|
109
|
+
class DistanceGeom {
|
|
110
|
+
public:
|
|
111
|
+
|
|
112
|
+
/* From Embedder.h */
|
|
113
|
+
static int EmbedMolecule(RDKit::ROMol &mol,
|
|
114
|
+
unsigned int maxIterations=0, int seed=-1,
|
|
115
|
+
bool clearConfs=true,
|
|
116
|
+
bool useRandomCoords=false,double boxSizeMult=2.0,
|
|
117
|
+
bool randNegEig=true,
|
|
118
|
+
unsigned int numZeroFail=1,
|
|
119
|
+
const std::map<int,RDGeom::Point3D> *coordMap=0,
|
|
120
|
+
double optimizerForceTol=1e-3,
|
|
121
|
+
bool ignoreSmoothingFailures=false,
|
|
122
|
+
bool enforceChirality=true,
|
|
123
|
+
bool useExpTorsionAnglePrefs=false,
|
|
124
|
+
bool useBasicKnowledge=false,
|
|
125
|
+
bool verbose=false,
|
|
126
|
+
double basinThresh=5.0) {
|
|
127
|
+
|
|
128
|
+
return RDKit::DGeomHelpers::EmbedMolecule(mol,
|
|
129
|
+
maxIterations, seed,
|
|
130
|
+
clearConfs,
|
|
131
|
+
useRandomCoords, boxSizeMult,
|
|
132
|
+
randNegEig,
|
|
133
|
+
numZeroFail,
|
|
134
|
+
coordMap,
|
|
135
|
+
optimizerForceTol,
|
|
136
|
+
ignoreSmoothingFailures,
|
|
137
|
+
enforceChirality,
|
|
138
|
+
useExpTorsionAnglePrefs,
|
|
139
|
+
useBasicKnowledge,
|
|
140
|
+
verbose,
|
|
141
|
+
basinThresh);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
static int EmbedMolecule(RDKit::ROMol &mol,RDKit::DGeomHelpers::EmbedParameters ¶ms) {
|
|
145
|
+
return RDKit::DGeomHelpers::EmbedMolecule(mol,params);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
static RDKit::INT_VECT EmbedMultipleConfs(RDKit::ROMol &mol,
|
|
149
|
+
unsigned int numConfs=10,
|
|
150
|
+
unsigned int maxIterations=30,
|
|
151
|
+
int seed=-1, bool clearConfs=true,
|
|
152
|
+
bool useRandomCoords=false,double boxSizeMult=2.0,
|
|
153
|
+
bool randNegEig=true, unsigned int numZeroFail=1,
|
|
154
|
+
double pruneRmsThresh=-1.0,
|
|
155
|
+
const std::map<int,RDGeom::Point3D> *coordMap=0,
|
|
156
|
+
double optimizerForceTol=1e-3,
|
|
157
|
+
bool ignoreSmoothingFailures=false,
|
|
158
|
+
bool enforceChirality=true,
|
|
159
|
+
bool useExpTorsionAnglePrefs=false,
|
|
160
|
+
bool useBasicKnowledge=false,
|
|
161
|
+
bool verbose=false,
|
|
162
|
+
double basinThresh=5.0) {
|
|
163
|
+
|
|
164
|
+
return RDKit::DGeomHelpers::EmbedMultipleConfs(mol,
|
|
165
|
+
numConfs,
|
|
166
|
+
maxIterations,
|
|
167
|
+
seed, clearConfs,
|
|
168
|
+
useRandomCoords,boxSizeMult,
|
|
169
|
+
randNegEig, numZeroFail,
|
|
170
|
+
pruneRmsThresh,
|
|
171
|
+
coordMap,
|
|
172
|
+
optimizerForceTol,
|
|
173
|
+
ignoreSmoothingFailures,
|
|
174
|
+
enforceChirality,
|
|
175
|
+
useExpTorsionAnglePrefs,
|
|
176
|
+
useBasicKnowledge,
|
|
177
|
+
verbose,
|
|
178
|
+
basinThresh);
|
|
179
|
+
}
|
|
180
|
+
static RDKit::INT_VECT EmbedMultipleConfs(RDKit::ROMol &mol,
|
|
181
|
+
unsigned int numConfs,
|
|
182
|
+
RDKit::DGeomHelpers::EmbedParameters ¶ms) {
|
|
183
|
+
return RDKit::DGeomHelpers::EmbedMultipleConfs(mol, numConfs, params);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
static void SetTopolBounds(RDKit::ROMol &mol,
|
|
187
|
+
DistGeom::BoundsMatrix* mmat,
|
|
188
|
+
bool set15bounds=true, bool scaleVDW=false) {
|
|
189
|
+
|
|
190
|
+
DistGeom::BoundsMatPtr* mmatAsSmartPtr = new DistGeom::BoundsMatPtr(mmat);
|
|
191
|
+
RDKit::DGeomHelpers::setTopolBounds(mol, *mmatAsSmartPtr, set15bounds, scaleVDW);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
static ForceFields::ForceField *ConstructForceField(DistGeom::BoundsMatrix& mmat,
|
|
195
|
+
RDGeom::PointPtrVect &positions, const VECT_CHIRALSET &csets,
|
|
196
|
+
double weightChiral=1.0,
|
|
197
|
+
double weightFourthDim=0.1,
|
|
198
|
+
std::map< std::pair<int,int>,double> *extraWeights=0,
|
|
199
|
+
double basinSizeTol=5.0) {
|
|
200
|
+
|
|
201
|
+
return DistGeom::constructForceField(mmat, positions, csets,
|
|
202
|
+
weightChiral,
|
|
203
|
+
weightFourthDim,
|
|
204
|
+
extraWeights,
|
|
205
|
+
basinSizeTol);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
// This is hard to override in Ruby, so do it here.
|
|
209
|
+
static bool ComputeInitialCoords(const RDNumeric::SymmMatrix<double> &distmat,
|
|
210
|
+
std::vector<RDGeom::Point3D *> &positions, bool randNegEig=false,
|
|
211
|
+
unsigned int numZeroFail=2) {
|
|
212
|
+
|
|
213
|
+
return DistGeom::computeInitialCoords(distmat, (RDGeom::PointPtrVect &) positions, randNegEig, numZeroFail);
|
|
214
|
+
}
|
|
215
|
+
};
|
|
216
|
+
}
|
|
217
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
#include <RDGeneral/export.h>
|
|
2
|
+
#include <list>
|
|
3
|
+
#include <map>
|
|
4
|
+
#include <DataStructs/BitOps.h>
|
|
5
|
+
#include <DataStructs/ExplicitBitVect.h>
|
|
6
|
+
#include <SimDivPickers/MaxMinPicker.h>
|
|
7
|
+
#include <RDGeneral/Exceptions.h>
|
|
8
|
+
|
|
9
|
+
namespace {
|
|
10
|
+
class taniFunctor {
|
|
11
|
+
public:
|
|
12
|
+
taniFunctor(const std::vector<ExplicitBitVect> &ebvs, bool useCache)
|
|
13
|
+
: df_useCache(useCache), d_ebvs(ebvs) {}
|
|
14
|
+
double operator()(unsigned int i, unsigned int j) {
|
|
15
|
+
double res;
|
|
16
|
+
if (df_useCache) {
|
|
17
|
+
std::pair<unsigned int, unsigned int> idxPair(i, j);
|
|
18
|
+
if (this->d_cache.count(idxPair) > 0) {
|
|
19
|
+
res = this->d_cache[idxPair];
|
|
20
|
+
} else {
|
|
21
|
+
res = 1. - TanimotoSimilarity(d_ebvs[i], d_ebvs[j]);
|
|
22
|
+
this->d_cache[idxPair] = res;
|
|
23
|
+
}
|
|
24
|
+
} else {
|
|
25
|
+
res = 1. - TanimotoSimilarity(d_ebvs[i], d_ebvs[j]);
|
|
26
|
+
}
|
|
27
|
+
return res;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
private:
|
|
31
|
+
bool df_useCache;
|
|
32
|
+
const std::vector<ExplicitBitVect> &d_ebvs;
|
|
33
|
+
std::map<std::pair<unsigned int, unsigned int>, double> d_cache;
|
|
34
|
+
};
|
|
35
|
+
} // namespace
|
|
36
|
+
|
|
37
|
+
std::vector<int> pickUsingFingerprints(
|
|
38
|
+
const std::vector<ExplicitBitVect> &ebvs, unsigned int nToPick,
|
|
39
|
+
int seed = -1, std::vector<int> firstPicks = std::vector<int>(),
|
|
40
|
+
bool useCache = true) {
|
|
41
|
+
if (nToPick >= ebvs.size())
|
|
42
|
+
throw ValueErrorException("nToPick is larger than the vector size");
|
|
43
|
+
std::vector<int> res;
|
|
44
|
+
|
|
45
|
+
RDPickers::MaxMinPicker picker;
|
|
46
|
+
taniFunctor ftor(ebvs, useCache);
|
|
47
|
+
res = picker.lazyPick(ftor, ebvs.size(), nToPick, firstPicks, seed);
|
|
48
|
+
return res;
|
|
49
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
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 <DistGeom/ChiralSet.h>
|
|
35
|
+
#include <DistGeom/BoundsMatrix.h>
|
|
36
|
+
#include <DistGeom/DistGeomUtils.h>
|
|
37
|
+
#include <GraphMol/DistGeomHelpers/BoundsMatrixBuilder.h>
|
|
38
|
+
#include <GraphMol/DistGeomHelpers/Embedder.h>
|
|
39
|
+
#include <DistGeom/TriangleSmooth.h>
|
|
40
|
+
#include <GraphMol/ROMol.h>
|
|
41
|
+
%}
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
// A class to generate errors at the C++ level to make sure they are trapped and don't kill the JVM.
|
|
45
|
+
%inline {
|
|
46
|
+
namespace BadCode {
|
|
47
|
+
|
|
48
|
+
class ErrorGenerator {
|
|
49
|
+
|
|
50
|
+
public:
|
|
51
|
+
|
|
52
|
+
void badAlloc_1() {
|
|
53
|
+
double* myarray= new double[2000000000];
|
|
54
|
+
|
|
55
|
+
};
|
|
56
|
+
void badAlloc_2() {
|
|
57
|
+
int* myarray= new int[-1];
|
|
58
|
+
|
|
59
|
+
};
|
|
60
|
+
void badCall () {
|
|
61
|
+
int (*f)() = NULL;
|
|
62
|
+
(*f)();
|
|
63
|
+
};
|
|
64
|
+
int badAccess () {
|
|
65
|
+
int *i = (int *) -1;
|
|
66
|
+
int j = *i;
|
|
67
|
+
return j;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
|
|
@@ -0,0 +1,76 @@
|
|
|
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/BitVect.h>
|
|
36
|
+
#include <DataStructs/ExplicitBitVect.h>
|
|
37
|
+
%}
|
|
38
|
+
|
|
39
|
+
%ignore ExplicitBitVect::dp_bits;
|
|
40
|
+
%ignore ExplicitBitVect::getOnBits (IntVect& v) const;
|
|
41
|
+
%ignore ExplicitBitVect::ExplicitBitVect(unsigned int,bool);
|
|
42
|
+
|
|
43
|
+
%include <DataStructs/ExplicitBitVect.h>
|
|
44
|
+
%newobject ExplicitBitVect::getOnBits;
|
|
45
|
+
%extend ExplicitBitVect {
|
|
46
|
+
IntVect *getOnBits() {
|
|
47
|
+
IntVect* bits = new IntVect;
|
|
48
|
+
($self)->getOnBits(*bits);
|
|
49
|
+
return bits;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
void andOperator(const ExplicitBitVect & other) {
|
|
53
|
+
*($self) &= other;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
void orOperator(const ExplicitBitVect & other) {
|
|
57
|
+
*($self) |= other;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
void xorOperator(const ExplicitBitVect & other) {
|
|
61
|
+
*($self) ^= other;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
void copy(const ExplicitBitVect &other) {
|
|
65
|
+
*($self) = other;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
const std::string toByteArray() {
|
|
69
|
+
return ($self)->toString();
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
ExplicitBitVect(const std::vector<unsigned char> & data ) {
|
|
73
|
+
std::string str(data.begin(), data.end());
|
|
74
|
+
return new ExplicitBitVect(str);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/*
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) 2014, 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
|
+
|
|
33
|
+
%{
|
|
34
|
+
#include <GraphMol/FMCS/FMCS.h>
|
|
35
|
+
%}
|
|
36
|
+
|
|
37
|
+
%ignore MCSParameters;
|
|
38
|
+
%ignore MCSParametersInternal;
|
|
39
|
+
%ignore findMCS(const std::vector<ROMOL_SPTR>& mols, const MCSParameters* params);
|
|
40
|
+
%ignore checkAtomRingMatch(const MCSAtomCompareParameters& p,
|
|
41
|
+
const ROMol& mol1, unsigned int atom1,
|
|
42
|
+
const ROMol& mol2, unsigned int atom2);
|
|
43
|
+
%ignore checkAtomCharge(const MCSAtomCompareParameters& p,
|
|
44
|
+
const ROMol& mol1, unsigned int atom1,
|
|
45
|
+
const ROMol& mol2, unsigned int atom2);
|
|
46
|
+
%ignore checkAtomChirality(const MCSAtomCompareParameters& p,
|
|
47
|
+
const ROMol& mol1, unsigned int atom1,
|
|
48
|
+
const ROMol& mol2, unsigned int atom2);
|
|
49
|
+
%ignore checkBondStereo(const MCSBondCompareParameters& p,
|
|
50
|
+
const ROMol& mol1, unsigned int bond1,
|
|
51
|
+
const ROMol& mol2, unsigned int bond2);
|
|
52
|
+
%ignore checkBondRingMatch(const MCSBondCompareParameters &p,
|
|
53
|
+
const ROMol& mol1, unsigned int bond1,
|
|
54
|
+
const ROMol& mol2, unsigned int bond2,
|
|
55
|
+
void* v_ringMatchMatrixSet);
|
|
56
|
+
%include <GraphMol/FMCS/FMCS.h>
|
|
57
|
+
|
|
58
|
+
%{
|
|
59
|
+
|
|
60
|
+
RDKit::MCSResult findMCS(const std::vector<RDKit::ROMOL_SPTR>& mols){
|
|
61
|
+
return RDKit::findMCS(mols,static_cast<const RDKit::MCSParameters *>(NULL));
|
|
62
|
+
};
|
|
63
|
+
%}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2015, Novartis Institutes for BioMedical Research Inc.
|
|
3
|
+
* All rights reserved.
|
|
4
|
+
*
|
|
5
|
+
* Redistribution and use in source and binary forms, with or without
|
|
6
|
+
* modification, are permitted provided that the following conditions are
|
|
7
|
+
* met:
|
|
8
|
+
*
|
|
9
|
+
* * Redistributions of source code must retain the above copyright
|
|
10
|
+
* notice, this list of conditions and the following disclaimer.
|
|
11
|
+
* * Redistributions in binary form must reproduce the above
|
|
12
|
+
* copyright notice, this list of conditions and the following
|
|
13
|
+
* disclaimer in the documentation and/or other materials provided
|
|
14
|
+
* with the distribution.
|
|
15
|
+
* * Neither the name of Novartis Institutes for BioMedical Research Inc.
|
|
16
|
+
* nor the names of its contributors may be used to endorse or promote
|
|
17
|
+
* products derived from this software without specific prior written permission.
|
|
18
|
+
*
|
|
19
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
20
|
+
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
21
|
+
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
22
|
+
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
23
|
+
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
24
|
+
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
25
|
+
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
26
|
+
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
27
|
+
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
28
|
+
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
29
|
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
30
|
+
*/
|
|
31
|
+
|
|
32
|
+
//%import "ROMol.i"
|
|
33
|
+
%include "std_string.i"
|
|
34
|
+
%include "std_vector.i"
|
|
35
|
+
%include <boost_shared_ptr.i>
|
|
36
|
+
%shared_ptr(RDKit::FilterCatalogEntry)
|
|
37
|
+
|
|
38
|
+
%{
|
|
39
|
+
#include <../RDGeneral/Dict.h>
|
|
40
|
+
#include <../Catalogs/Catalog.h>
|
|
41
|
+
#include <../Catalogs/CatalogParams.h>
|
|
42
|
+
#include <GraphMol/FilterCatalog/FilterMatcherBase.h>
|
|
43
|
+
#include <GraphMol/FilterCatalog/FilterCatalogEntry.h>
|
|
44
|
+
#include <GraphMol/FilterCatalog/FilterCatalog.h>
|
|
45
|
+
|
|
46
|
+
// bug fix for swig, it removes these from their namespaces
|
|
47
|
+
typedef RDCatalog::Catalog<RDKit::FilterCatalogEntry, RDKit::FilterCatalogParams>::paramType_t paramType_t;
|
|
48
|
+
|
|
49
|
+
typedef std::vector<std::string> STR_VECT;
|
|
50
|
+
%}
|
|
51
|
+
|
|
52
|
+
// FilterCatalog vector templates removed - Ruby SWIG lacks swig::traits for custom shared_ptr types
|
|
53
|
+
// %template(FilterCatalogEntry_Vect) std::vector< boost::shared_ptr<RDKit::FilterCatalogEntry> >;
|
|
54
|
+
// %template(FilterCatalogEntry_VectVect) std::vector<std::vector< boost::shared_ptr<const RDKit::FilterCatalogEntry> > >;
|
|
55
|
+
// %template(FilterCatalogEntryVect) std::vector< const RDKit::FilterCatalogEntry* >;
|
|
56
|
+
%template(UChar_Vect) std::vector<unsigned char>;
|
|
57
|
+
// %template(FilterMatch_Vect) std::vector<RDKit::FilterMatch>;
|
|
58
|
+
|
|
59
|
+
%include <../RDGeneral/Dict.h>
|
|
60
|
+
%include <../Catalogs/Catalog.h>
|
|
61
|
+
%include <../Catalogs/CatalogParams.h>
|
|
62
|
+
%include <GraphMol/Substruct/SubstructMatch.h>
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
%extend RDKit::FilterMatch {
|
|
66
|
+
MatchVectType getAtomMatches() {
|
|
67
|
+
return ($self)->atomPairs;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
%newobject RDKit::FilterCatalogEntry::getProp;
|
|
72
|
+
%extend RDKit::FilterCatalogEntry {
|
|
73
|
+
std::string getProp(const std::string key){
|
|
74
|
+
std::string res;
|
|
75
|
+
($self)->getProp(key, res);
|
|
76
|
+
return res;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
std::vector<RDKit::FilterMatch> getFilterMatches(const ROMol &mol) {
|
|
80
|
+
std::vector<RDKit::FilterMatch> matches;
|
|
81
|
+
($self)->getFilterMatches(mol, matches);
|
|
82
|
+
return matches;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
%extend RDKit::FilterCatalog {
|
|
87
|
+
FilterCatalog(const std::vector<unsigned char> & data ) {
|
|
88
|
+
std::string str(data.begin(), data.end());
|
|
89
|
+
return new RDKit::FilterCatalog(str);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
static bool canSerialize() {
|
|
93
|
+
return RDKit::FilterCatalogCanSerialize();
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
// boost does a bad job of wrapping shared_ptr<const T> so we will do the
|
|
97
|
+
// unthinkable and cast away const.
|
|
98
|
+
// Also we can't use FilterCatalog::SENTRY because swig thinks it is a new
|
|
99
|
+
// type. Bad swig!
|
|
100
|
+
boost::shared_ptr<RDKit::FilterCatalogEntry> getFirstMatch(const ROMol &mol) {
|
|
101
|
+
RDKit::FilterCatalog::CONST_SENTRY res = self->getFirstMatch(mol);
|
|
102
|
+
return boost::const_pointer_cast<RDKit::FilterCatalogEntry>(res);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
std::vector<boost::shared_ptr<RDKit::FilterCatalogEntry> > getMatches(const ROMol &mol) {
|
|
106
|
+
std::vector<RDKit::FilterCatalog::CONST_SENTRY> matches = self->getMatches(mol);
|
|
107
|
+
std::vector<RDKit::FilterCatalog::SENTRY> res;
|
|
108
|
+
res.reserve(matches.size());
|
|
109
|
+
for (size_t i=0; i< matches.size(); ++i) {
|
|
110
|
+
res.push_back( boost::const_pointer_cast<RDKit::FilterCatalogEntry>(matches[i]) );
|
|
111
|
+
}
|
|
112
|
+
return res;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
// re-wrap swig is making duplicate entries for some strange reason
|
|
116
|
+
unsigned int addEntry(boost::shared_ptr<RDKit::FilterCatalogEntry> entry) {
|
|
117
|
+
return self->addEntry(entry);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
bool removeEntry(boost::shared_ptr<RDKit::FilterCatalogEntry> entry) {
|
|
121
|
+
return self->removeEntry(entry);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
// swig const-ptr shenanigans again
|
|
125
|
+
boost::shared_ptr<RDKit::FilterCatalogEntry> getEntry(unsigned int idx) const {
|
|
126
|
+
return boost::const_pointer_cast<RDKit::FilterCatalogEntry>(
|
|
127
|
+
self->getEntry(idx));
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
unsigned int getIdxForEntry(const boost::shared_ptr<FilterCatalogEntry> &entry) const {
|
|
131
|
+
return self->getIdxForEntry(entry);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
%ignore RDKit::FilterCatalog(const std::string &);
|
|
136
|
+
%ignore RDKit::FilterCatalog::getFirstMatch;
|
|
137
|
+
%ignore RDKit::FilterCatalog::getMatches;
|
|
138
|
+
%ignore RDKit::FilterCatalog::addEntry;
|
|
139
|
+
%ignore RDKit::FilterCatalog::removeEntry;
|
|
140
|
+
%ignore RDKit::FilterCatalog::setCatalogParams;
|
|
141
|
+
%ignore RDKit::FilterCatalog::getIdxForEntry;
|
|
142
|
+
%ignore RDKit::FilterCatalog::getEntryWithIdx;
|
|
143
|
+
|
|
144
|
+
%ignore RDKit::FilterMatch::operator==;
|
|
145
|
+
%ignore std::vector<RDKit::FilterMatch>::operator==;
|
|
146
|
+
|
|
147
|
+
//%ignore RDKit::FilterCatalogEntry::getPropList;
|
|
148
|
+
%ignore RDKit::Dict::getPropList;
|
|
149
|
+
|
|
150
|
+
%immutable RDKit::DEFAULT_FILTERMATCHERBASE_NAME;
|
|
151
|
+
|
|
152
|
+
%include <GraphMol/FilterCatalog/FilterMatcherBase.h>
|
|
153
|
+
%include <GraphMol/FilterCatalog/FilterCatalogEntry.h>
|
|
154
|
+
%include <GraphMol/FilterCatalog/FilterCatalog.h>
|