|
Open Babel
3.0
|
#include <phmodel.h>
Public Member Functions | |
| OBPhModel () | |
| ~OBPhModel () | |
| void | ParseLine (const char *) |
| size_t | GetSize () |
| void | AssignSeedPartialCharge (OBMol &) |
| void | CorrectForPH (OBMol &, double pH=7.4) |
| void | Init () |
| void | SetReadDirectory (char *dir) |
| void | SetEnvironmentVariable (char *var) |
Protected Attributes | |
| bool | _init |
| const char * | _dataptr |
| std::string | _filename |
| std::string | _dir |
| std::string | _subdir |
| std::string | _envvar |
Corrections for pH used by OBMol::CorrectForPH()
The data/phmodel.txt file contains transformations which are applied to correct the charges for a given pH. This function uses the Henderson-Hasselbalch equation to calculate which species (protonated/ unprotonated) is present in the highest concentration at the given pH.
For acids an entry would look like:
The 4.0 is the pKa for the dissociation [HA] -> [H+] + [A-]. To calculate [HA]/[A-] we use:
For a base, an entry would look be:
Here, the 10.7 is the pKa for the dissociation [BH+] -> [H+] + [B:]. To calculate [BH+]/[B:] we use:
The transformations are all applied (if needed at the specified pH value) in the same order they are found in data/phmodel.txt.
| OBPhModel | ( | ) |
| ~OBPhModel | ( | ) |
|
virtual |
Specified by particular table classes (parses an individual data line)
Reimplemented from OBGlobalDataBase.
|
inlinevirtual |
Reimplemented from OBGlobalDataBase.
| void AssignSeedPartialCharge | ( | OBMol & | mol | ) |
| void CorrectForPH | ( | OBMol & | mol, |
| double | pH = 7.4 |
||
| ) |
|
inherited |
Read in the data file, falling back as needed.
Referenced by OBRotorList::Init().
|
inlineinherited |
Set the directory before calling Init()
|
inlineinherited |
Set the environment variable to use before calling Init()
|
protectedinherited |
Whether the data been read already.
|
protectedinherited |
Default data table if file is unreadable.
|
protectedinherited |
File to search for.
|
protectedinherited |
Data directory for file if _envvar fails.
|
protectedinherited |
Subdirectory (if using environment variable)
|
protectedinherited |
Environment variable to check first.
1.8.13