Reference navigation
On this page
MolecularStyle
Reusable representation name and keyword options for Protein.set_style() and Representation().
from proteinmotion import MolecularStyleConstructor
MolecularStyle(representation: str='cartoon', options: dict=field(default_factory=dict))Parameters
| Parameter | Default | Description |
|---|---|---|
representationstr | 'cartoon' | "cartoon", "ribbon", "ball_and_stick", or "surface". |
optionsdict | field(default_factory=dict) | Keyword options accepted by the named Protein representation method. |
Attributes
| Name | Description |
|---|---|
representation | "cartoon", "ribbon", "ball_and_stick", or "surface". |
options | Keyword options accepted by the named Protein representation method. |
Methods and properties
| Name | Description |
|---|---|
| apply()method | Apply these representation options to a protein immediately, as set_style() does. |
MolecularStyle.apply(protein)Apply these representation options to a protein immediately, as set_style() does.
| Parameter | Default | Description |
|---|---|---|
protein | Required | Protein object to read or animate. |
Returns: The protein, for chaining.