13#ifndef _RD_MMFFATOMTYPER_H__
14#define _RD_MMFFATOMTYPER_H__
30namespace DefaultParameters {
62 std::uint8_t mmffAtomType{0};
63 double mmffFormalCharge{0.0};
64 double mmffPartialCharge{0.0};
77 std::uint8_t verbosity = MMFF_VERBOSITY_NONE,
78 std::ostream &oStream = std::cout);
82 const unsigned int idx2,
83 const unsigned int idx3);
85 const ROMol &mol,
const unsigned int idx1,
const unsigned int idx2,
86 const unsigned int idx3,
const unsigned int idx4);
89 const ROMol &mol,
unsigned int idx2,
unsigned int idx3);
93 URANGE_CHECK(idx, this->d_MMFFAtomPropertiesPtrVect.size());
95 return this->d_MMFFAtomPropertiesPtrVect[idx]->mmffAtomType;
98 URANGE_CHECK(idx, this->d_MMFFAtomPropertiesPtrVect.size());
100 return this->d_MMFFAtomPropertiesPtrVect[idx]->mmffFormalCharge;
103 URANGE_CHECK(idx, this->d_MMFFAtomPropertiesPtrVect.size());
105 return this->d_MMFFAtomPropertiesPtrVect[idx]->mmffPartialCharge;
112 this->d_stretchBendTerm = state;
124 PRECONDITION((mmffVariant ==
"MMFF94") || (mmffVariant ==
"MMFF94s"),
127 this->d_mmffs = mmffVariant ==
"MMFF94s";
130 return (this->d_mmffs ?
"MMFF94s" :
"MMFF94");
133 PRECONDITION(dielConst > 0.0,
"bad dielectric constant");
135 this->d_dielConst = dielConst;
139 this->d_dielModel = dielModel;
143 this->d_verbosity = verbosity;
150 const unsigned int idx2,
unsigned int &bondType,
153 const unsigned int idx2,
const unsigned int idx3,
154 unsigned int &angleType,
157 const unsigned int idx2,
158 const unsigned int idx3,
159 unsigned int &stretchBendType,
164 const unsigned int idx2,
const unsigned int idx3,
165 const unsigned int idx4,
unsigned int &torsionType,
168 const unsigned int idx2,
const unsigned int idx3,
169 const unsigned int idx4,
175 void setMMFFHeavyAtomType(
const RingMembershipSize &rmSize,
const Atom *atom);
176 void setMMFFHydrogenType(
const Atom *atom);
177 void setMMFFFormalCharge(
const unsigned int idx,
const double fChg) {
178 URANGE_CHECK(idx, this->d_MMFFAtomPropertiesPtrVect.size());
180 this->d_MMFFAtomPropertiesPtrVect[idx]->mmffFormalCharge = fChg;
182 void setMMFFPartialCharge(
const unsigned int idx,
const double pChg) {
183 URANGE_CHECK(idx, this->d_MMFFAtomPropertiesPtrVect.size());
185 this->d_MMFFAtomPropertiesPtrVect[idx]->mmffPartialCharge = pChg;
191 bool d_stretchBendTerm;
197 std::uint8_t d_dielModel;
199 std::uint8_t d_verbosity;
200 std::ostream *d_oStream;
201 std::vector<MMFFAtomPropertiesPtr> d_MMFFAtomPropertiesPtrVect;
204 const ROMol &mol,
const unsigned int idx1,
const unsigned int idx2,
205 const unsigned int idx3);
207 const ROMol &mol,
const unsigned int idx1,
const unsigned int idx2,
208 const unsigned int idx3,
const unsigned int idx4);
215 const ROMol &mol,
const unsigned int idx1,
const unsigned int idx2);
233 unsigned int idx2,
unsigned int idx3);
#define URANGE_CHECK(x, hi)
#define PRECONDITION(expr, mess)
class to store MMFF parameters for angle bending
class to store MMFF parameters for bond stretching
class to store MMFF parameters for out-of-plane bending
class to store MMFF Properties
class to store MMFF parameters for stretch-bending
class to store MMFF parameters for torsions
The class for representing atoms.
class for representing a bond
~MMFFAtomProperties()=default
bool getMMFFStretchBendParams(const ROMol &mol, const unsigned int idx1, const unsigned int idx2, const unsigned int idx3, unsigned int &stretchBendType, MMFFStbn &mmffStretchBendParams, MMFFBond mmffBondStretchParams[2], MMFFAngle &mmffAngleBendParams)
void setMMFFStretchBendTerm(const bool state)
std::uint8_t getMMFFDielectricModel()
void setMMFFOopTerm(const bool state)
bool getMMFFVdWParams(const unsigned int idx1, const unsigned int idx2, MMFFVdWRijstarEps &mmffVdWParams)
std::ostream & getMMFFOStream()
void setMMFFVariant(const std::string &mmffVariant)
void setMMFFDielectricModel(std::uint8_t dielModel)
bool getMMFFBondStretchParams(const ROMol &mol, const unsigned int idx1, const unsigned int idx2, unsigned int &bondType, MMFFBond &mmffBondStretchParams)
std::uint8_t getMMFFVerbosity()
double getMMFFDielectricConstant()
bool getMMFFAngleBendParams(const ROMol &mol, const unsigned int idx1, const unsigned int idx2, const unsigned int idx3, unsigned int &angleType, MMFFAngle &mmffAngleBendParams)
unsigned int getMMFFAngleType(const ROMol &mol, const unsigned int idx1, const unsigned int idx2, const unsigned int idx3)
std::uint8_t getMMFFAtomType(const unsigned int idx)
unsigned int getMMFFBondType(const Bond *bond)
void setMMFFBondTerm(const bool state)
void setMMFFVerbosity(std::uint8_t verbosity)
const ForceFields::MMFF::MMFFBond * getMMFFBondStretchEmpiricalRuleParams(const ROMol &mol, const Bond *bond)
void computeMMFFCharges(const ROMol &mol)
void setMMFFTorsionTerm(const bool state)
bool getMMFFTorsionTerm()
void setMMFFEleTerm(const bool state)
void setMMFFDielectricConstant(const double dielConst)
bool getMMFFStretchBendTerm()
void setMMFFVdWTerm(const bool state)
bool getMMFFOopBendParams(const ROMol &mol, const unsigned int idx1, const unsigned int idx2, const unsigned int idx3, const unsigned int idx4, MMFFOop &mmffOopBendParams)
const std::string getMMFFVariant()
double getMMFFPartialCharge(const unsigned int idx)
double getMMFFFormalCharge(const unsigned int idx)
void setMMFFAngleTerm(const bool state)
~MMFFMolProperties()=default
MMFFMolProperties(ROMol &mol, const std::string &mmffVariant="MMFF94", std::uint8_t verbosity=MMFF_VERBOSITY_NONE, std::ostream &oStream=std::cout)
void setMMFFOStream(std::ostream *oStream)
const ForceFields::MMFF::MMFFTor * getMMFFTorsionEmpiricalRuleParams(const ROMol &mol, unsigned int idx2, unsigned int idx3)
bool getMMFFTorsionParams(const ROMol &mol, const unsigned int idx1, const unsigned int idx2, const unsigned int idx3, const unsigned int idx4, unsigned int &torsionType, MMFFTor &mmffTorsionParams)
const std::pair< unsigned int, unsigned int > getMMFFTorsionType(const ROMol &mol, const unsigned int idx1, const unsigned int idx2, const unsigned int idx3, const unsigned int idx4)
RWMol is a molecule class that is intended to be edited.
#define RDKIT_FORCEFIELDHELPERS_EXPORT
RDKIT_FORCEFIELDHELPERS_EXPORT const ForceFields::MMFF::MMFFTorCollection * getMMFFTor(const bool isMMFFs)
RDKIT_FORCEFIELDHELPERS_EXPORT const ForceFields::MMFF::MMFFOopCollection * getMMFFOop(const bool isMMFFs)
RDKIT_FORCEFIELDHELPERS_EXPORT const ForceFields::MMFF::MMFFDefCollection * getMMFFDef()
RDKIT_FORCEFIELDHELPERS_EXPORT const ForceFields::MMFF::MMFFAromCollection * getMMFFArom()
RDKIT_FORCEFIELDHELPERS_EXPORT const ForceFields::MMFF::MMFFPBCICollection * getMMFFPBCI()
RDKIT_FORCEFIELDHELPERS_EXPORT const ForceFields::MMFF::MMFFAngleCollection * getMMFFAngle()
RDKIT_FORCEFIELDHELPERS_EXPORT const ForceFields::MMFF::MMFFHerschbachLaurieCollection * getMMFFHerschbachLaurie()
RDKIT_FORCEFIELDHELPERS_EXPORT const ForceFields::MMFF::MMFFVdWCollection * getMMFFVdW()
RDKIT_FORCEFIELDHELPERS_EXPORT const ForceFields::MMFF::MMFFPropCollection * getMMFFProp()
RDKIT_FORCEFIELDHELPERS_EXPORT const ForceFields::MMFF::MMFFStbnCollection * getMMFFStbn()
RDKIT_FORCEFIELDHELPERS_EXPORT const ForceFields::MMFF::MMFFDfsbCollection * getMMFFDfsb()
RDKIT_FORCEFIELDHELPERS_EXPORT unsigned int getPeriodicTableRow(const int atomicNum)
RDKIT_FORCEFIELDHELPERS_EXPORT unsigned int sanitizeMMFFMol(RWMol &mol)
RDKIT_FORCEFIELDHELPERS_EXPORT bool areAtomsInSameAromaticRing(const ROMol &mol, const unsigned int idx1, const unsigned int idx2)
boost::shared_ptr< MMFFAtomProperties > MMFFAtomPropertiesPtr
RDKIT_FORCEFIELDHELPERS_EXPORT unsigned int getMMFFStretchBendType(const unsigned int angleType, const unsigned int bondType1, const unsigned int bondType2)
RDKIT_FORCEFIELDHELPERS_EXPORT void setMMFFAromaticity(RWMol &mol)
RDKIT_FORCEFIELDHELPERS_EXPORT bool isRingAromatic(const ROMol &mol, const INT_VECT &ringIndxVect)
RDKIT_FORCEFIELDHELPERS_EXPORT bool isAtomInAromaticRingOfSize(const Atom *atom, const unsigned int ringSize)
RDKIT_FORCEFIELDHELPERS_EXPORT unsigned int isAngleInRingOfSize3or4(const ROMol &mol, const unsigned int idx1, const unsigned int idx2, const unsigned int idx3)
RDKIT_FORCEFIELDHELPERS_EXPORT bool areAtomsInSameRingOfSize(const ROMol &mol, const unsigned int ringSize, const unsigned int numAtoms,...)
RDKIT_FORCEFIELDHELPERS_EXPORT const ForceFields::MMFF::MMFFAngle * getMMFFAngleBendEmpiricalRuleParams(const ROMol &mol, const ForceFields::MMFF::MMFFAngle *oldMMFFAngleParams, const ForceFields::MMFF::MMFFProp *mmffPropParamsCentralAtom, const ForceFields::MMFF::MMFFBond *mmffBondParams1, const ForceFields::MMFF::MMFFBond *mmffBondParams2, unsigned int idx1, unsigned int idx2, unsigned int idx3)
RDKIT_FORCEFIELDHELPERS_EXPORT bool isAtomNOxide(const Atom *atom)
RDKIT_FORCEFIELDHELPERS_EXPORT unsigned int isTorsionInRingOfSize4or5(const ROMol &mol, const unsigned int idx1, const unsigned int idx2, const unsigned int idx3, const unsigned int idx4)
std::vector< int > INT_VECT
bool rdvalue_is(const RDValue_cast_t)