Skip to main content

Interface: ProteinOptions

Defined in: src/mobjects/molecular/Protein.ts:57

Options for a Protein.

Properties​

colorMode?​

optional colorMode: ProteinColorMode

Defined in: src/mobjects/molecular/Protein.ts:63

The color mode. Default: 'secondary-structure'.


colors?​

optional colors: Record<string, string>

Defined in: src/mobjects/molecular/Protein.ts:65

Color overrides, keyed by residue code (residue mode) or SS name (SS mode).


lineWidth?​

optional lineWidth: number

Defined in: src/mobjects/molecular/Protein.ts:71

Line width for the 'backbone-line' representation. Default: 4.


representation?​

optional representation: ProteinRepresentation

Defined in: src/mobjects/molecular/Protein.ts:61

The backbone representation. Default: 'tube'.


residues​

residues: ResidueCA[]

Defined in: src/mobjects/molecular/Protein.ts:59

The residues, one CA each, in chain order. At least two.


scale?​

optional scale: number

Defined in: src/mobjects/molecular/Protein.ts:77

World scale applied to every CA coordinate. Default: 1.


smoothing?​

optional smoothing: number

Defined in: src/mobjects/molecular/Protein.ts:69

Catmull-Rom subdivisions per residue span. Default: 6.


ssColors?​

optional ssColors: object

Defined in: src/mobjects/molecular/Protein.ts:75

Secondary-structure colors. Missing entries fall back to the defaults.

coil?​

optional coil: string

helix?​

optional helix: string

sheet?​

optional sheet: string


tubeRadius?​

optional tubeRadius: number

Defined in: src/mobjects/molecular/Protein.ts:67

Tube radius for the 'tube' representation. Default: 0.3.


uniformColor?​

optional uniformColor: string

Defined in: src/mobjects/molecular/Protein.ts:73

Color for the 'uniform' mode. Default: '#4f8ac9'.