AtomSpec

Atom representation. Depending on the input file format, not all fields may be defined.

Source

Members

atom :string

Atom name; may be more specific than 'elem' (e.g 'CA' for alpha carbon)

Type:
  • string
Source

b :number

Atom b factor data

Type:
  • number
Source

bondOrder :Array

Array of this atom's bond orders, corresponding to bonds identfied by 'bonds'

Type:
  • Array
Source

bondStyles :Array

custom bond styling by position in bonds

Type:
  • Array
Source

bonds :Array

Array of atom ids this atom is bonded to

Type:
  • Array
Source

callback :function

Callback click handler function to be executed on this atom and its parent viewer

Type:
  • function
Source

chain :string

Chain this atom belongs to, if specified in input file (e.g 'A' for chain A)

Type:
  • string
Source

clickable :boolean

Set this flag to true to enable click selection handling for this atom

Type:
  • boolean
Source

color :ColorSpec

Atom's color, as hex code or built-in color string

Source

elem :string

Element abbreviation (e.g. 'H', 'Ca', etc)

Type:
  • string
Source

hetflag :boolean

Set to true if atom is a heteroatom

Type:
  • boolean
Source

hover_callback :function

Callback hover handler function to be executed on this atom and its parent viewer

Type:
  • function
Source

hoverable :boolean

Set this flag to true to enable hover selection handling for this atom

Type:
  • boolean
Source

index :number

Index of atom in molecule

Type:
  • number
Source

invert :boolean

for selection, inverts the meaning of the selection

Type:
  • boolean
Source

lchain :string

Label chain (not author)

Type:
  • string
Source

lresi :number

Label residues number (not author)

Type:
  • number
Source

lresn :string

Residue label name

Type:
  • string
Source

pdbline :string

If applicable, this atom's record entry from the input PDB file (used to output new PDB from models)

Type:
  • string
Source

properties :Record.<string, any>

Optional mapping of additional properties

Type:
  • Record.<string, any>
Source

resi :number

Residue number

Type:
  • number
Source

resn :string

Parent residue name

Type:
  • string
Source

serial :number

Atom's serial id number

Type:
  • number
Source

singleBonds :boolean

true if this atom forms only single bonds or no bonds at all

Type:
  • boolean
Source

ss :string

Secondary structure identifier (for cartoon render; e.g. 'h' for helix)

Type:
  • string
Source

style :AtomStyleSpec

style of atom

Source

surfaceColor :ColorSpec

Hex code for color to be used for surface patch over this atom

Source

unhover_callback :function

Callback handling "unhover" to be executed on this atom and its parent viewer

Type:
  • function
Source

x :number

Atom's x coordinate

Type:
  • number
Source

y :number

Atom's y coordinate

Type:
  • number
Source

z :number

Atom's z coordinate

Type:
  • number
Source