29 #ifndef CDPL_MOLPROP_MOLECULARGRAPHFUNCTIONS_HPP
30 #define CDPL_MOLPROP_MOLECULARGRAPHFUNCTIONS_HPP
267 double damping = 0.48);
Definition of constants in namespace CDPL::Chem::AtomPropertyFlag.
Definition of the type CDPL::MolProp::ElementHistogram.
Definition of class CDPL::Chem::FragmentList.
Definition of the type CDPL::MolProp::MassComposition.
Definition of the preprocessor macro CDPL_MOLPROP_API.
#define CDPL_MOLPROP_API
Tells the compiler/linker which classes, functions and variables are part of the library API.
std::shared_ptr< FragmentList > SharedPointer
A reference-counted smart pointer [SHPTR] for dynamically allocated FragmentList instances.
Definition: FragmentList.hpp:53
Abstract base class for representations of a chemical structure as a graph of bonded atoms.
Definition: MolecularGraph.hpp:57
Data type for the storage of element histograms of chemical compounds.
Definition: ElementHistogram.hpp:50
Data type for the storage of mass percent compositions of chemical compounds.
Definition: MassComposition.hpp:51
constexpr unsigned int DEFAULT
Represents the default set of atom properties.
Definition: Chem/AtomPropertyFlag.hpp:53
CDPL_MOLPROP_API void calcMassComposition(const Chem::MolecularGraph &molgraph, MassComposition &comp)
Calculates the per-element mass composition of molgraph.
CDPL_MOLPROP_API double calcMass(const Chem::MolecularGraph &molgraph)
Calculates the total molecular mass of molgraph (sum of atom standard atomic weights including implic...
CDPL_MOLPROP_API double calcMeanPolarizability(const Chem::MolecularGraph &molgraph)
Calculates the mean atomic polarizability of molgraph.
CDPL_MOLPROP_API void calcMHMOProperties(Chem::MolecularGraph &molgraph, bool overwrite)
Calculates MHMO pi charges and pi-bond orders for molgraph and stores them as atom/bond properties.
CDPL_MOLPROP_API void generateMolecularFormula(const Chem::MolecularGraph &molgraph, std::string &formula, const std::string &sep=std::string())
Generates the molecular formula of the molecular graph molgraph.
CDPL_MOLPROP_API double calcXLogP(const Chem::MolecularGraph &molgraph)
Calculates the XLogP value of molgraph using MolProp::XLogPCalculator.
CDPL_MOLPROP_API std::size_t getChainAtomCount(const Chem::Atom &atom, const Chem::MolecularGraph &molgraph)
Returns the number of chain (non-ring) neighbors of atom in molgraph (including implicit hydrogens).
CDPL_MOLPROP_API std::size_t getImplicitHydrogenCount(const Chem::MolecularGraph &molgraph)
Returns the total number of implicit hydrogens in molgraph.
CDPL_MOLPROP_API void generateElementHistogram(const Chem::MolecularGraph &molgraph, ElementHistogram &hist, bool append=false)
Generates the element histogram of molgraph.
CDPL_MOLPROP_API std::size_t getHydrogenBondCount(const Chem::MolecularGraph &molgraph)
Returns the number of bonds in molgraph that involve at least one hydrogen atom.
CDPL_MOLPROP_API void clearFunctionalGroups(Chem::MolecularGraph &molgraph)
Removes the MolProp::MolecularGraphProperty::FUNCTIONAL_GROUPS property from molgraph.
CDPL_MOLPROP_API std::size_t getChainBondCount(const Chem::Atom &atom, const Chem::MolecularGraph &molgraph)
Returns the number of chain (non-ring) bonds incident to atom in molgraph (including implicit-hydroge...
CDPL_MOLPROP_API void calcAtomHydrophobicities(Chem::MolecularGraph &molgraph, bool overwrite, bool from_logp=false)
Calculates per-atom hydrophobicities for molgraph and stores them as atom properties.
CDPL_MOLPROP_API void calcPEOEProperties(Chem::MolecularGraph &molgraph, bool overwrite, std::size_t num_iter=20, double damping=0.48)
Calculates PEOE sigma charges and electronegativities for the atoms of molgraph and stores them as at...
CDPL_MOLPROP_API std::size_t getOrdinaryHydrogenCount(const Chem::Atom &atom, const Chem::MolecularGraph &molgraph, unsigned int flags=Chem::AtomPropertyFlag::DEFAULT)
Returns the number of ordinary-hydrogen neighbors of atom in molgraph (see isOrdinaryHydrogen() for t...
CDPL_MOLPROP_API std::size_t getComponentCount(const Chem::MolecularGraph &molgraph)
Returns the number of connected components in molgraph.
CDPL_MOLPROP_API std::size_t getExplicitOrdinaryHydrogenCount(const Chem::MolecularGraph &molgraph, unsigned int flags=Chem::AtomPropertyFlag::DEFAULT)
Returns the number of explicit ordinary hydrogens in molgraph (see MolProp::isOrdinaryHydrogen() for ...
CDPL_MOLPROP_API void perceiveHBondDonorAtomTypes(Chem::MolecularGraph &molgraph, bool overwrite)
Perceives the H-bond donor types of the atoms in molgraph and stores them as atom properties.
CDPL_MOLPROP_API void generateMassCompositionString(const Chem::MolecularGraph &molgraph, std::string &comp)
Generates a string representation of the per-element mass composition of molgraph.
CDPL_MOLPROP_API std::size_t calcCyclomaticNumber(const Chem::MolecularGraph &molgraph)
Calculates the cyclomatic number of molgraph (number of independent cycles).
CDPL_MOLPROP_API void perceiveHBondAcceptorAtomTypes(Chem::MolecularGraph &molgraph, bool overwrite)
Perceives the H-bond acceptor types of the atoms in molgraph and stores them as atom properties.
CDPL_MOLPROP_API const Chem::FragmentList::SharedPointer & getFunctionalGroups(const Chem::MolecularGraph &molgraph)
Returns the value of the MolProp::MolecularGraphProperty::FUNCTIONAL_GROUPS property of molgraph.
CDPL_MOLPROP_API std::size_t getAtomCount(const Chem::Atom &atom, const Chem::MolecularGraph &molgraph, unsigned int type, bool strict=true)
Returns the number of neighbors of atom in molgraph (including implicit hydrogens) whose Chem::AtomTy...
CDPL_MOLPROP_API std::size_t getBondCount(const Chem::Atom &atom, const Chem::MolecularGraph &molgraph)
Returns the total number of bonds incident to atom in molgraph (including implicit-hydrogen bonds).
CDPL_MOLPROP_API std::size_t getRotatableBondCount(const Chem::Atom &atom, const Chem::MolecularGraph &molgraph, bool h_rotors=false, bool ring_bonds=false, bool amide_bonds=false)
Returns the number of rotatable bonds incident to atom in molgraph.
CDPL_MOLPROP_API double calcTPSA(const Chem::MolecularGraph &molgraph)
Calculates the topological polar surface area (TPSA) of molgraph using MolProp::TPSACalculator.
CDPL_MOLPROP_API std::size_t getHBondAcceptorAtomCount(const Chem::MolecularGraph &molgraph)
Returns the number of H-bond acceptor atoms in molgraph.
CDPL_MOLPROP_API bool hasFunctionalGroups(const Chem::MolecularGraph &molgraph)
Tells whether molgraph carries an explicit MolProp::MolecularGraphProperty::FUNCTIONAL_GROUPS propert...
CDPL_MOLPROP_API double calcLogS(const Chem::MolecularGraph &molgraph)
Calculates the (aqueous solubility) of molgraph using MolProp::LogSCalculator.
CDPL_MOLPROP_API std::size_t getRuleOfFiveScore(const Chem::MolecularGraph &molgraph)
Returns the Lipinski rule-of-five score of molgraph, defined as the number of satisfied criteria (0-4...
CDPL_MOLPROP_API void setFunctionalGroups(Chem::MolecularGraph &molgraph, const Chem::FragmentList::SharedPointer &fg_list)
Sets the value of the MolProp::MolecularGraphProperty::FUNCTIONAL_GROUPS property of molgraph.
CDPL_MOLPROP_API Chem::FragmentList::SharedPointer perceiveFunctionalGroups(const Chem::MolecularGraph &molgraph)
Perceives the functional groups of molgraph using MolProp::FunctionalGroupList.
CDPL_MOLPROP_API std::size_t getHBondDonorAtomCount(const Chem::MolecularGraph &molgraph)
Returns the number of H-bond donor atoms in molgraph.
The namespace of the Chemical Data Processing Library.