OEMatchedPairAnalyzer¶
class OEMatchedPairAnalyzer
This class represents the OEMatchedPairAnalyzer class that performs a matched pair indexing analysis on an input set of structures.
See also
Constructors¶
OEMatchedPairAnalyzer()
Default constructor that initializes the analysis engine with the default options defined by OEMatchedPairAnalyzerOptions.
OEMatchedPairAnalyzer(const OEMatchedPairAnalyzerOptions &options)
Constructor that initializes the analysis engine with the options defined by the OEMatchedPairAnalyzerOptions argument.
AddMol¶
int AddMol(const OEChem::OEMolBase &inmol, int recordID=(-1))
Add the molecule to the index and return the 0-based recordID if the structure was successfully added, or a negative index if the structure was unable to be indexed. Negative values can be used to retrieve status information detail for indexing failures. The optional user-defined recordID is provided to allow indexed matched pairs to be referenced to externally maintained data structures. If the provided recordID is less than zero, an autogenerated index is returned which is an index greater than all ids seen so far.
GetMaxMolIdx¶
unsigned int GetMaxMolIdx() const
Returns one more than the maximum molecule index this Matched Pair index currently contains.
GetMolecule¶
bool GetMolecule(OEChem::OEMolBase &mol, unsigned int molID, bool includeData=true) const
Returns the molecule referenced by molID
in the index. An optional includeData argument controls whether
generic data present on the molecule at index time is also returned.
GetOptions¶
const OEMatchedPairAnalyzerOptions &GetOptions() const
See also
GetProcessorID¶
const char *GetProcessorID() const
Returns a character string name of the processor type.
See also
GetProcessorType¶
unsigned int GetProcessorType() const
Returns a constant representing the processor type in use.
See also
IsIndexed¶
int IsIndexed(unsigned int recordID) const
Returns whether the specified record id has been indexed.
NumIndexNodes¶
unsigned int NumIndexNodes() const
Return a count of the number of index nodes currently present in the index.
NumMatchedPairs¶
unsigned int NumMatchedPairs() const
Return a count of the number of matched molecular pairs currently present in the index.
NumMols¶
unsigned int NumMols() const
Return a count of the number of molecules that have currently been added to the index.
ModifyOptions¶
bool ModifyOptions(unsigned int addopts, unsigned int delopts)
An active analyzer has a limited set of options that can be altered once it has been instantiated as many of the options affect the internal indexing contents. This method can be used to alter any options that do not affect the internal index state.
See also