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
data/Code/CMakeLists.txt
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
createExportTestHeaders()
|
|
2
|
+
add_subdirectory(RDGeneral)
|
|
3
|
+
if(RDK_BUILD_PYTHON_WRAPPERS)
|
|
4
|
+
add_subdirectory(RDBoost)
|
|
5
|
+
endif(RDK_BUILD_PYTHON_WRAPPERS)
|
|
6
|
+
add_subdirectory(RDStreams)
|
|
7
|
+
add_subdirectory(DataStructs)
|
|
8
|
+
add_subdirectory(Geometry)
|
|
9
|
+
|
|
10
|
+
add_subdirectory(Numerics)
|
|
11
|
+
add_subdirectory(ForceField)
|
|
12
|
+
add_subdirectory(DistGeom)
|
|
13
|
+
add_subdirectory(Catalogs)
|
|
14
|
+
|
|
15
|
+
add_subdirectory(GraphMol)
|
|
16
|
+
add_subdirectory(Query)
|
|
17
|
+
add_subdirectory(Features)
|
|
18
|
+
|
|
19
|
+
add_subdirectory(DataManip)
|
|
20
|
+
if(RDK_BIG_ENDIAN)
|
|
21
|
+
message("Skipping build of SimDivPickers on big endian system")
|
|
22
|
+
else(RDK_BIG_ENDIAN)
|
|
23
|
+
add_subdirectory(SimDivPickers)
|
|
24
|
+
endif(RDK_BIG_ENDIAN)
|
|
25
|
+
|
|
26
|
+
add_subdirectory(ML)
|
|
27
|
+
add_subdirectory(ChemicalFeatures)
|
|
28
|
+
|
|
29
|
+
if(RDK_BUILD_SWIG_WRAPPERS)
|
|
30
|
+
add_subdirectory(RubyWrappers)
|
|
31
|
+
endif()
|
|
32
|
+
|
|
33
|
+
if(RDK_BUILD_PGSQL)
|
|
34
|
+
add_subdirectory(PgSQL/rdkit)
|
|
35
|
+
endif(RDK_BUILD_PGSQL)
|
|
36
|
+
|
|
37
|
+
add_subdirectory(MinimalLib)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
if(RDK_BUILD_FUZZ_TARGETS)
|
|
41
|
+
add_subdirectory(Fuzz)
|
|
42
|
+
endif(RDK_BUILD_FUZZ_TARGETS)
|
|
43
|
+
|
|
44
|
+
add_subdirectory(Bench)
|
|
@@ -0,0 +1,19 @@
|
|
|
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/Abbreviations/Abbreviations.h>
|
|
14
|
+
%}
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
%template(AbbreviationDefinition_Vect) std::vector<RDKit::Abbreviations::AbbreviationDefinition>;
|
|
18
|
+
%template(AbbreviationMatch_Vect) std::vector<RDKit::Abbreviations::AbbreviationMatch>;
|
|
19
|
+
%include <GraphMol/Abbreviations/Abbreviations.h>
|
|
@@ -0,0 +1,34 @@
|
|
|
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 <GraphMol/AddHs.cpp>
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* $Id: Atom.i 2519 2013-05-17 03:01:18Z glandrum $
|
|
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 "std_string.i"
|
|
35
|
+
%include "std_vector.i"
|
|
36
|
+
%include "std_map.i"
|
|
37
|
+
%include "std_pair.i"
|
|
38
|
+
|
|
39
|
+
%{
|
|
40
|
+
#include <Query/QueryObjects.h>
|
|
41
|
+
#include <RDGeneral/types.h>
|
|
42
|
+
#include <GraphMol/ROMol.h>
|
|
43
|
+
#include <GraphMol/PeriodicTable.h>
|
|
44
|
+
#include <GraphMol/SanitException.h>
|
|
45
|
+
#include <GraphMol/Atom.h>
|
|
46
|
+
#include <GraphMol/ConjugHybrid.cpp>
|
|
47
|
+
#include <GraphMol/MolTransforms/MolTransforms.h>
|
|
48
|
+
#include <Geometry/point.h>
|
|
49
|
+
#include <GraphMol/MolOps.h>
|
|
50
|
+
#include <GraphMol/SmilesParse/SmilesWrite.h>
|
|
51
|
+
#include <GraphMol/SmilesParse/SmartsWrite.h>
|
|
52
|
+
|
|
53
|
+
// from Python wrapper
|
|
54
|
+
std::string describeQueryHelper(const RDKit::Atom::QUERYATOM_QUERY *q, unsigned int depth) {
|
|
55
|
+
std::string res;
|
|
56
|
+
if (q) {
|
|
57
|
+
for (unsigned int i = 0; i < depth; ++i) {
|
|
58
|
+
res += " ";
|
|
59
|
+
}
|
|
60
|
+
res += q->getFullDescription() + "\n";
|
|
61
|
+
for (const auto &child :
|
|
62
|
+
boost::make_iterator_range(q->beginChildren(), q->endChildren())) {
|
|
63
|
+
res += describeQueryHelper(child.get(), depth + 1);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
return res;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
%}
|
|
70
|
+
|
|
71
|
+
%ignore RDKit::Atom::Match(const Atom *) const;
|
|
72
|
+
%ignore RDKit::Atom::expandQuery;
|
|
73
|
+
%template(Bond_Vect) std::vector<RDKit::Bond*>;
|
|
74
|
+
|
|
75
|
+
// Ignore ostream operators to prevent redefinition errors
|
|
76
|
+
%ignore RDKit::operator<<;
|
|
77
|
+
|
|
78
|
+
%include <GraphMol/Atom.h>
|
|
79
|
+
|
|
80
|
+
%newobject RDKit::Atom::getProp;
|
|
81
|
+
%newobject RDKit::Atom::getBonds;
|
|
82
|
+
|
|
83
|
+
%extend RDKit::Atom {
|
|
84
|
+
std::string getProp(const std::string key){
|
|
85
|
+
std::string res;
|
|
86
|
+
($self)->getProp(key, res);
|
|
87
|
+
return res;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/* Methods from ConjugHybrid.cpp */
|
|
91
|
+
void markConjAtomBonds() {
|
|
92
|
+
RDKit::markConjAtomBonds(($self));
|
|
93
|
+
}
|
|
94
|
+
int numBondsPlusLonePairs() {
|
|
95
|
+
return RDKit::numBondsPlusLonePairs(($self));
|
|
96
|
+
}
|
|
97
|
+
bool atomHasConjugatedBond() {
|
|
98
|
+
return RDKit::MolOps::atomHasConjugatedBond(($self));
|
|
99
|
+
}
|
|
100
|
+
/* From MolTransforms.h */
|
|
101
|
+
void transformAtom(RDGeom::Transform3D &tform) {
|
|
102
|
+
MolTransforms::transformAtom(($self), tform);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/* Based on Python wrappers and unit tests */
|
|
106
|
+
bool IsInRing(){
|
|
107
|
+
if(!($self)->getOwningMol().getRingInfo()->isInitialized()){
|
|
108
|
+
RDKit::MolOps::findSSSR(($self)->getOwningMol());
|
|
109
|
+
}
|
|
110
|
+
return ($self)->getOwningMol().getRingInfo()->numAtomRings(($self)->getIdx())!=0;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
bool IsInRingSize(int size){
|
|
114
|
+
if(!($self)->getOwningMol().getRingInfo()->isInitialized()){
|
|
115
|
+
RDKit::MolOps::findSSSR(($self)->getOwningMol());
|
|
116
|
+
}
|
|
117
|
+
return ($self)->getOwningMol().getRingInfo()->isAtomInRingOfSize(($self)->getIdx(),size);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
std::vector<RDKit::Bond*> *getBonds() {
|
|
121
|
+
std::vector<RDKit::Bond*> *bonds = new std::vector<RDKit::Bond*>;
|
|
122
|
+
RDKit::ROMol *parent = &($self)->getOwningMol();
|
|
123
|
+
RDKit::ROMol::OEDGE_ITER begin,end;
|
|
124
|
+
boost::tie(begin,end) = parent->getAtomBonds(($self));
|
|
125
|
+
while(begin!=end){
|
|
126
|
+
RDKit::Bond *tmpB = (*parent)[*begin];
|
|
127
|
+
bonds->push_back(tmpB);
|
|
128
|
+
begin++;
|
|
129
|
+
}
|
|
130
|
+
return bonds;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
// also matches ATOM_NULL_QUERY
|
|
134
|
+
void setQuery(RDKit::ATOM_OR_QUERY *query) {
|
|
135
|
+
$self->setQuery(query);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
void setQuery(RDKit::ATOM_EQUALS_QUERY *query) {
|
|
139
|
+
$self->setQuery(query);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
// From Python Wrapper
|
|
143
|
+
std::string AtomGetSmarts(bool doKekule=false, bool allHsExplicit=false,
|
|
144
|
+
bool isomericSmiles=true) {
|
|
145
|
+
std::string res;
|
|
146
|
+
if (($self)->hasQuery()) {
|
|
147
|
+
res = RDKit::SmartsWrite::GetAtomSmarts(static_cast<const RDKit::QueryAtom *>(($self)));
|
|
148
|
+
} else {
|
|
149
|
+
// FIX: this should not be necessary
|
|
150
|
+
res = RDKit::SmilesWrite::GetAtomSmiles(($self), doKekule, nullptr, allHsExplicit,
|
|
151
|
+
isomericSmiles);
|
|
152
|
+
}
|
|
153
|
+
return res;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
// from Python Wrapper
|
|
157
|
+
std::string describeQuery() {
|
|
158
|
+
std::string res = "";
|
|
159
|
+
res = describeQueryHelper(($self)->getQuery(), 0);
|
|
160
|
+
return res;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
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 "std_string.i"
|
|
35
|
+
%include "std_vector.i"
|
|
36
|
+
%include "std_map.i"
|
|
37
|
+
%include "std_pair.i"
|
|
38
|
+
|
|
39
|
+
%{
|
|
40
|
+
#include <GraphMol/AtomIterators.h>
|
|
41
|
+
#include <GraphMol/ROMol.h>
|
|
42
|
+
%}
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
%include <GraphMol/AtomIterators.h>
|
|
46
|
+
/* Equality testing operators have been overloaded, so we need to expose them in a different way.
|
|
47
|
+
These 'rename' lines appear to have to precede the 'template' definitions. */
|
|
48
|
+
%rename(eq) RDKit::AtomIterator_<RDKit::Atom,RDKit::ROMol>::operator==;
|
|
49
|
+
%rename(ne) RDKit::AtomIterator_<RDKit::Atom,RDKit::ROMol>::operator!=;
|
|
50
|
+
%rename(eq) RDKit::HeteroatomIterator_<RDKit::Atom,RDKit::ROMol>::operator==;
|
|
51
|
+
%rename(ne) RDKit::HeteroatomIterator_<RDKit::Atom,RDKit::ROMol>::operator!=;
|
|
52
|
+
%rename(eq) RDKit::AromaticAtomIterator_<RDKit::Atom,RDKit::ROMol>::operator==;
|
|
53
|
+
%rename(ne) RDKit::AromaticAtomIterator_<RDKit::Atom,RDKit::ROMol>::operator!=;
|
|
54
|
+
%rename(eq) RDKit::QueryAtomIterator_<RDKit::Atom,RDKit::ROMol>::operator==;
|
|
55
|
+
%rename(ne) RDKit::QueryAtomIterator_<RDKit::Atom,RDKit::ROMol>::operator!=;
|
|
56
|
+
/* Increment and decrement operators currently necessary */
|
|
57
|
+
%rename(next) RDKit::AtomIterator_<RDKit::Atom,RDKit::ROMol>::operator++;
|
|
58
|
+
%rename(next) RDKit::HeteroatomIterator_<RDKit::Atom,RDKit::ROMol>::operator++;
|
|
59
|
+
%rename(next) RDKit::AromaticAtomIterator_<RDKit::Atom,RDKit::ROMol>::operator++;
|
|
60
|
+
%rename(next) RDKit::QueryAtomIterator_<RDKit::Atom,RDKit::ROMol>::operator++;
|
|
61
|
+
%rename(prev) RDKit::AtomIterator_<RDKit::Atom,RDKit::ROMol>::operator--;
|
|
62
|
+
%rename(prev) RDKit::HeteroatomIterator_<RDKit::Atom,RDKit::ROMol>::operator--;
|
|
63
|
+
%rename(prev) RDKit::AromaticAtomIterator_<RDKit::Atom,RDKit::ROMol>::operator--;
|
|
64
|
+
%rename(prev) RDKit::QueryAtomIterator_<RDKit::Atom,RDKit::ROMol>::operator--;
|
|
65
|
+
/* A better name for the iterator's Atom object */
|
|
66
|
+
%rename(getAtom) RDKit::AtomIterator_<RDKit::Atom,RDKit::ROMol>::operator*;
|
|
67
|
+
%rename(getAtom) RDKit::HeteroatomIterator_<RDKit::Atom,RDKit::ROMol>::operator*;
|
|
68
|
+
%rename(getAtom) RDKit::AromaticAtomIterator_<RDKit::Atom,RDKit::ROMol>::operator*;
|
|
69
|
+
%rename(getAtom) RDKit::QueryAtomIterator_<RDKit::Atom,RDKit::ROMol>::operator*;
|
|
70
|
+
|
|
71
|
+
%template(AtomIterator) RDKit::AtomIterator_<RDKit::Atom,RDKit::ROMol>;
|
|
72
|
+
%template(HeteroatomIterator) RDKit::HeteroatomIterator_<RDKit::Atom,RDKit::ROMol>;
|
|
73
|
+
%template(AromaticAtomIterator) RDKit::AromaticAtomIterator_<RDKit::Atom,RDKit::ROMol>;
|
|
74
|
+
%template(QueryAtomIterator) RDKit::QueryAtomIterator_<RDKit::Atom,RDKit::ROMol>;
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
@@ -0,0 +1,95 @@
|
|
|
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 <boost/cstdint.hpp>
|
|
36
|
+
#include <DataStructs/BitVects.h>
|
|
37
|
+
#include <DataStructs/SparseIntVect.h>
|
|
38
|
+
#include <GraphMol/Fingerprints/AtomPairs.h>
|
|
39
|
+
%}
|
|
40
|
+
%include <DataStructs/BitVects.h>
|
|
41
|
+
%include <DataStructs/SparseIntVect.h>
|
|
42
|
+
|
|
43
|
+
// Use base types (int/unsigned int) instead of boost::int32_t/uint32_t to avoid
|
|
44
|
+
// duplicate swig::traits definitions (boost types are typedefs to base types)
|
|
45
|
+
%rename(eq) RDKit::SparseIntVect<unsigned int>::operator==;
|
|
46
|
+
%rename(ne) RDKit::SparseIntVect<unsigned int>::operator!=;
|
|
47
|
+
%rename(eq) RDKit::SparseIntVect<int>::operator==;
|
|
48
|
+
%rename(ne) RDKit::SparseIntVect<int>::operator!=;
|
|
49
|
+
// SparseIntVect<long long> operators removed - Ruby SWIG lacks swig::traits for long long int
|
|
50
|
+
|
|
51
|
+
%template(SparseIntVectu32) RDKit::SparseIntVect<unsigned int>;
|
|
52
|
+
%template(SparseIntVect32) RDKit::SparseIntVect<int>;
|
|
53
|
+
// SparseIntVect64 removed - Ruby SWIG lacks swig::traits for long long int
|
|
54
|
+
|
|
55
|
+
%ignore RDKit::SparseIntVect<unsigned int>::getNonzeroElements const;
|
|
56
|
+
%ignore RDKit::SparseIntVect<int>::getNonzeroElements const;
|
|
57
|
+
|
|
58
|
+
%extend RDKit::SparseIntVect<unsigned int> {
|
|
59
|
+
std::vector<std::pair<unsigned int, int> > getNonzero() const{
|
|
60
|
+
std::vector<std::pair<unsigned int, int> > res;
|
|
61
|
+
for(std::map<unsigned int,int>::const_iterator es=$self->getNonzeroElements().begin();
|
|
62
|
+
es!=$self->getNonzeroElements().end();++es){
|
|
63
|
+
res.push_back(std::make_pair((unsigned int)es->first,(int)es->second));
|
|
64
|
+
}
|
|
65
|
+
return res;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
%extend RDKit::SparseIntVect<int> {
|
|
69
|
+
std::vector<std::pair<int, int> > getNonzero() const{
|
|
70
|
+
std::vector<std::pair<int, int> > res;
|
|
71
|
+
for(std::map<int,int>::const_iterator es=$self->getNonzeroElements().begin();
|
|
72
|
+
es!=$self->getNonzeroElements().end();++es){
|
|
73
|
+
res.push_back(std::make_pair((int)es->first,(int)es->second));
|
|
74
|
+
}
|
|
75
|
+
return res;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
// getNonzero for SparseIntVect<boost::int64_t> removed - Ruby SWIG lacks swig::traits for long long int
|
|
79
|
+
// %extend RDKit::SparseIntVect<boost::int64_t> {
|
|
80
|
+
// std::vector<std::pair<boost::int64_t, int> > getNonzero() const{
|
|
81
|
+
// std::vector<std::pair<boost::int64_t, int> > res;
|
|
82
|
+
// for(std::map<boost::int64_t,int>::const_iterator es=$self->getNonzeroElements().begin();
|
|
83
|
+
// es!=$self->getNonzeroElements().end();++es){
|
|
84
|
+
// res.push_back(std::make_pair((boost::int64_t)es->first,(int)es->second));
|
|
85
|
+
// }
|
|
86
|
+
// return res;
|
|
87
|
+
// }
|
|
88
|
+
// }
|
|
89
|
+
%newobject getAtomPairFingerprint;
|
|
90
|
+
%newobject getHashedAtomPairFingerprint;
|
|
91
|
+
%newobject getHashedAtomPairFingerprintAsBitVect;
|
|
92
|
+
%newobject getTopologicalTorsionFingerprint;
|
|
93
|
+
%newobject getHashedTopologicalTorsionFingerprint;
|
|
94
|
+
%newobject getHashedTopologicalTorsionFingerprintAsBitVect;
|
|
95
|
+
%include <GraphMol/Fingerprints/AtomPairs.h>
|
|
@@ -0,0 +1,41 @@
|
|
|
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 "std_pair.i"
|
|
35
|
+
%{
|
|
36
|
+
#include <AvalonTools/AvalonTools.h>
|
|
37
|
+
%}
|
|
38
|
+
|
|
39
|
+
%template(StringInt_Pair) std::pair<std::string, int >;
|
|
40
|
+
%include <AvalonTools/AvalonTools.h>
|
|
41
|
+
|
|
@@ -0,0 +1,72 @@
|
|
|
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/BitOps.h>
|
|
36
|
+
#include <DataStructs/ExplicitBitVect.h>
|
|
37
|
+
#include <DataStructs/BitVectUtils.h>
|
|
38
|
+
%}
|
|
39
|
+
|
|
40
|
+
%include <DataStructs/BitVect.h>
|
|
41
|
+
%include <DataStructs/BitOps.h>
|
|
42
|
+
%include <DataStructs/BitVectUtils.h>
|
|
43
|
+
|
|
44
|
+
/* Only the following are tested */
|
|
45
|
+
/* We expect that SWIG can figure out the overloading so we don't need to add a suffix like EBV to the name */
|
|
46
|
+
%template(OnBitProjSimilarity) OnBitProjSimilarity<ExplicitBitVect,ExplicitBitVect>;
|
|
47
|
+
%template(FoldFingerprint) FoldFingerprint<ExplicitBitVect>;
|
|
48
|
+
|
|
49
|
+
%template(AllProbeBitsMatch) AllProbeBitsMatch<ExplicitBitVect>;
|
|
50
|
+
%template(AllProbeBitsMatch) AllProbeBitsMatch<ExplicitBitVect>;
|
|
51
|
+
%template(TanimotoSimilarity) TanimotoSimilarity<ExplicitBitVect,ExplicitBitVect>;
|
|
52
|
+
%template(CosineSimilarity) CosineSimilarity<ExplicitBitVect,ExplicitBitVect>;
|
|
53
|
+
%template(KulczynskiSimilarity) KulczynskiSimilarity<ExplicitBitVect,ExplicitBitVect>;
|
|
54
|
+
%template(DiceSimilarity) DiceSimilarity<ExplicitBitVect,ExplicitBitVect>;
|
|
55
|
+
%template(TverskySimilarity) TverskySimilarity<ExplicitBitVect,ExplicitBitVect>;
|
|
56
|
+
%template(SokalSimilarity) SokalSimilarity<ExplicitBitVect,ExplicitBitVect>;
|
|
57
|
+
%template(McConnaugheySimilarity) McConnaugheySimilarity<ExplicitBitVect,ExplicitBitVect>;
|
|
58
|
+
%template(AsymmetricSimilarity) AsymmetricSimilarity<ExplicitBitVect,ExplicitBitVect>;
|
|
59
|
+
%template(BraunBlanquetSimilarity) BraunBlanquetSimilarity<ExplicitBitVect,ExplicitBitVect>;
|
|
60
|
+
%template(RusselSimilarity) RusselSimilarity<ExplicitBitVect,ExplicitBitVect>;
|
|
61
|
+
%template(OnBitSimilarity) OnBitSimilarity<ExplicitBitVect,ExplicitBitVect>;
|
|
62
|
+
%template(NumBitsInCommon) NumBitsInCommon<ExplicitBitVect,ExplicitBitVect>;
|
|
63
|
+
%template(AllBitSimilarity) AllBitSimilarity<ExplicitBitVect,ExplicitBitVect>;
|
|
64
|
+
%template(OnBitsInCommon) OnBitsInCommon<ExplicitBitVect,ExplicitBitVect>;
|
|
65
|
+
%template(OffBitsInCommon) OffBitsInCommon<ExplicitBitVect,ExplicitBitVect>;
|
|
66
|
+
%template(OnBitProjSimilarity) OnBitProjSimilarity<ExplicitBitVect,ExplicitBitVect>;
|
|
67
|
+
%template(OffBitProjSimilarity) OffBitProjSimilarity<ExplicitBitVect,ExplicitBitVect>;
|
|
68
|
+
%template(BitVectToText) BitVectToText<ExplicitBitVect>;
|
|
69
|
+
%template(FromBitString) FromBitString<ExplicitBitVect>;
|
|
70
|
+
%template(FromDaylightString) FromDaylightString<ExplicitBitVect>;
|
|
71
|
+
%template(BitVectToFPSText) BitVectToFPSText<ExplicitBitVect>;
|
|
72
|
+
%template(UpdateBitVectFromFPSText) UpdateBitVectFromFPSText<ExplicitBitVect>;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* $Id: Bond.i 2519 2013-05-17 03:01:18Z glandrum $
|
|
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 "std_string.i"
|
|
35
|
+
%include "std_vector.i"
|
|
36
|
+
%include "std_map.i"
|
|
37
|
+
%include "std_pair.i"
|
|
38
|
+
|
|
39
|
+
%{
|
|
40
|
+
#include <RDGeneral/types.h>
|
|
41
|
+
#include <GraphMol/Bond.h>
|
|
42
|
+
#include <GraphMol/FileParsers/MolFileStereochem.h>
|
|
43
|
+
%}
|
|
44
|
+
|
|
45
|
+
%ignore RDKit::Bond::getValenceContrib(const Atom *) const;
|
|
46
|
+
%ignore RDKit::Bond::Match(const Bond *) const;
|
|
47
|
+
%ignore RDKit::Bond::setBeginAtom(Atom *at);
|
|
48
|
+
%ignore RDKit::Bond::setEndAtom(Atom *at);
|
|
49
|
+
%ignore RDKit::getTwiceBondType(const RDKit::Bond &b);
|
|
50
|
+
%ignore RDKit::Bond::setQuery;
|
|
51
|
+
%ignore RDKit::Bond::expandQuery;
|
|
52
|
+
|
|
53
|
+
// Ignore ostream operators to prevent redefinition errors
|
|
54
|
+
%ignore RDKit::operator<<;
|
|
55
|
+
|
|
56
|
+
%include <GraphMol/Bond.h>
|
|
57
|
+
|
|
58
|
+
%extend RDKit::Bond {
|
|
59
|
+
std::string getProp(const std::string key){
|
|
60
|
+
std::string res;
|
|
61
|
+
($self)->getProp(key, res);
|
|
62
|
+
return res;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* Methods from MolFileStereoChem.h */
|
|
66
|
+
Bond::BondDir DetermineBondWedgeState(const std::map<int, std::unique_ptr<RDKit::Chirality::WedgeInfoBase>> &wedgeBonds,
|
|
67
|
+
const RDKit::Conformer *conf) {
|
|
68
|
+
return RDKit::DetermineBondWedgeState(($self), wedgeBonds, conf);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/* Based on corresponding methods in Atom.i */
|
|
72
|
+
bool IsInRing(){
|
|
73
|
+
if(!($self)->getOwningMol().getRingInfo()->isInitialized()){
|
|
74
|
+
RDKit::MolOps::findSSSR(($self)->getOwningMol());
|
|
75
|
+
}
|
|
76
|
+
return ($self)->getOwningMol().getRingInfo()->numBondRings(($self)->getIdx())!=0;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
bool IsInRingSize(int size){
|
|
80
|
+
if(!($self)->getOwningMol().getRingInfo()->isInitialized()){
|
|
81
|
+
RDKit::MolOps::findSSSR(($self)->getOwningMol());
|
|
82
|
+
}
|
|
83
|
+
return ($self)->getOwningMol().getRingInfo()->isBondInRingOfSize(($self)->getIdx(),size);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
}
|
|
87
|
+
|