OEPeptideDisplayOptions
class OEPeptideDisplayOptions
This class represents the OEPeptideDisplayOptions class that encapsulates properties that determine how a peptide is depicted.
See also
OEDrawPeptidefunction
Code Example
Depict Peptide OpenEye Python Cookbook recipe
Constructors
OEPeptideDisplayOptions() -> OEPeptideDisplayOptions
Default constructor.
Peptide depiction with default options
OEPeptideDisplayOptions(style: int) -> OEPeptideDisplayOptions
OEPeptideDisplayOptions(arg2: OEPeptideDisplayOptions) -> OEPeptideDisplayOptions
Copy constructor.
GetAminoAcidScale
GetAminoAcidScale() -> float
Returns the scaling factor of amino-acid components in interactive mode.
See also
GetInteractive
GetInteractive() -> bool
Returns whether the generated svg image will be interactive.
See also
GetLabelStyle
GetLabelStyle() -> int
Warning
This is a deprecated API.
SetAminoAcidScale
SetAminoAcidScale(scale: float) -> None
Sets the scaling factor of amino-acid components in interactive mode.
- scale
This value has to be in a range of [0.25, 0.75]. The default value is 0.50.
Note
This option has to be used along with the
OEPeptideDisplayOptions.SetInteractive method
Example:
opts = oegrapheme.OEPeptideDisplayOptions()
opts.SetInteractive(True)
opts.SetAminoAcidScale(0.75)
Note
This functionality is only available for .svg
image format. In other image formats it has no effect.
SetInteractive
SetInteractive(interactive: bool) -> None
Sets whether the generated svg image will be interactive.
In interactive mode the amino acid components of the compact peptide representation
are depicted on mouse over.
Example:
opts = oegrapheme.OEPeptideDisplayOptions()
opts.SetInteractive(True)
Note
This functionality is only available for .svg
image format. In other image formats it has no effect.
SetLabelStyle
SetLabelStyle(style: int) -> None
Warning
This is a deprecated API.
- style
This value has to be from the
OEPeptideLabelStylenamespace.
Example:
Peptide depiction with single letter style
See also
OEPeptideLabelStylenamespace