rdkit-headers 2022.3.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- rdkit_headers/__init__.py +13 -0
- rdkit_headers/include/rdkit/CIPLabeler/CIPLabeler.h +59 -0
- rdkit_headers/include/rdkit/CIPLabeler/TooManyNodesException.h +28 -0
- rdkit_headers/include/rdkit/Catalogs/Catalog.h +461 -0
- rdkit_headers/include/rdkit/Catalogs/CatalogEntry.h +48 -0
- rdkit_headers/include/rdkit/Catalogs/CatalogParams.h +42 -0
- rdkit_headers/include/rdkit/ChemicalFeatures/ChemicalFeature.h +38 -0
- rdkit_headers/include/rdkit/ChemicalFeatures/FreeChemicalFeature.h +97 -0
- rdkit_headers/include/rdkit/DataManip/MetricMatrixCalc/MetricFuncs.h +54 -0
- rdkit_headers/include/rdkit/DataManip/MetricMatrixCalc/MetricMatrixCalc.h +106 -0
- rdkit_headers/include/rdkit/DataStructs/BitOps.h +337 -0
- rdkit_headers/include/rdkit/DataStructs/BitVect.h +68 -0
- rdkit_headers/include/rdkit/DataStructs/BitVectUtils.h +35 -0
- rdkit_headers/include/rdkit/DataStructs/BitVects.h +25 -0
- rdkit_headers/include/rdkit/DataStructs/DatastructsException.h +31 -0
- rdkit_headers/include/rdkit/DataStructs/DatastructsStreamOps.h +72 -0
- rdkit_headers/include/rdkit/DataStructs/DiscreteDistMat.h +30 -0
- rdkit_headers/include/rdkit/DataStructs/DiscreteValueVect.h +146 -0
- rdkit_headers/include/rdkit/DataStructs/ExplicitBitVect.h +96 -0
- rdkit_headers/include/rdkit/DataStructs/FPBReader.h +281 -0
- rdkit_headers/include/rdkit/DataStructs/MultiFPBReader.h +213 -0
- rdkit_headers/include/rdkit/DataStructs/SparseBitVect.h +101 -0
- rdkit_headers/include/rdkit/DataStructs/SparseIntVect.h +571 -0
- rdkit_headers/include/rdkit/DataStructs/base64.h +41 -0
- rdkit_headers/include/rdkit/DistGeom/BoundsMatrix.h +121 -0
- rdkit_headers/include/rdkit/DistGeom/ChiralSet.h +58 -0
- rdkit_headers/include/rdkit/DistGeom/ChiralViolationContrib.h +96 -0
- rdkit_headers/include/rdkit/DistGeom/DistGeomUtils.h +195 -0
- rdkit_headers/include/rdkit/DistGeom/DistViolationContrib.h +54 -0
- rdkit_headers/include/rdkit/DistGeom/FourthDimContrib.h +65 -0
- rdkit_headers/include/rdkit/DistGeom/TriangleSmooth.h +36 -0
- rdkit_headers/include/rdkit/Features/Feature.h +96 -0
- rdkit_headers/include/rdkit/ForceField/Contrib.h +40 -0
- rdkit_headers/include/rdkit/ForceField/ForceField.h +253 -0
- rdkit_headers/include/rdkit/ForceField/MMFF/AngleBend.h +78 -0
- rdkit_headers/include/rdkit/ForceField/MMFF/AngleConstraint.h +64 -0
- rdkit_headers/include/rdkit/ForceField/MMFF/BondStretch.h +67 -0
- rdkit_headers/include/rdkit/ForceField/MMFF/Contribs.h +26 -0
- rdkit_headers/include/rdkit/ForceField/MMFF/DistanceConstraint.h +61 -0
- rdkit_headers/include/rdkit/ForceField/MMFF/Nonbonded.h +105 -0
- rdkit_headers/include/rdkit/ForceField/MMFF/OopBend.h +65 -0
- rdkit_headers/include/rdkit/ForceField/MMFF/Params.h +1134 -0
- rdkit_headers/include/rdkit/ForceField/MMFF/PositionConstraint.h +55 -0
- rdkit_headers/include/rdkit/ForceField/MMFF/StretchBend.h +70 -0
- rdkit_headers/include/rdkit/ForceField/MMFF/TorsionAngle.h +79 -0
- rdkit_headers/include/rdkit/ForceField/MMFF/TorsionConstraint.h +70 -0
- rdkit_headers/include/rdkit/ForceField/UFF/AngleBend.h +92 -0
- rdkit_headers/include/rdkit/ForceField/UFF/AngleConstraint.h +64 -0
- rdkit_headers/include/rdkit/ForceField/UFF/BondStretch.h +83 -0
- rdkit_headers/include/rdkit/ForceField/UFF/Contribs.h +23 -0
- rdkit_headers/include/rdkit/ForceField/UFF/DistanceConstraint.h +62 -0
- rdkit_headers/include/rdkit/ForceField/UFF/Inversion.h +81 -0
- rdkit_headers/include/rdkit/ForceField/UFF/Nonbonded.h +87 -0
- rdkit_headers/include/rdkit/ForceField/UFF/Params.h +153 -0
- rdkit_headers/include/rdkit/ForceField/UFF/PositionConstraint.h +55 -0
- rdkit_headers/include/rdkit/ForceField/UFF/TorsionAngle.h +115 -0
- rdkit_headers/include/rdkit/ForceField/UFF/TorsionConstraint.h +70 -0
- rdkit_headers/include/rdkit/Geometry/Grid3D.h +55 -0
- rdkit_headers/include/rdkit/Geometry/GridUtils.h +64 -0
- rdkit_headers/include/rdkit/Geometry/Transform.h +19 -0
- rdkit_headers/include/rdkit/Geometry/Transform2D.h +85 -0
- rdkit_headers/include/rdkit/Geometry/Transform3D.h +101 -0
- rdkit_headers/include/rdkit/Geometry/UniformGrid3D.h +217 -0
- rdkit_headers/include/rdkit/Geometry/Utils.h +97 -0
- rdkit_headers/include/rdkit/Geometry/point.h +585 -0
- rdkit_headers/include/rdkit/GraphMol/Abbreviations/Abbreviations.h +132 -0
- rdkit_headers/include/rdkit/GraphMol/Atom.h +449 -0
- rdkit_headers/include/rdkit/GraphMol/AtomIterators.h +212 -0
- rdkit_headers/include/rdkit/GraphMol/Bond.h +393 -0
- rdkit_headers/include/rdkit/GraphMol/BondIterators.h +75 -0
- rdkit_headers/include/rdkit/GraphMol/Canon.h +130 -0
- rdkit_headers/include/rdkit/GraphMol/ChemReactions/Enumerate/CartesianProduct.h +147 -0
- rdkit_headers/include/rdkit/GraphMol/ChemReactions/Enumerate/Enumerate.h +187 -0
- rdkit_headers/include/rdkit/GraphMol/ChemReactions/Enumerate/EnumerateBase.h +200 -0
- rdkit_headers/include/rdkit/GraphMol/ChemReactions/Enumerate/EnumerateTypes.h +59 -0
- rdkit_headers/include/rdkit/GraphMol/ChemReactions/Enumerate/EnumerationPickler.h +60 -0
- rdkit_headers/include/rdkit/GraphMol/ChemReactions/Enumerate/EnumerationStrategyBase.h +227 -0
- rdkit_headers/include/rdkit/GraphMol/ChemReactions/Enumerate/RandomSample.h +163 -0
- rdkit_headers/include/rdkit/GraphMol/ChemReactions/Enumerate/RandomSampleAllBBs.h +184 -0
- rdkit_headers/include/rdkit/GraphMol/ChemReactions/PreprocessRxn.h +64 -0
- rdkit_headers/include/rdkit/GraphMol/ChemReactions/Reaction.h +491 -0
- rdkit_headers/include/rdkit/GraphMol/ChemReactions/ReactionFingerprints.h +147 -0
- rdkit_headers/include/rdkit/GraphMol/ChemReactions/ReactionParser.h +274 -0
- rdkit_headers/include/rdkit/GraphMol/ChemReactions/ReactionPickler.h +119 -0
- rdkit_headers/include/rdkit/GraphMol/ChemReactions/ReactionRunner.h +116 -0
- rdkit_headers/include/rdkit/GraphMol/ChemReactions/ReactionUtils.h +74 -0
- rdkit_headers/include/rdkit/GraphMol/ChemReactions/SanitizeRxn.h +169 -0
- rdkit_headers/include/rdkit/GraphMol/ChemTransforms/ChemTransforms.h +270 -0
- rdkit_headers/include/rdkit/GraphMol/ChemTransforms/MolFragmenter.h +120 -0
- rdkit_headers/include/rdkit/GraphMol/Chirality.h +137 -0
- rdkit_headers/include/rdkit/GraphMol/Conformer.h +183 -0
- rdkit_headers/include/rdkit/GraphMol/CoordGen.h +195 -0
- rdkit_headers/include/rdkit/GraphMol/Depictor/DepictUtils.h +366 -0
- rdkit_headers/include/rdkit/GraphMol/Depictor/EmbeddedFrag.h +544 -0
- rdkit_headers/include/rdkit/GraphMol/Depictor/RDDepictor.h +284 -0
- rdkit_headers/include/rdkit/GraphMol/Deprotect/Deprotect.h +105 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/AUTOCORR2D.h +49 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/AUTOCORR3D.h +51 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/AtomFeat.h +39 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/BCUT.h +66 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/ConnectivityDescriptors.h +211 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/CoulombMat.h +42 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/Crippen.h +137 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/Data3Ddescriptors.h +55 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/EEM.h +59 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/GETAWAY.h +51 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/Lipinski.h +169 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/MORSE.h +50 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/MQN.h +47 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/MolData3Ddescriptors.h +62 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/MolDescriptors.h +86 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/MolDescriptors3D.h +25 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/MolSurf.h +120 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/PBF.h +60 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/PMI.h +128 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/Property.h +123 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/RDF.h +52 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/RegisterDescriptor.h +84 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/USRDescriptor.h +137 -0
- rdkit_headers/include/rdkit/GraphMol/Descriptors/WHIM.h +51 -0
- rdkit_headers/include/rdkit/GraphMol/DistGeomHelpers/BoundsMatrixBuilder.h +77 -0
- rdkit_headers/include/rdkit/GraphMol/DistGeomHelpers/Embedder.h +437 -0
- rdkit_headers/include/rdkit/GraphMol/FMCS/FMCS.h +194 -0
- rdkit_headers/include/rdkit/GraphMol/FMCS/Graph.h +43 -0
- rdkit_headers/include/rdkit/GraphMol/FileParsers/FileParserUtils.h +231 -0
- rdkit_headers/include/rdkit/GraphMol/FileParsers/FileParsers.h +399 -0
- rdkit_headers/include/rdkit/GraphMol/FileParsers/GeneralFileReader.h +170 -0
- rdkit_headers/include/rdkit/GraphMol/FileParsers/MolFileStereochem.h +60 -0
- rdkit_headers/include/rdkit/GraphMol/FileParsers/MolSupplier.h +444 -0
- rdkit_headers/include/rdkit/GraphMol/FileParsers/MolWriters.h +338 -0
- rdkit_headers/include/rdkit/GraphMol/FileParsers/MultithreadedMolSupplier.h +102 -0
- rdkit_headers/include/rdkit/GraphMol/FileParsers/MultithreadedSDMolSupplier.h +65 -0
- rdkit_headers/include/rdkit/GraphMol/FileParsers/MultithreadedSmilesMolSupplier.h +66 -0
- rdkit_headers/include/rdkit/GraphMol/FileParsers/PNGParser.h +203 -0
- rdkit_headers/include/rdkit/GraphMol/FileParsers/SequenceParsers.h +117 -0
- rdkit_headers/include/rdkit/GraphMol/FileParsers/SequenceWriters.h +47 -0
- rdkit_headers/include/rdkit/GraphMol/FilterCatalog/FilterCatalog.h +260 -0
- rdkit_headers/include/rdkit/GraphMol/FilterCatalog/FilterCatalogEntry.h +276 -0
- rdkit_headers/include/rdkit/GraphMol/FilterCatalog/FilterMatcherBase.h +152 -0
- rdkit_headers/include/rdkit/GraphMol/FilterCatalog/FilterMatchers.h +576 -0
- rdkit_headers/include/rdkit/GraphMol/FilterCatalog/FunctionalGroupHierarchy.h +52 -0
- rdkit_headers/include/rdkit/GraphMol/Fingerprints/AtomPairGenerator.h +188 -0
- rdkit_headers/include/rdkit/GraphMol/Fingerprints/AtomPairs.h +268 -0
- rdkit_headers/include/rdkit/GraphMol/Fingerprints/FingerprintGenerator.h +372 -0
- rdkit_headers/include/rdkit/GraphMol/Fingerprints/FingerprintUtil.h +160 -0
- rdkit_headers/include/rdkit/GraphMol/Fingerprints/Fingerprints.h +167 -0
- rdkit_headers/include/rdkit/GraphMol/Fingerprints/MACCS.h +32 -0
- rdkit_headers/include/rdkit/GraphMol/Fingerprints/MHFP.h +285 -0
- rdkit_headers/include/rdkit/GraphMol/Fingerprints/MorganFingerprints.h +210 -0
- rdkit_headers/include/rdkit/GraphMol/Fingerprints/MorganGenerator.h +251 -0
- rdkit_headers/include/rdkit/GraphMol/Fingerprints/RDKitFPGenerator.h +162 -0
- rdkit_headers/include/rdkit/GraphMol/Fingerprints/TopologicalTorsionGenerator.h +127 -0
- rdkit_headers/include/rdkit/GraphMol/ForceFieldHelpers/CrystalFF/TorsionAngleM6.h +72 -0
- rdkit_headers/include/rdkit/GraphMol/ForceFieldHelpers/CrystalFF/TorsionPreferences.h +41 -0
- rdkit_headers/include/rdkit/GraphMol/ForceFieldHelpers/FFConvenience.h +130 -0
- rdkit_headers/include/rdkit/GraphMol/ForceFieldHelpers/MMFF/AtomTyper.h +236 -0
- rdkit_headers/include/rdkit/GraphMol/ForceFieldHelpers/MMFF/Builder.h +141 -0
- rdkit_headers/include/rdkit/GraphMol/ForceFieldHelpers/MMFF/MMFF.h +105 -0
- rdkit_headers/include/rdkit/GraphMol/ForceFieldHelpers/UFF/AtomTyper.h +57 -0
- rdkit_headers/include/rdkit/GraphMol/ForceFieldHelpers/UFF/Builder.h +129 -0
- rdkit_headers/include/rdkit/GraphMol/ForceFieldHelpers/UFF/UFF.h +82 -0
- rdkit_headers/include/rdkit/GraphMol/FragCatalog/FragCatGenerator.h +33 -0
- rdkit_headers/include/rdkit/GraphMol/FragCatalog/FragCatParams.h +94 -0
- rdkit_headers/include/rdkit/GraphMol/FragCatalog/FragCatalogEntry.h +136 -0
- rdkit_headers/include/rdkit/GraphMol/FragCatalog/FragCatalogUtils.h +62 -0
- rdkit_headers/include/rdkit/GraphMol/FragCatalog/FragFPGenerator.h +38 -0
- rdkit_headers/include/rdkit/GraphMol/GenericGroups/GenericGroups.h +301 -0
- rdkit_headers/include/rdkit/GraphMol/GraphMol.h +22 -0
- rdkit_headers/include/rdkit/GraphMol/MMPA/MMPA.h +81 -0
- rdkit_headers/include/rdkit/GraphMol/MolAlign/AlignMolecules.h +183 -0
- rdkit_headers/include/rdkit/GraphMol/MolAlign/O3AAlignMolecules.h +354 -0
- rdkit_headers/include/rdkit/GraphMol/MolBundle.h +121 -0
- rdkit_headers/include/rdkit/GraphMol/MolCatalog/MolCatalog.h +20 -0
- rdkit_headers/include/rdkit/GraphMol/MolCatalog/MolCatalogEntry.h +109 -0
- rdkit_headers/include/rdkit/GraphMol/MolCatalog/MolCatalogParams.h +40 -0
- rdkit_headers/include/rdkit/GraphMol/MolChemicalFeatures/FeatureParser.h +58 -0
- rdkit_headers/include/rdkit/GraphMol/MolChemicalFeatures/MolChemicalFeature.h +98 -0
- rdkit_headers/include/rdkit/GraphMol/MolChemicalFeatures/MolChemicalFeatureDef.h +68 -0
- rdkit_headers/include/rdkit/GraphMol/MolChemicalFeatures/MolChemicalFeatureFactory.h +78 -0
- rdkit_headers/include/rdkit/GraphMol/MolDraw2D/MolDraw2D.h +539 -0
- rdkit_headers/include/rdkit/GraphMol/MolDraw2D/MolDraw2DHelpers.h +284 -0
- rdkit_headers/include/rdkit/GraphMol/MolDraw2D/MolDraw2DJS.h +62 -0
- rdkit_headers/include/rdkit/GraphMol/MolDraw2D/MolDraw2DSVG.h +88 -0
- rdkit_headers/include/rdkit/GraphMol/MolDraw2D/MolDraw2DUtils.h +179 -0
- rdkit_headers/include/rdkit/GraphMol/MolDraw2D/MolDraw2Dwx.h +107 -0
- rdkit_headers/include/rdkit/GraphMol/MolEnumerator/LinkNode.h +159 -0
- rdkit_headers/include/rdkit/GraphMol/MolEnumerator/MolEnumerator.h +276 -0
- rdkit_headers/include/rdkit/GraphMol/MolHash/MolHash.h +12 -0
- rdkit_headers/include/rdkit/GraphMol/MolHash/nmmolhash.h +60 -0
- rdkit_headers/include/rdkit/GraphMol/MolInterchange/MolInterchange.h +93 -0
- rdkit_headers/include/rdkit/GraphMol/MolInterchange/details.h +49 -0
- rdkit_headers/include/rdkit/GraphMol/MolOps.h +1016 -0
- rdkit_headers/include/rdkit/GraphMol/MolPickler.h +314 -0
- rdkit_headers/include/rdkit/GraphMol/MolStandardize/AcidBaseCatalog/AcidBaseCatalogEntry.h +56 -0
- rdkit_headers/include/rdkit/GraphMol/MolStandardize/AcidBaseCatalog/AcidBaseCatalogParams.h +65 -0
- rdkit_headers/include/rdkit/GraphMol/MolStandardize/AcidBaseCatalog/AcidBaseCatalogUtils.h +37 -0
- rdkit_headers/include/rdkit/GraphMol/MolStandardize/Charge.h +145 -0
- rdkit_headers/include/rdkit/GraphMol/MolStandardize/Fragment.h +105 -0
- rdkit_headers/include/rdkit/GraphMol/MolStandardize/FragmentCatalog/FragmentCatalogEntry.h +60 -0
- rdkit_headers/include/rdkit/GraphMol/MolStandardize/FragmentCatalog/FragmentCatalogParams.h +63 -0
- rdkit_headers/include/rdkit/GraphMol/MolStandardize/FragmentCatalog/FragmentCatalogUtils.h +35 -0
- rdkit_headers/include/rdkit/GraphMol/MolStandardize/Metal.h +73 -0
- rdkit_headers/include/rdkit/GraphMol/MolStandardize/MolStandardize.h +178 -0
- rdkit_headers/include/rdkit/GraphMol/MolStandardize/Normalize.h +104 -0
- rdkit_headers/include/rdkit/GraphMol/MolStandardize/Tautomer.h +428 -0
- rdkit_headers/include/rdkit/GraphMol/MolStandardize/TautomerCatalog/TautomerCatalogEntry.h +59 -0
- rdkit_headers/include/rdkit/GraphMol/MolStandardize/TautomerCatalog/TautomerCatalogParams.h +69 -0
- rdkit_headers/include/rdkit/GraphMol/MolStandardize/TautomerCatalog/TautomerCatalogUtils.h +81 -0
- rdkit_headers/include/rdkit/GraphMol/MolStandardize/TransformCatalog/TransformCatalogEntry.h +57 -0
- rdkit_headers/include/rdkit/GraphMol/MolStandardize/TransformCatalog/TransformCatalogParams.h +66 -0
- rdkit_headers/include/rdkit/GraphMol/MolStandardize/TransformCatalog/TransformCatalogUtils.h +37 -0
- rdkit_headers/include/rdkit/GraphMol/MolStandardize/Validate.h +199 -0
- rdkit_headers/include/rdkit/GraphMol/MolTransforms/MolTransforms.h +222 -0
- rdkit_headers/include/rdkit/GraphMol/MonomerInfo.h +138 -0
- rdkit_headers/include/rdkit/GraphMol/PartialCharges/GasteigerCharges.h +27 -0
- rdkit_headers/include/rdkit/GraphMol/PartialCharges/GasteigerParams.h +86 -0
- rdkit_headers/include/rdkit/GraphMol/PeriodicTable.h +325 -0
- rdkit_headers/include/rdkit/GraphMol/QueryAtom.h +161 -0
- rdkit_headers/include/rdkit/GraphMol/QueryBond.h +146 -0
- rdkit_headers/include/rdkit/GraphMol/QueryOps.h +1110 -0
- rdkit_headers/include/rdkit/GraphMol/RDKitBase.h +35 -0
- rdkit_headers/include/rdkit/GraphMol/RDKitQueries.h +25 -0
- rdkit_headers/include/rdkit/GraphMol/RGroupDecomposition/RGroupDecomp.h +225 -0
- rdkit_headers/include/rdkit/GraphMol/ROMol.h +844 -0
- rdkit_headers/include/rdkit/GraphMol/RWMol.h +222 -0
- rdkit_headers/include/rdkit/GraphMol/ReducedGraphs/ReducedGraphs.h +85 -0
- rdkit_headers/include/rdkit/GraphMol/Resonance.h +236 -0
- rdkit_headers/include/rdkit/GraphMol/RingInfo.h +274 -0
- rdkit_headers/include/rdkit/GraphMol/Rings.h +90 -0
- rdkit_headers/include/rdkit/GraphMol/SLNParse/SLNAttribs.h +93 -0
- rdkit_headers/include/rdkit/GraphMol/SLNParse/SLNParse.h +70 -0
- rdkit_headers/include/rdkit/GraphMol/SLNParse/SLNParseOps.h +328 -0
- rdkit_headers/include/rdkit/GraphMol/SanitException.h +120 -0
- rdkit_headers/include/rdkit/GraphMol/ScaffoldNetwork/ScaffoldNetwork.h +195 -0
- rdkit_headers/include/rdkit/GraphMol/ShapeHelpers/ShapeEncoder.h +73 -0
- rdkit_headers/include/rdkit/GraphMol/ShapeHelpers/ShapeUtils.h +279 -0
- rdkit_headers/include/rdkit/GraphMol/SmilesParse/SmartsWrite.h +46 -0
- rdkit_headers/include/rdkit/GraphMol/SmilesParse/SmilesParse.h +160 -0
- rdkit_headers/include/rdkit/GraphMol/SmilesParse/SmilesParseOps.h +53 -0
- rdkit_headers/include/rdkit/GraphMol/SmilesParse/SmilesWrite.h +288 -0
- rdkit_headers/include/rdkit/GraphMol/SmilesParse/primes.h +18 -0
- rdkit_headers/include/rdkit/GraphMol/StereoGroup.h +74 -0
- rdkit_headers/include/rdkit/GraphMol/Subgraphs/SubgraphUtils.h +57 -0
- rdkit_headers/include/rdkit/GraphMol/Subgraphs/Subgraphs.h +154 -0
- rdkit_headers/include/rdkit/GraphMol/SubstanceGroup.h +297 -0
- rdkit_headers/include/rdkit/GraphMol/Substruct/SubstructMatch.h +232 -0
- rdkit_headers/include/rdkit/GraphMol/Substruct/SubstructUtils.h +44 -0
- rdkit_headers/include/rdkit/GraphMol/SubstructLibrary/PatternFactory.h +40 -0
- rdkit_headers/include/rdkit/GraphMol/SubstructLibrary/SubstructLibrary.h +951 -0
- rdkit_headers/include/rdkit/GraphMol/SubstructLibrary/SubstructLibrarySerialization.h +231 -0
- rdkit_headers/include/rdkit/GraphMol/TautomerQuery/TautomerQuery.h +104 -0
- rdkit_headers/include/rdkit/GraphMol/Trajectory/Snapshot.h +69 -0
- rdkit_headers/include/rdkit/GraphMol/Trajectory/Trajectory.h +105 -0
- rdkit_headers/include/rdkit/GraphMol/atomic_data.h +76 -0
- rdkit_headers/include/rdkit/GraphMol/details.h +15 -0
- rdkit_headers/include/rdkit/GraphMol/new_canon.h +772 -0
- rdkit_headers/include/rdkit/Numerics/Alignment/AlignPoints.h +49 -0
- rdkit_headers/include/rdkit/Numerics/Conrec.h +203 -0
- rdkit_headers/include/rdkit/Numerics/EigenSolvers/PowerEigenSolver.h +68 -0
- rdkit_headers/include/rdkit/Numerics/Matrix.h +347 -0
- rdkit_headers/include/rdkit/Numerics/Optimizer/BFGSOpt.h +397 -0
- rdkit_headers/include/rdkit/Numerics/SquareMatrix.h +89 -0
- rdkit_headers/include/rdkit/Numerics/SymmMatrix.h +361 -0
- rdkit_headers/include/rdkit/Numerics/Vector.h +327 -0
- rdkit_headers/include/rdkit/Query/AndQuery.h +57 -0
- rdkit_headers/include/rdkit/Query/EqualityQuery.h +88 -0
- rdkit_headers/include/rdkit/Query/GreaterEqualQuery.h +74 -0
- rdkit_headers/include/rdkit/Query/GreaterQuery.h +74 -0
- rdkit_headers/include/rdkit/Query/LessEqualQuery.h +75 -0
- rdkit_headers/include/rdkit/Query/LessQuery.h +74 -0
- rdkit_headers/include/rdkit/Query/NullQueryAlgebra.h +86 -0
- rdkit_headers/include/rdkit/Query/OrQuery.h +58 -0
- rdkit_headers/include/rdkit/Query/Query.h +210 -0
- rdkit_headers/include/rdkit/Query/QueryObjects.h +38 -0
- rdkit_headers/include/rdkit/Query/RangeQuery.h +116 -0
- rdkit_headers/include/rdkit/Query/SetQuery.h +87 -0
- rdkit_headers/include/rdkit/Query/XOrQuery.h +63 -0
- rdkit_headers/include/rdkit/RDGeneral/BadFileException.h +39 -0
- rdkit_headers/include/rdkit/RDGeneral/BoostEndInclude.h +69 -0
- rdkit_headers/include/rdkit/RDGeneral/BoostStartInclude.h +95 -0
- rdkit_headers/include/rdkit/RDGeneral/ConcurrentQueue.h +132 -0
- rdkit_headers/include/rdkit/RDGeneral/Dict.h +350 -0
- rdkit_headers/include/rdkit/RDGeneral/Exceptions.h +73 -0
- rdkit_headers/include/rdkit/RDGeneral/FileParseException.h +36 -0
- rdkit_headers/include/rdkit/RDGeneral/Invariant.h +198 -0
- rdkit_headers/include/rdkit/RDGeneral/LocaleSwitcher.h +54 -0
- rdkit_headers/include/rdkit/RDGeneral/RDAny.h +217 -0
- rdkit_headers/include/rdkit/RDGeneral/RDConfig.h +49 -0
- rdkit_headers/include/rdkit/RDGeneral/RDExportMacros.h +40 -0
- rdkit_headers/include/rdkit/RDGeneral/RDLog.h +142 -0
- rdkit_headers/include/rdkit/RDGeneral/RDProps.h +172 -0
- rdkit_headers/include/rdkit/RDGeneral/RDThreads.h +44 -0
- rdkit_headers/include/rdkit/RDGeneral/RDValue-doublemagic.h +478 -0
- rdkit_headers/include/rdkit/RDGeneral/RDValue-taggedunion.h +518 -0
- rdkit_headers/include/rdkit/RDGeneral/RDValue.h +285 -0
- rdkit_headers/include/rdkit/RDGeneral/Ranking.h +87 -0
- rdkit_headers/include/rdkit/RDGeneral/StreamOps.h +637 -0
- rdkit_headers/include/rdkit/RDGeneral/export.h +559 -0
- rdkit_headers/include/rdkit/RDGeneral/hanoiSort.h +167 -0
- rdkit_headers/include/rdkit/RDGeneral/hash/detail/float_functions.hpp +156 -0
- rdkit_headers/include/rdkit/RDGeneral/hash/detail/hash_float.hpp +179 -0
- rdkit_headers/include/rdkit/RDGeneral/hash/extensions.hpp +152 -0
- rdkit_headers/include/rdkit/RDGeneral/hash/hash.hpp +463 -0
- rdkit_headers/include/rdkit/RDGeneral/hash/hash_fwd.hpp +51 -0
- rdkit_headers/include/rdkit/RDGeneral/test.h +274 -0
- rdkit_headers/include/rdkit/RDGeneral/types.h +401 -0
- rdkit_headers/include/rdkit/RDGeneral/utils.h +106 -0
- rdkit_headers/include/rdkit/RDGeneral/versions.h +27 -0
- rdkit_headers/include/rdkit/RDStreams/streams.h +19 -0
- rdkit_headers/include/rdkit/RingDecomposerLib.h +751 -0
- rdkit_headers/include/rdkit/SimDivPickers/DistPicker.h +92 -0
- rdkit_headers/include/rdkit/SimDivPickers/HierarchicalClusterPicker.h +107 -0
- rdkit_headers/include/rdkit/SimDivPickers/LeaderPicker.h +470 -0
- rdkit_headers/include/rdkit/SimDivPickers/MaxMinPicker.h +303 -0
- rdkit_headers-2022.3.3.dist-info/METADATA +24 -0
- rdkit_headers-2022.3.3.dist-info/RECORD +320 -0
- rdkit_headers-2022.3.3.dist-info/WHEEL +4 -0
- rdkit_headers-2022.3.3.dist-info/entry_points.txt +4 -0
- rdkit_headers-2022.3.3.dist-info/licenses/LICENSE +29 -0
- rdkit_headers-2022.3.3.dist-info/licenses/NOTICE +5 -0
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright (C) 2020 Greg Landrum
|
|
3
|
+
//
|
|
4
|
+
// @@ All Rights Reserved @@
|
|
5
|
+
// This file is part of the RDKit.
|
|
6
|
+
// The contents are covered by the terms of the BSD license
|
|
7
|
+
// which is included in the file license.txt, found at the root
|
|
8
|
+
// of the RDKit source tree.
|
|
9
|
+
//
|
|
10
|
+
#include <RDGeneral/export.h>
|
|
11
|
+
#ifndef RD_PNGPARSER_H
|
|
12
|
+
#define RD_PNGPARSER_H
|
|
13
|
+
|
|
14
|
+
#include <RDGeneral/types.h>
|
|
15
|
+
#include <RDGeneral/BadFileException.h>
|
|
16
|
+
#include <GraphMol/RDKitBase.h>
|
|
17
|
+
#include <GraphMol/SmilesParse/SmilesParse.h>
|
|
18
|
+
#include <GraphMol/SmilesParse/SmilesWrite.h>
|
|
19
|
+
|
|
20
|
+
#include <boost/format.hpp>
|
|
21
|
+
|
|
22
|
+
#include <string>
|
|
23
|
+
#include <fstream>
|
|
24
|
+
#include <sstream>
|
|
25
|
+
|
|
26
|
+
namespace RDKit {
|
|
27
|
+
|
|
28
|
+
//! Tags used for PNG metadata
|
|
29
|
+
namespace PNGData {
|
|
30
|
+
RDKIT_FILEPARSERS_EXPORT extern const std::string smilesTag;
|
|
31
|
+
RDKIT_FILEPARSERS_EXPORT extern const std::string molTag;
|
|
32
|
+
RDKIT_FILEPARSERS_EXPORT extern const std::string pklTag;
|
|
33
|
+
} // namespace PNGData
|
|
34
|
+
|
|
35
|
+
//! \name metadata to/from PNG
|
|
36
|
+
//@{
|
|
37
|
+
|
|
38
|
+
//! \brief returns the metadata (tEXt and zTXt chunks) from PNG data
|
|
39
|
+
RDKIT_FILEPARSERS_EXPORT std::vector<std::pair<std::string, std::string>>
|
|
40
|
+
PNGStreamToMetadata(std::istream &inStream);
|
|
41
|
+
|
|
42
|
+
//! \brief returns the metadata (tEXt and zTXt chunks) from PNG data
|
|
43
|
+
inline std::vector<std::pair<std::string, std::string>> PNGFileToMetadata(
|
|
44
|
+
const std::string &fname) {
|
|
45
|
+
std::ifstream inStream(fname.c_str(), std::ios::binary);
|
|
46
|
+
if (!inStream || (inStream.bad())) {
|
|
47
|
+
throw BadFileException((boost::format("Bad input file %s") % fname).str());
|
|
48
|
+
}
|
|
49
|
+
return PNGStreamToMetadata(inStream);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
//! \brief returns the metadata (tEXt and zTXt chunks) from PNG data
|
|
53
|
+
inline std::vector<std::pair<std::string, std::string>> PNGStringToMetadata(
|
|
54
|
+
const std::string &data) {
|
|
55
|
+
std::stringstream inStream(data);
|
|
56
|
+
return PNGStreamToMetadata(inStream);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
//! \brief adds metadata to a PNG stream.
|
|
60
|
+
//! The modified PNG data is returned.
|
|
61
|
+
/*!
|
|
62
|
+
|
|
63
|
+
The compressed flag is ignored if the RDKit is not built with
|
|
64
|
+
boost::iostreams support
|
|
65
|
+
|
|
66
|
+
*/
|
|
67
|
+
RDKIT_FILEPARSERS_EXPORT std::string addMetadataToPNGStream(
|
|
68
|
+
std::istream &iStream,
|
|
69
|
+
const std::vector<std::pair<std::string, std::string>> &metadata,
|
|
70
|
+
bool compressed = true);
|
|
71
|
+
|
|
72
|
+
//! \brief adds metadata to a PNG string.
|
|
73
|
+
//! The modified PNG data is returned.
|
|
74
|
+
inline std::string addMetadataToPNGString(
|
|
75
|
+
const std::string &pngString,
|
|
76
|
+
const std::vector<std::pair<std::string, std::string>> &metadata,
|
|
77
|
+
bool compressed = true) {
|
|
78
|
+
std::stringstream inStream(pngString);
|
|
79
|
+
return addMetadataToPNGStream(inStream, metadata, compressed);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
//! \brief adds metadata to a PNG file.
|
|
83
|
+
//! The modified PNG data is returned.
|
|
84
|
+
inline std::string addMetadataToPNGFile(
|
|
85
|
+
const std::string &fname,
|
|
86
|
+
const std::vector<std::pair<std::string, std::string>> &metadata,
|
|
87
|
+
bool compressed = true) {
|
|
88
|
+
std::ifstream inStream(fname.c_str(), std::ios::binary);
|
|
89
|
+
return addMetadataToPNGStream(inStream, metadata, compressed);
|
|
90
|
+
}
|
|
91
|
+
//@}
|
|
92
|
+
|
|
93
|
+
//! \name molecules to/from PNG
|
|
94
|
+
//@{
|
|
95
|
+
|
|
96
|
+
//! \brief constructs an ROMol from the metadata in a PNG stream
|
|
97
|
+
/*!
|
|
98
|
+
|
|
99
|
+
Looks through the metadata in the PNG to find the first tag that matches one of
|
|
100
|
+
the tags in \c RDKit::PNGData. A molecule is constructed from this chunk.
|
|
101
|
+
|
|
102
|
+
Throws a \c FileParseException if no suitable tag is found.
|
|
103
|
+
|
|
104
|
+
The caller is responsible for the returned pointer.
|
|
105
|
+
|
|
106
|
+
*/
|
|
107
|
+
RDKIT_FILEPARSERS_EXPORT ROMol *PNGStreamToMol(
|
|
108
|
+
std::istream &inStream,
|
|
109
|
+
const SmilesParserParams ¶ms = SmilesParserParams());
|
|
110
|
+
//! \brief constructs an ROMol from the metadata in a PNG file.
|
|
111
|
+
//! See \c PNGStreamToMol() for more details.
|
|
112
|
+
inline ROMol *PNGFileToMol(
|
|
113
|
+
const std::string &fname,
|
|
114
|
+
const SmilesParserParams ¶ms = SmilesParserParams()) {
|
|
115
|
+
std::ifstream inStream(fname.c_str(), std::ios::binary);
|
|
116
|
+
if (!inStream || (inStream.bad())) {
|
|
117
|
+
throw BadFileException((boost::format("Bad input file %s") % fname).str());
|
|
118
|
+
}
|
|
119
|
+
return PNGStreamToMol(inStream, params);
|
|
120
|
+
}
|
|
121
|
+
//! \brief constructs an ROMol from the metadata in a PNG string.
|
|
122
|
+
//! See \c PNGStreamToMol() for more details.
|
|
123
|
+
inline ROMol *PNGStringToMol(
|
|
124
|
+
const std::string &data,
|
|
125
|
+
const SmilesParserParams ¶ms = SmilesParserParams()) {
|
|
126
|
+
std::stringstream inStream(data);
|
|
127
|
+
return PNGStreamToMol(inStream, params);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
//! \brief constructs a vector of ROMol from the metadata in a PNG stream
|
|
131
|
+
/*!
|
|
132
|
+
|
|
133
|
+
Looks through the metadata in the PNG to find tags that start with tagToUse
|
|
134
|
+
(must be one of the tags in \c RDKit::PNGData). The molecules constructed from
|
|
135
|
+
these data are returned.
|
|
136
|
+
|
|
137
|
+
*/
|
|
138
|
+
RDKIT_FILEPARSERS_EXPORT std::vector<std::unique_ptr<ROMol>> PNGStreamToMols(
|
|
139
|
+
std::istream &inStream, const std::string &tagToUse = PNGData::pklTag,
|
|
140
|
+
const SmilesParserParams ¶ms = SmilesParserParams());
|
|
141
|
+
//! \brief constructs a vector of ROMol from the metadata in a PNG file.
|
|
142
|
+
//! See \c PNGStreamToMols() for more details.
|
|
143
|
+
inline std::vector<std::unique_ptr<ROMol>> PNGFileToMols(
|
|
144
|
+
const std::string &fname, const std::string &tagToUse = PNGData::pklTag,
|
|
145
|
+
const SmilesParserParams ¶ms = SmilesParserParams()) {
|
|
146
|
+
std::ifstream inStream(fname.c_str(), std::ios::binary);
|
|
147
|
+
if (!inStream || (inStream.bad())) {
|
|
148
|
+
throw BadFileException((boost::format("Bad input file %s") % fname).str());
|
|
149
|
+
}
|
|
150
|
+
return PNGStreamToMols(inStream, tagToUse, params);
|
|
151
|
+
}
|
|
152
|
+
//! \brief constructs a vector of ROMol from the metadata in a PNG string.
|
|
153
|
+
//! See \c PNGStreamToMols() for more details.
|
|
154
|
+
inline std::vector<std::unique_ptr<ROMol>> PNGStringToMols(
|
|
155
|
+
const std::string &data, const std::string &tagToUse = PNGData::pklTag,
|
|
156
|
+
const SmilesParserParams ¶ms = SmilesParserParams()) {
|
|
157
|
+
std::stringstream inStream(data);
|
|
158
|
+
return PNGStreamToMols(inStream, tagToUse, params);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
//! \brief adds metadata for an ROMol to the data from a PNG stream.
|
|
162
|
+
//! The modified PNG data is returned.
|
|
163
|
+
/*!
|
|
164
|
+
|
|
165
|
+
\param mol the molecule to add
|
|
166
|
+
\param iStream the stream to read from
|
|
167
|
+
\param includePkl include a molecule pickle
|
|
168
|
+
\param includeSmiles include CXSMILES for the molecule
|
|
169
|
+
\param includeMol include a mol block for the molecule
|
|
170
|
+
|
|
171
|
+
*/
|
|
172
|
+
RDKIT_FILEPARSERS_EXPORT std::string addMolToPNGStream(
|
|
173
|
+
const ROMol &mol, std::istream &iStream, bool includePkl = true,
|
|
174
|
+
bool includeSmiles = true, bool includeMol = false);
|
|
175
|
+
|
|
176
|
+
//! \brief adds metadata for an ROMol to a PNG string.
|
|
177
|
+
//! The modified PNG data is returned.
|
|
178
|
+
//! See \c addMolToPNGStream() for more details.
|
|
179
|
+
inline std::string addMolToPNGString(const ROMol &mol,
|
|
180
|
+
const std::string &pngString,
|
|
181
|
+
bool includePkl = true,
|
|
182
|
+
bool includeSmiles = true,
|
|
183
|
+
bool includeMol = false) {
|
|
184
|
+
std::stringstream inStream(pngString);
|
|
185
|
+
return addMolToPNGStream(mol, inStream, includePkl, includeSmiles,
|
|
186
|
+
includeMol);
|
|
187
|
+
}
|
|
188
|
+
//! \brief adds metadata for an ROMol to the data from a PNG file.
|
|
189
|
+
//! The modified PNG data is returned.
|
|
190
|
+
//! See \c addMolToPNGStream() for more details.
|
|
191
|
+
inline std::string addMolToPNGFile(const ROMol &mol, const std::string &fname,
|
|
192
|
+
bool includePkl = true,
|
|
193
|
+
bool includeSmiles = true,
|
|
194
|
+
bool includeMol = false) {
|
|
195
|
+
std::ifstream inStream(fname.c_str(), std::ios::binary);
|
|
196
|
+
return addMolToPNGStream(mol, inStream, includePkl, includeSmiles,
|
|
197
|
+
includeMol);
|
|
198
|
+
}
|
|
199
|
+
//@}
|
|
200
|
+
|
|
201
|
+
} // namespace RDKit
|
|
202
|
+
|
|
203
|
+
#endif
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright (C) 2015,2016 Greg Landrum and NextMove Software
|
|
3
|
+
//
|
|
4
|
+
// @@ All Rights Reserved @@
|
|
5
|
+
// This file is part of the RDKit.
|
|
6
|
+
// The contents are covered by the terms of the BSD license
|
|
7
|
+
// which is included in the file license.txt, found at the root
|
|
8
|
+
// of the RDKit source tree.
|
|
9
|
+
//
|
|
10
|
+
#include <RDGeneral/export.h>
|
|
11
|
+
#ifndef _RD_SEQUENCEPARSE_H_
|
|
12
|
+
#define _RD_SEQUENCEPARSE_H_
|
|
13
|
+
#include <string>
|
|
14
|
+
|
|
15
|
+
namespace RDKit {
|
|
16
|
+
class RWMol;
|
|
17
|
+
|
|
18
|
+
// \brief construct a molecule from a sequence string (currently only supports
|
|
19
|
+
// peptides)
|
|
20
|
+
/*!
|
|
21
|
+
* \param seq - the string to be processed
|
|
22
|
+
* \param sanitize - toggles sanitization and stereochemistry perception of
|
|
23
|
+
*the molecule
|
|
24
|
+
* \param lowerD - if set, lower case letters will be parsed as the d form
|
|
25
|
+
*of the corresponding amino acid
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
RDKIT_FILEPARSERS_EXPORT RWMol *SequenceToMol(const char *seq, bool sanitize,
|
|
29
|
+
bool lowerD);
|
|
30
|
+
//! \overload
|
|
31
|
+
RDKIT_FILEPARSERS_EXPORT RWMol *SequenceToMol(const std::string &seq,
|
|
32
|
+
bool sanitize, bool lowerD);
|
|
33
|
+
|
|
34
|
+
// \brief construct a protein, RNA or DNA molecule from a sequence string
|
|
35
|
+
/*!
|
|
36
|
+
* \param seq - the string to be processed
|
|
37
|
+
* \param sanitize - toggles sanitization and stereochemistry perception of
|
|
38
|
+
*the molecule
|
|
39
|
+
* \param flavor -
|
|
40
|
+
* 0 Protein, L amino acids (default)
|
|
41
|
+
* 1 Protein, D amino acids
|
|
42
|
+
* 2 RNA, no cap
|
|
43
|
+
* 3 RNA, 5' cap
|
|
44
|
+
* 4 RNA, 3' cap
|
|
45
|
+
* 5 RNA, both caps
|
|
46
|
+
* 6 DNA, no cap
|
|
47
|
+
* 7 DNA, 5' cap
|
|
48
|
+
* 8 DNA, 3' cap
|
|
49
|
+
* 9 DNA, both caps
|
|
50
|
+
*
|
|
51
|
+
*/
|
|
52
|
+
RDKIT_FILEPARSERS_EXPORT RWMol *SequenceToMol(const char *seq,
|
|
53
|
+
bool sanitize = true,
|
|
54
|
+
int flavor = 0);
|
|
55
|
+
//! \overload
|
|
56
|
+
RDKIT_FILEPARSERS_EXPORT RWMol *SequenceToMol(const std::string &seq,
|
|
57
|
+
bool sanitize = true,
|
|
58
|
+
int flavor = 0);
|
|
59
|
+
|
|
60
|
+
// \brief construct a molecule from a FASTA string (currently only supports
|
|
61
|
+
// peptides)
|
|
62
|
+
/*!
|
|
63
|
+
* \param seq - the string to be processed
|
|
64
|
+
* \param sanitize - toggles sanitization and stereochemistry perception of
|
|
65
|
+
*the molecule
|
|
66
|
+
* \param lowerD - if set, lower case letters will be parsed as the d form
|
|
67
|
+
*of the corresponding amino acid
|
|
68
|
+
*
|
|
69
|
+
*/
|
|
70
|
+
RDKIT_FILEPARSERS_EXPORT RWMol *FASTAToMol(const char *seq, bool sanitize,
|
|
71
|
+
bool lowerD);
|
|
72
|
+
//! \overload
|
|
73
|
+
RDKIT_FILEPARSERS_EXPORT RWMol *FASTAToMol(const std::string &seq,
|
|
74
|
+
bool sanitize, bool lowerD);
|
|
75
|
+
|
|
76
|
+
// \brief construct a protein, DNA or RNA molecule from a FASTA string
|
|
77
|
+
/*!
|
|
78
|
+
* \param seq - the string to be processed
|
|
79
|
+
* \param sanitize - toggles sanitization and stereochemistry perception of
|
|
80
|
+
*the molecule
|
|
81
|
+
* \param flavor -
|
|
82
|
+
* 0 Protein, L amino acids (default)
|
|
83
|
+
* 1 Protein, D amino acids
|
|
84
|
+
* 2 RNA, no cap
|
|
85
|
+
* 3 RNA, 5' cap
|
|
86
|
+
* 4 RNA, 3' cap
|
|
87
|
+
* 5 RNA, both caps
|
|
88
|
+
* 6 DNA, no cap
|
|
89
|
+
* 7 DNA, 5' cap
|
|
90
|
+
* 8 DNA, 3' cap
|
|
91
|
+
* 9 DNA, both caps
|
|
92
|
+
*
|
|
93
|
+
*/
|
|
94
|
+
RDKIT_FILEPARSERS_EXPORT RWMol *FASTAToMol(const char *seq,
|
|
95
|
+
bool sanitize = true,
|
|
96
|
+
int flavor = 0);
|
|
97
|
+
//! \overload
|
|
98
|
+
RDKIT_FILEPARSERS_EXPORT RWMol *FASTAToMol(const std::string &seq,
|
|
99
|
+
bool sanitize = true,
|
|
100
|
+
int flavor = 0);
|
|
101
|
+
|
|
102
|
+
// \brief construct a molecule from a HELM string (currently only supports
|
|
103
|
+
// peptides)
|
|
104
|
+
/*!
|
|
105
|
+
* \param seq - the string to be processed
|
|
106
|
+
* \param sanitize - toggles sanitization and stereochemistry perception of
|
|
107
|
+
*the molecule
|
|
108
|
+
*
|
|
109
|
+
*/
|
|
110
|
+
RDKIT_FILEPARSERS_EXPORT RWMol *HELMToMol(const char *helm,
|
|
111
|
+
bool sanitize = true);
|
|
112
|
+
//! \overload
|
|
113
|
+
RDKIT_FILEPARSERS_EXPORT RWMol *HELMToMol(const std::string &helm,
|
|
114
|
+
bool sanitize = true);
|
|
115
|
+
} // namespace RDKit
|
|
116
|
+
|
|
117
|
+
#endif
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright (C) 2015 Greg Landrum and NextMove Software
|
|
3
|
+
//
|
|
4
|
+
// @@ All Rights Reserved @@
|
|
5
|
+
// This file is part of the RDKit.
|
|
6
|
+
// The contents are covered by the terms of the BSD license
|
|
7
|
+
// which is included in the file license.txt, found at the root
|
|
8
|
+
// of the RDKit source tree.
|
|
9
|
+
//
|
|
10
|
+
#include <RDGeneral/export.h>
|
|
11
|
+
#ifndef _RD_SEQUENCEWRITE_H_
|
|
12
|
+
#define _RD_SEQUENCEWRITE_H_
|
|
13
|
+
#include <string>
|
|
14
|
+
|
|
15
|
+
namespace RDKit {
|
|
16
|
+
class ROMol;
|
|
17
|
+
|
|
18
|
+
// \brief construct a sequence string from a molecule (currently only supports
|
|
19
|
+
// peptides)
|
|
20
|
+
/*!
|
|
21
|
+
* \param mol - the molecule to work with
|
|
22
|
+
*
|
|
23
|
+
* \note \c mol should contain monomer information in \c AtomMonomerInfo
|
|
24
|
+
*structures
|
|
25
|
+
*/
|
|
26
|
+
RDKIT_FILEPARSERS_EXPORT std::string MolToSequence(const ROMol &mol);
|
|
27
|
+
// \brief construct a FASTA string from a molecule (currently only supports
|
|
28
|
+
// peptides)
|
|
29
|
+
/*!
|
|
30
|
+
* \param mol - the molecule to work with
|
|
31
|
+
*
|
|
32
|
+
* \note \c mol should contain monomer information in \c AtomMonomerInfo
|
|
33
|
+
*structures
|
|
34
|
+
*/
|
|
35
|
+
RDKIT_FILEPARSERS_EXPORT std::string MolToFASTA(const ROMol &mol);
|
|
36
|
+
// \brief construct a HELM string from a molecule (currently only supports
|
|
37
|
+
// peptides)
|
|
38
|
+
/*!
|
|
39
|
+
* \param mol - the molecule to work with
|
|
40
|
+
*
|
|
41
|
+
* \note \c mol should contain monomer information in \c AtomMonomerInfo
|
|
42
|
+
*structures
|
|
43
|
+
*/
|
|
44
|
+
RDKIT_FILEPARSERS_EXPORT std::string MolToHELM(const ROMol &mol);
|
|
45
|
+
} // namespace RDKit
|
|
46
|
+
|
|
47
|
+
#endif
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
// Copyright (c) 2015, Novartis Institutes for BioMedical Research Inc.
|
|
2
|
+
// All rights reserved.
|
|
3
|
+
//
|
|
4
|
+
// Redistribution and use in source and binary forms, with or without
|
|
5
|
+
// modification, are permitted provided that the following conditions are
|
|
6
|
+
// met:
|
|
7
|
+
//
|
|
8
|
+
// * Redistributions of source code must retain the above copyright
|
|
9
|
+
// notice, this list of conditions and the following disclaimer.
|
|
10
|
+
// * Redistributions in binary form must reproduce the above
|
|
11
|
+
// copyright notice, this list of conditions and the following
|
|
12
|
+
// disclaimer in the documentation and/or other materials provided
|
|
13
|
+
// with the distribution.
|
|
14
|
+
// * Neither the name of Novartis Institutes for BioMedical Research Inc.
|
|
15
|
+
// nor the names of its contributors may be used to endorse or promote
|
|
16
|
+
// products derived from this software without specific prior written
|
|
17
|
+
// 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
|
+
#include <RDGeneral/export.h>
|
|
33
|
+
#ifndef _RD_FILTER_CATALOG_PARAMS_
|
|
34
|
+
#define _RD_FILTER_CATALOG_PARAMS_
|
|
35
|
+
|
|
36
|
+
#include <Catalogs/Catalog.h>
|
|
37
|
+
#include <Catalogs/CatalogParams.h>
|
|
38
|
+
#include "FilterCatalogEntry.h"
|
|
39
|
+
|
|
40
|
+
namespace RDKit {
|
|
41
|
+
class FilterCatalog;
|
|
42
|
+
class RDKIT_FILTERCATALOG_EXPORT FilterCatalogParams
|
|
43
|
+
: public RDCatalog::CatalogParams {
|
|
44
|
+
public:
|
|
45
|
+
enum FilterCatalogs {
|
|
46
|
+
PAINS_A = (1u << 1),
|
|
47
|
+
PAINS_B = (1u << 2),
|
|
48
|
+
PAINS_C = (1u << 3),
|
|
49
|
+
PAINS = PAINS_A | PAINS_B | PAINS_C,
|
|
50
|
+
|
|
51
|
+
BRENK = (1u << 4),
|
|
52
|
+
NIH = (1u << 5),
|
|
53
|
+
ZINC = (1u << 6),
|
|
54
|
+
|
|
55
|
+
ALL = PAINS | BRENK | NIH | ZINC
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
FilterCatalogParams() : RDCatalog::CatalogParams() {
|
|
59
|
+
setTypeStr("Filter Catalog Parameters");
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
FilterCatalogParams(FilterCatalogs catalogs) : RDCatalog::CatalogParams() {
|
|
63
|
+
setTypeStr("Filter Catalog Parameters");
|
|
64
|
+
addCatalog(catalogs);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
FilterCatalogParams(const FilterCatalogParams &other)
|
|
68
|
+
: RDCatalog::CatalogParams(other), d_catalogs(other.d_catalogs) {}
|
|
69
|
+
|
|
70
|
+
~FilterCatalogParams() override {}
|
|
71
|
+
|
|
72
|
+
//------------------------------------
|
|
73
|
+
//! Adds an existing FilterCatalog specification to be used in the
|
|
74
|
+
/// FilterCatalog
|
|
75
|
+
//
|
|
76
|
+
/*!
|
|
77
|
+
Specifies an existing filter catalog to be used.
|
|
78
|
+
|
|
79
|
+
\param catalogs One of the enumerated known FilterCatalogs
|
|
80
|
+
*/
|
|
81
|
+
virtual bool addCatalog(FilterCatalogs catalogs);
|
|
82
|
+
|
|
83
|
+
//------------------------------------
|
|
84
|
+
//! Returns the existing list of FilterCatalogs to be used.
|
|
85
|
+
const std::vector<FilterCatalogs> &getCatalogs() const { return d_catalogs; }
|
|
86
|
+
//! Fill a catalog with the appropriate entries
|
|
87
|
+
virtual void fillCatalog(FilterCatalog &catalog) const;
|
|
88
|
+
|
|
89
|
+
//! serializes (pickles) to a stream
|
|
90
|
+
void toStream(std::ostream &ss) const override;
|
|
91
|
+
//! returns a string with a serialized (pickled) representation
|
|
92
|
+
std::string Serialize() const override;
|
|
93
|
+
//! initializes from a stream pickle
|
|
94
|
+
void initFromStream(std::istream &ss) override;
|
|
95
|
+
//! initializes from a string pickle
|
|
96
|
+
void initFromString(const std::string &text) override;
|
|
97
|
+
|
|
98
|
+
private:
|
|
99
|
+
std::vector<FilterCatalogs> d_catalogs;
|
|
100
|
+
|
|
101
|
+
#ifdef RDK_USE_BOOST_SERIALIZATION
|
|
102
|
+
friend class boost::serialization::access;
|
|
103
|
+
template <class Archive>
|
|
104
|
+
void serialize(Archive &ar, const unsigned int version) {
|
|
105
|
+
RDUNUSED_PARAM(version);
|
|
106
|
+
ar &d_catalogs;
|
|
107
|
+
}
|
|
108
|
+
#endif
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
typedef RDCatalog::Catalog<FilterCatalogEntry, FilterCatalogParams> FCatalog;
|
|
112
|
+
class RDKIT_FILTERCATALOG_EXPORT FilterCatalog : public FCatalog {
|
|
113
|
+
public:
|
|
114
|
+
// syntactic sugar for getMatch(es) return values.
|
|
115
|
+
typedef boost::shared_ptr<FilterCatalogEntry> SENTRY;
|
|
116
|
+
|
|
117
|
+
// If boost::python can support shared_ptr of const objects
|
|
118
|
+
// we can enable support for this feature
|
|
119
|
+
typedef boost::shared_ptr<const entryType_t> CONST_SENTRY;
|
|
120
|
+
|
|
121
|
+
FilterCatalog() : FCatalog(), d_entries() {}
|
|
122
|
+
|
|
123
|
+
FilterCatalog(FilterCatalogParams::FilterCatalogs catalogs)
|
|
124
|
+
: FCatalog(), d_entries() {
|
|
125
|
+
paramType_t temp_params(catalogs);
|
|
126
|
+
setCatalogParams(&temp_params);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
FilterCatalog(const FilterCatalogParams ¶ms) : FCatalog(), d_entries() {
|
|
130
|
+
setCatalogParams(¶ms);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
FilterCatalog(const FilterCatalog &rhs)
|
|
134
|
+
: FCatalog(rhs), d_entries(rhs.d_entries) {}
|
|
135
|
+
|
|
136
|
+
FilterCatalog(const std::string &binStr);
|
|
137
|
+
|
|
138
|
+
~FilterCatalog() override;
|
|
139
|
+
|
|
140
|
+
std::string Serialize() const override;
|
|
141
|
+
|
|
142
|
+
// Adds a new FilterCatalogEntry to the catalog
|
|
143
|
+
/*!
|
|
144
|
+
Adds a new FilterCatalogEntry to the catalog The catalog
|
|
145
|
+
owns the entry
|
|
146
|
+
|
|
147
|
+
\param entry The FilterCatalogEntry to add.
|
|
148
|
+
\param updateFPLength unused in the FilterCatalog object.
|
|
149
|
+
*/
|
|
150
|
+
|
|
151
|
+
unsigned int addEntry(FilterCatalogEntry *entry,
|
|
152
|
+
bool updateFPLength = true) override;
|
|
153
|
+
|
|
154
|
+
// Adds a new FilterCatalogEntry to the catalog
|
|
155
|
+
/*!
|
|
156
|
+
Adds a new FilterCatalogEntry to the catalog The catalog
|
|
157
|
+
owns the entry
|
|
158
|
+
|
|
159
|
+
\param entry The shared_ptr of the FilterCatalogEntry to add.
|
|
160
|
+
\param updateFPLength unused in the FilterCatalog object.
|
|
161
|
+
*/
|
|
162
|
+
|
|
163
|
+
virtual unsigned int addEntry(SENTRY entry, bool updateFPLength = true);
|
|
164
|
+
|
|
165
|
+
// Removes a FilterCatalogEntry to the catalog by description
|
|
166
|
+
/*!
|
|
167
|
+
Removes a FilterCatalogEntry from the catalog.
|
|
168
|
+
|
|
169
|
+
\param idx The FilterCatalogEntry index for the entry to remove.
|
|
170
|
+
n.b. removing an entry may change the indices of other entries.
|
|
171
|
+
To safely remove entries, remove entries with the highest idx
|
|
172
|
+
first.
|
|
173
|
+
*/
|
|
174
|
+
bool removeEntry(unsigned int idx);
|
|
175
|
+
bool removeEntry(CONST_SENTRY entry);
|
|
176
|
+
|
|
177
|
+
//------------------------------------
|
|
178
|
+
//! returns a particular FilterCatalogEntry in the Catalog
|
|
179
|
+
//! required by Catalog.h API
|
|
180
|
+
const FilterCatalogEntry *getEntryWithIdx(unsigned int idx) const override;
|
|
181
|
+
|
|
182
|
+
//------------------------------------
|
|
183
|
+
//! returns a particular FilterCatalogEntry in the Catalog
|
|
184
|
+
//! memory safe version of getEntryWithIdx
|
|
185
|
+
CONST_SENTRY getEntry(unsigned int idx) const;
|
|
186
|
+
|
|
187
|
+
//------------------------------------
|
|
188
|
+
//! returns the idx of the given entry, UINT_MAX if not found.
|
|
189
|
+
|
|
190
|
+
unsigned int getIdxForEntry(const FilterCatalogEntry *entry) const;
|
|
191
|
+
unsigned int getIdxForEntry(CONST_SENTRY entry) const;
|
|
192
|
+
|
|
193
|
+
//------------------------------------
|
|
194
|
+
//! returns the number of entries in the catalog
|
|
195
|
+
unsigned int getNumEntries() const override {
|
|
196
|
+
return static_cast<unsigned int>(d_entries.size());
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
//------------------------------------
|
|
200
|
+
//! Reset the current catalog to match the specified FilterCatalogParameters
|
|
201
|
+
/*
|
|
202
|
+
\param params The new FilterCatalogParams specifying the new state of the
|
|
203
|
+
catalog
|
|
204
|
+
*/
|
|
205
|
+
void setCatalogParams(const FilterCatalogParams *params) override;
|
|
206
|
+
|
|
207
|
+
//------------------------------------
|
|
208
|
+
//! Returns true if the molecule matches any entry in the catalog
|
|
209
|
+
/*
|
|
210
|
+
\param mol ROMol to match against the catalog
|
|
211
|
+
*/
|
|
212
|
+
bool hasMatch(const ROMol &mol) const;
|
|
213
|
+
|
|
214
|
+
//------------------------------------
|
|
215
|
+
//! Returns the first match against the catalog
|
|
216
|
+
/*
|
|
217
|
+
\param mol ROMol to match against the catalog
|
|
218
|
+
*/
|
|
219
|
+
CONST_SENTRY getFirstMatch(const ROMol &mol) const;
|
|
220
|
+
|
|
221
|
+
//-------------------------------------------
|
|
222
|
+
//! Returns all entry matches to the molecule
|
|
223
|
+
/*
|
|
224
|
+
\param mol ROMol to match against the catalog
|
|
225
|
+
*/
|
|
226
|
+
const std::vector<CONST_SENTRY> getMatches(const ROMol &mol) const;
|
|
227
|
+
|
|
228
|
+
//--------------------------------------------
|
|
229
|
+
//! Returns all FilterMatches for the molecule
|
|
230
|
+
/*
|
|
231
|
+
\param mol ROMol to match against the catalog
|
|
232
|
+
*/
|
|
233
|
+
const std::vector<FilterMatch> getFilterMatches(const ROMol &mol) const;
|
|
234
|
+
|
|
235
|
+
private:
|
|
236
|
+
void Clear();
|
|
237
|
+
std::vector<SENTRY> d_entries;
|
|
238
|
+
};
|
|
239
|
+
|
|
240
|
+
RDKIT_FILTERCATALOG_EXPORT bool FilterCatalogCanSerialize();
|
|
241
|
+
|
|
242
|
+
//! Run a filter catalog on a set of smiles strings
|
|
243
|
+
/*
|
|
244
|
+
\param smiles vector of smiles strings to analyze
|
|
245
|
+
\param nthreads specify the number of threads to use or specify 0 to use all
|
|
246
|
+
processors [default 1]
|
|
247
|
+
\returns a vector of vectors. For each input smiles string, returns
|
|
248
|
+
a vector of shared_ptr::FilterMatchEntry objects.
|
|
249
|
+
If a molecule matches no filters, the vector will be empty.
|
|
250
|
+
If a smiles can't be parsed, a 'no valid RDKit molecule'
|
|
251
|
+
catalog entry is returned.
|
|
252
|
+
|
|
253
|
+
*/
|
|
254
|
+
RDKIT_FILTERCATALOG_EXPORT
|
|
255
|
+
std::vector<std::vector<boost::shared_ptr<const FilterCatalogEntry>>>
|
|
256
|
+
RunFilterCatalog(const FilterCatalog &filterCatalog,
|
|
257
|
+
const std::vector<std::string> &smiles, int numThreads = 1);
|
|
258
|
+
} // namespace RDKit
|
|
259
|
+
|
|
260
|
+
#endif
|