disables aromaticity prediction
More...
#include <AP_disabled.hh>
Dummy aromaticity perception implementation that actually performs NO
AROMATICITY PERCEPTION at all and thus disables aromaticity perception
wherever used.
The current aromaticity assignment is preserved.
- Author
- Martin Mann (c) 2014 http://www.bioinf.uni-freiburg.de/~mmann/
Definition at line 34 of file AP_disabled.hh.
ggl::chem::AP_disabled::AP_disabled |
( |
| ) |
|
|
inline |
Construction
- Parameters
-
model | the aromaticity model to be used |
Definition at line 67 of file AP_disabled.hh.
ggl::chem::AP_disabled::AP_disabled |
( |
const AP_disabled & |
toCopy | ) |
|
|
inline |
Copy construction
- Parameters
-
toCopy | the object to make this a copy of |
Definition at line 75 of file AP_disabled.hh.
virtual ggl::chem::AP_disabled::~AP_disabled |
( |
| ) |
|
|
inlinevirtual |
void ggl::chem::AromaticityPerception::clearData |
( |
| ) |
|
|
protectedinherited |
Resets internal temporary data structures.
virtual AP_disabled* ggl::chem::AP_disabled::clone |
( |
| ) |
const |
|
inlinevirtual |
virtual void ggl::chem::AP_disabled::correctAromaticity |
( |
Molecule & |
mol, |
|
|
const bool |
checkValence |
|
) |
| throw (std::runtime_error) |
|
inlinevirtual |
Does nothing and thus fully disables aromaticity perception
- Parameters
-
mol | the molecule to correct (not changed) |
checkValence | whether or not the valence of nodes and bonds should be checked. (ignored) |
- Exceptions
-
std::runtime_error | (never thrown) |
Reimplemented from ggl::chem::AromaticityPerception.
Definition at line 149 of file AP_disabled.hh.
virtual void ggl::chem::AP_disabled::findAllRings |
( |
const Molecule & |
mol | ) |
|
|
inlinevirtual |
void ggl::chem::AP_disabled::identifyAromaticEdges |
( |
const Molecule & |
mol | ) |
|
|
inlinevirtual |
static void ggl::chem::AromaticityPerception::pruneFusedRings |
( |
std::vector< RingDescriptor * > & |
rings | ) |
|
|
staticprotectedinherited |
Performs a pruning of rings (within the "allRings" container) that are fused versions of smaller rings sharing only one bond.
- Parameters
-
rings | the rings to be pruned |
static void ggl::chem::AromaticityPerception::pruneNonSingleDoubleBondRings |
( |
std::vector< RingDescriptor * > & |
rings, |
|
|
const Molecule & |
mol |
|
) |
| |
|
staticprotectedinherited |
Performs a pruning of rings (within the "allRings" container) that are not composed of single and double bonds only.
- Parameters
-
rings | the rings to be pruned |
mol | the molecule to relabel |
void ggl::chem::AromaticityPerception::relabelMolecule |
( |
Molecule & |
mol, |
|
|
const bool |
checkValence |
|
) |
| throw (std::runtime_error) |
|
protectedinherited |
Relabels the given molecule according to the aromatic rings defined by the aromaticEdges container. All other nodes and edges are set non-aromatic.
- Parameters
-
mol | the molecule to relabel (done inplace) |
checkValence | whether or not the valence of nodes and bonds should be checked. In error case a std::runtime_error is thrown. |
- Exceptions
-
std::runtime_error | if a canonical relabeling is not possible or the valence checks fail |
Is called to report a ring identified by a RingPerception instance.
Here it is used to store each ring within the allRings container.
- Parameters
-
graph | the graph that contains the ring |
ringList | the ring to report |
Implements sgm::RingReporter.
Utility class that converts a RingList, i.e. a list of nodes when traversing a ring within a graph, into the set of nodes that form the ring.
- Parameters
-
graph | the graph that contains the ring |
ringList | the ring list to convert |
- Returns
- the list of nodes traversing the ring
std::vector< RingDescriptor* > ggl::chem::AromaticityPerception::allRings |
|
protectedinherited |
container that will hold all rings of the current molecule -> this list is later pruned to the rings of interest
Definition at line 76 of file AromaticityPerception.hh.
EdgeSet ggl::chem::AromaticityPerception::aromaticEdges |
|
protectedinherited |
The documentation for this class was generated from the following file: