NGL@0.10.4 Home Manual Reference Source GalleryRepository
import ChainProxy from 'ngl/src/proxy/chain-proxy.js'
public class | source

ChainProxy

Chain proxy

Constructor Summary

Public Constructor
public

constructor(structure: Structure, index: Integer)

Member Summary

Public Members
public get

Atom count

public
public get

Chain id

public get

Chain name

public get

Entity

public
public get

Model

public get

Residue count

public
public

Method Summary

Public Methods
public

Clone object

public

eachAtom(callback: function(atom: AtomProxy), selection: Selection): undefined

Atom iterator

public

eachPolymer(callback: function(polymer: Polymer), selection: Selection): undefined

Polymer iterator

public

eachResidue(callback: function(residue: ResidueProxy), selection: Selection): undefined

Residue iterator

public

eachResidueN(n: Integer, callback: function(residueList: ResidueProxy[])): undefined

Multi-residue iterator

Public Constructors

public constructor(structure: Structure, index: Integer) source

Params:

NameTypeAttributeDescription
structure Structure

the structure

index Integer

the index

Public Members

public get atomCount: Integer source

Atom count

public chainStore: ChainStore source

public get chainid: String source

Chain id

public get chainname: String source

Chain name

public get entity: Entity source

Entity

public index: Integer source

public get model: ModelProxy source

Model

public get residueCount: Integer source

Residue count

public residueStore: ResidueStore source

public structure: Structure source

Public Methods

public clone(): ChainProxy source

Clone object

Return:

ChainProxy

cloned chain

public eachAtom(callback: function(atom: AtomProxy), selection: Selection): undefined source

Atom iterator

Params:

NameTypeAttributeDescription
callback function(atom: AtomProxy)

the callback

selection Selection
  • optional

the selection

Return:

undefined

public eachPolymer(callback: function(polymer: Polymer), selection: Selection): undefined source

Polymer iterator

Params:

NameTypeAttributeDescription
callback function(polymer: Polymer)

the callback

selection Selection
  • optional

the selection

Return:

undefined

public eachResidue(callback: function(residue: ResidueProxy), selection: Selection): undefined source

Residue iterator

Params:

NameTypeAttributeDescription
callback function(residue: ResidueProxy)

the callback

selection Selection
  • optional

the selection

Return:

undefined

public eachResidueN(n: Integer, callback: function(residueList: ResidueProxy[])): undefined source

Multi-residue iterator

Params:

NameTypeAttributeDescription
n Integer

window size

callback function(residueList: ResidueProxy[])

the callback

Return:

undefined