![]() |
Chemical Data Processing Library C++ API - Version 1.4.0
|
Extracts the solvent-accessible surface atoms of a set of atoms. More...
#include <SurfaceAtomExtractor.hpp>
Public Member Functions | |
| SurfaceAtomExtractor () | |
Constructs the SurfaceAtomExtractor instance. More... | |
| SurfaceAtomExtractor (const AtomContainer &cntnr, const MolecularGraph &parent_molgraph, Fragment &frag) | |
| Perceives the surface accessible atoms of cntnr and adds them to the fragment frag. More... | |
| void | setProbeRadius (double radius) |
| Specifies the radius of the probe sphere that determines the accessibility of the surface atoms. More... | |
| double | getProbeRadius () const |
| Returns the radius of the probe sphere that determines the accessibility of the surface atoms. More... | |
| void | setGridStepSize (double size) |
| Specifies the distance between the grid-points in space which store lists of atoms with proximal positions. More... | |
| double | getGridStepSize () const |
| Return the distance between the grid-points for proximal atom lookup. More... | |
| void | setGridOversize (double size) |
| Specifies the margin that gets added to each side of the molecular graph's bounding-box for the calculation of the final atom-lookup grid dimensions. More... | |
| double | getGridOversize () const |
| Returns the margin that gets added to each side of the molecular graph's bounding-box for the calculation of the final atom-lookup grid dimensions. More... | |
| void | setMinSurfaceAccessibility (double min_acc) |
| Specifies the minimum fraction of test points that have to be accessible by the probe sphere to consider an atom as a surface atom. More... | |
| double | getMinSurfaceAccessibility () const |
| Returns the minimum fraction of test points that have to be accessible by the probe sphere to consider an atom as a surface atom. More... | |
| void | setNumTestPoints (std::size_t num_points) |
| Specifies the number of points on the atom surface at which a test for surface accessibility is carried out. More... | |
| std::size_t | getNumTestPoints () const |
| Returns the number of points on the atom surface at which a test for surface accessibility is carried out. More... | |
| void | setAtom3DCoordinatesFunction (const Atom3DCoordinatesFunction &func) |
| Specifies a function for the retrieval of atom 3D-coordinates. More... | |
| const Atom3DCoordinatesFunction & | getAtom3DCoordinatesFunction () const |
| Returns the function that was registered for the retrieval of atom 3D-coordinates. More... | |
| void | extract (const AtomContainer &cntnr, const MolecularGraph &parent_molgraph, Fragment &frag) |
| Perceives the surface accessible atoms of cntnr that are part of molgraph and adds them to the fragment frag. More... | |
Static Public Attributes | |
| static constexpr double | DEF_PROBE_RADIUS = 1.2 |
| The default probe sphere radius (in Å). More... | |
| static constexpr double | DEF_GRID_OVERSIZE = 5.0 |
| The default margin (in Å) added to each side of the bounding box for the atom-lookup grid. More... | |
| static constexpr double | DEF_GRID_STEP_SIZE = 0.75 |
| The default distance between grid points (in Å) along each axis of the atom-lookup grid. More... | |
| static constexpr double | DEF_MIN_SURFACE_ACC = 0.01 |
| The default minimum fraction of accessible test points required to classify an atom as surface-accessible. More... | |
| static constexpr std::size_t | DEF_NUM_TEST_POINTS = 250 |
| The default number of test points generated per atom on its van-der-Waals surface. More... | |
Extracts the solvent-accessible surface atoms of a set of atoms.
For each candidate atom, a configurable number of probe-sphere test points is generated on the atom's van-der-Waals surface and tested against the surrounding atoms (looked up via an internal 3D grid for efficiency). An atom is reported as surface-accessible when at least the minimum required fraction of its test points is reachable by the probe sphere. The probe radius, accessibility threshold, test-point count, and grid parameters can be tuned via the setters; atom 3D coordinates are obtained through a user-replaceable accessor function.
| CDPL::Chem::SurfaceAtomExtractor::SurfaceAtomExtractor | ( | ) |
Constructs the SurfaceAtomExtractor instance.
| CDPL::Chem::SurfaceAtomExtractor::SurfaceAtomExtractor | ( | const AtomContainer & | cntnr, |
| const MolecularGraph & | parent_molgraph, | ||
| Fragment & | frag | ||
| ) |
Perceives the surface accessible atoms of cntnr and adds them to the fragment frag.
| cntnr | The set of atoms for which to perceive the surface accessibility. |
| parent_molgraph | The parent molecular graph which embeds the atoms in cntnr. |
| frag | The output fragment where to store the perceived surface atoms. |
| void CDPL::Chem::SurfaceAtomExtractor::setProbeRadius | ( | double | radius | ) |
Specifies the radius of the probe sphere that determines the accessibility of the surface atoms.
| radius | The radius of the probe sphere. |
| double CDPL::Chem::SurfaceAtomExtractor::getProbeRadius | ( | ) | const |
Returns the radius of the probe sphere that determines the accessibility of the surface atoms.
| void CDPL::Chem::SurfaceAtomExtractor::setGridStepSize | ( | double | size | ) |
Specifies the distance between the grid-points in space which store lists of atoms with proximal positions.
| size | The distance between the grid-points along each axis. |
| double CDPL::Chem::SurfaceAtomExtractor::getGridStepSize | ( | ) | const |
Return the distance between the grid-points for proximal atom lookup.
| void CDPL::Chem::SurfaceAtomExtractor::setGridOversize | ( | double | size | ) |
Specifies the margin that gets added to each side of the molecular graph's bounding-box for the calculation of the final atom-lookup grid dimensions.
| size | The margin that gets added to the molecular graph's bounding-box. |
| double CDPL::Chem::SurfaceAtomExtractor::getGridOversize | ( | ) | const |
Returns the margin that gets added to each side of the molecular graph's bounding-box for the calculation of the final atom-lookup grid dimensions.
| void CDPL::Chem::SurfaceAtomExtractor::setMinSurfaceAccessibility | ( | double | min_acc | ) |
Specifies the minimum fraction of test points that have to be accessible by the probe sphere to consider an atom as a surface atom.
| min_acc | The minimum required fraction of accessible test points. |
| double CDPL::Chem::SurfaceAtomExtractor::getMinSurfaceAccessibility | ( | ) | const |
Returns the minimum fraction of test points that have to be accessible by the probe sphere to consider an atom as a surface atom.
| void CDPL::Chem::SurfaceAtomExtractor::setNumTestPoints | ( | std::size_t | num_points | ) |
Specifies the number of points on the atom surface at which a test for surface accessibility is carried out.
| num_points | The number of test points. |
| std::size_t CDPL::Chem::SurfaceAtomExtractor::getNumTestPoints | ( | ) | const |
Returns the number of points on the atom surface at which a test for surface accessibility is carried out.
| void CDPL::Chem::SurfaceAtomExtractor::setAtom3DCoordinatesFunction | ( | const Atom3DCoordinatesFunction & | func | ) |
Specifies a function for the retrieval of atom 3D-coordinates.
| func | The atom 3D-coordinates function. |
| const Atom3DCoordinatesFunction& CDPL::Chem::SurfaceAtomExtractor::getAtom3DCoordinatesFunction | ( | ) | const |
Returns the function that was registered for the retrieval of atom 3D-coordinates.
| void CDPL::Chem::SurfaceAtomExtractor::extract | ( | const AtomContainer & | cntnr, |
| const MolecularGraph & | parent_molgraph, | ||
| Fragment & | frag | ||
| ) |
Perceives the surface accessible atoms of cntnr that are part of molgraph and adds them to the fragment frag.
| cntnr | The set of atoms for which to perceive the surface accessibility. |
| parent_molgraph | The parent molecular graph which embeds the atoms in cntnr. |
| frag | The output fragment where to store the perceived surface atoms. |
|
staticconstexpr |
The default probe sphere radius (in Å).
|
staticconstexpr |
The default margin (in Å) added to each side of the bounding box for the atom-lookup grid.
|
staticconstexpr |
The default distance between grid points (in Å) along each axis of the atom-lookup grid.
|
staticconstexpr |
The default minimum fraction of accessible test points required to classify an atom as surface-accessible.
|
staticconstexpr |
The default number of test points generated per atom on its van-der-Waals surface.