OEReceptor
class OEReceptor
The OEReceptor represents a receptor as used in a OEDocking or POSIT calculation.
- The OEReceptor class defines the following public methods:
Constructor
OEReceptor() -> OEReceptor
OEReceptor(arg2: OEReceptor) -> OEReceptor
Default and copy constructors.
Assignment operator.
AddProteinConstraint
AddProteinConstraint(arg2: OEReceptorProteinConstraint) -> bool
Adds a protein constraint. If the receptor already has a constraint on the specified atom the constraint will be replaced, otherwise a new one will be created.
Clear
Clear() -> bool
Clear all receptor information from receptor, and makes it an invalid receptor.
ClearCustomConstraints
ClearCustomConstraints() -> boolClear all custom constraints from the receptor.
ClearProteinConstraint
ClearProteinConstraint(arg2: OEReceptorProteinConstraint) -> boolRemove the specified protein constraint from the receptor.
ClearProteinConstraints
ClearProteinConstraints() -> boolClear all protein constraint from the receptor.
GetCustomConstraints
GetCustomConstraints() -> OEReceptorCustomConstraintsReturn a copy of the receptor’s custom constraints.
GetInnerContourLevel
GetInnerContourLevel() -> floatReturn the inner contour level of the receptor
GetNegativeImageGrid
GetNegativeImageGrid() -> OEFloatGridReturn a copy of the receptor’s negative image potential grid.
GetOuterContourLevel
GetOuterContourLevel() -> float
Return the outer contour level of the receptor
GetOuterContourVolume
GetOuterContourVolume() -> float
Return the volume of the outer contour of the receptor at the set contour level. Will return zero if the contour is not set or has a negative value.
GetInnerContourVolume
GetInnerContourVolume() -> float
Return the volume of the inner contour of the receptor at the set contour level Will return zero if the contour is not set or has a negative value.
NumProteinConstraints
NumProteinConstraints(enabledOnly: bool = True) -> intReturns the number of OEReceptorProteinConstraint objects contained by this class.
If enabledOnly is true then only OEReceptorProteinConstraint objects for which the method
OEReceptorProteinConstraint.GetEnabledreturns true will be counted.
GetProteinConstraints
GetProteinConstraints(enabledOnly: bool = True) -> Iterable[OEReceptorProteinConstraint]Returns an iterator over the receptor’s protein constraints. If
enabledOnlyistruethen only enabled constraints will be returned.
GetTargetMask
GetTargetMask() -> intReturn the target mask corresponding to the receptor. The mask and predicate, can be used with the
OEDesignUnit.GetComponentsmethod to generate the molecule used in receptor generation.
GetTargetPred
GetTargetPred() -> OEAtomMatchResidueReturns the residue based OEAtomMatchResidue predicate used with the corresponding target mask to generate the receptor. The mask and predicate, can be used with the
OEDesignUnit.GetComponentsmethod to generate the molecule used in receptor generation.See also
OEAtomMatchResidue class
OEDesignUnit.GetComponentsmethod
IsValid
IsValid() -> boolReturns if the this is a valid receptor, and ready to be used for OEDocking or POSIT calculation.
HasCustomConstraints
HasCustomConstraints(enabledOnly: bool = True) -> boolReturns true if receptor has custom constraints. If
enabledOnlyistruethen at least one of the constraints must be enabled.
HasInnerContourLevel
HasInnerContourLevel() -> boolReturns true if the receptor has an inner contour level set.
HasNegativeImageGrid
HasNegativeImageGrid() -> boolReturns true if the receptor has negative image potential grid. A receptor is invalid without the negative image potential grid.
HasOuterContourLevel
HasOuterContourLevel() -> boolReturns true if the receptor has an outer contour level set.
HasProteinConstraints
HasProteinConstraints(enabledOnly: bool = True) -> boolReturns true if receptor has protein constraints. If
enabledOnlyistruethen at least one of the constraints must be enabled.
SetCustomConstraints
SetCustomConstraints(arg2: OEReceptorCustomConstraints) -> boolSet custom constraints to the receptor. Returns
trueis set.
SetInnerContourLevel
SetInnerContourLevel(level: float) -> boolSet inner contour level to the receptor. Returns
trueis set.
SetOuterContourLevel
SetOuterContourLevel(level: float) -> bool
Set outer contour level to the receptor. Returns true is set.