OEValidateDesignUnit
Attention
This API is currently available in C++ and Python.
class OEValidateDesignUnit
This class performs a structural check after running Spruce preparation.
- It looks for:
Partial side chains
Partial charges
Implicit hydrogens
Incorrect terminal residues
Heavy atom overlap
Broken chains
OEDesignUnitIssueCodes shows the type of issue codes.
Code Example
Constructors
OEValidateDesignUnit()
OEValidateDesignUnit(const OEValidateDesignUnit& rhs)
Default and copy constructors for the OEValidateDesignUnit class.
Validate
unsigned Validate(OEBio::OEDesignUnit& du,
const OESpruce::OEStructureMetadata& mdata = OESpruce::OEStructureMetadata())
Returns a code which indicates the issues that are detected for this structure.
GetMessages
std::string GetMessages(const unsigned errorTypes = OEDesignUnitIssueCodes::ALL)
Returns the error message according to the provided error code.
GetProblematicResidues
std::vector<OEChem::OEResidue> GetProblematicResidues(const unsigned errorTypes = OEDesignUnitIssueCodes::ALL)
Returns the problematic residues that have the issues indicated by the input error code.