ProteinMotion
Reference navigation
On this page

MolecularStyle

Reusable representation name and keyword options for Protein.set_style() and Representation().

python
from proteinmotion import MolecularStyle

Constructor

python
MolecularStyle(representation: str='cartoon', options: dict=field(default_factory=dict))

Parameters

ParameterDefaultDescription
representationstr'cartoon'"cartoon", "ribbon", "ball_and_stick", or "surface".
optionsdictfield(default_factory=dict)Keyword options accepted by the named Protein representation method.

Attributes

NameDescription
representation"cartoon", "ribbon", "ball_and_stick", or "surface".
optionsKeyword options accepted by the named Protein representation method.

Methods and properties

NameDescription
apply()methodApply these representation options to a protein immediately, as set_style() does.
python
MolecularStyle.apply(protein)

Apply these representation options to a protein immediately, as set_style() does.

ParameterDefaultDescription
proteinRequiredProtein object to read or animate.

Returns: The protein, for chaining.