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

Polymer

Polymer

Constructor Summary

Public Constructor
public

constructor(structure: Structure, residueIndexStart: Integer, residueIndexEnd: Integer)

Member Summary

Public Members
public
public
public get
public
public
public
public
public

Method Summary

Public Methods
public

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

Atom iterator

public

eachResidue(callback: function(residue: ResidueProxy)): undefined

Residue iterator

public

If atom is part of a coarse-grain group

public

If atom is part of a nucleic molecule

public

If first residue is from aprotein

Public Constructors

public constructor(structure: Structure, residueIndexStart: Integer, residueIndexEnd: Integer) source

Params:

NameTypeAttributeDescription
structure Structure

the structure

residueIndexStart Integer

the index of the first residue

residueIndexEnd Integer

the index of the last residue

Public Members

public atomStore: AtomStore source

public chainStore: ChainStore source

public get chainname: String source

public residueCount: Integer source

public residueIndexEnd: Integer source

public residueIndexStart: Integer source

public residueStore: ResidueStore source

public structure: Structure source

Public Methods

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 eachResidue(callback: function(residue: ResidueProxy)): undefined source

Residue iterator

Params:

NameTypeAttributeDescription
callback function(residue: ResidueProxy)

the callback

Return:

undefined

public isCg(): Boolean source

If atom is part of a coarse-grain group

Return:

Boolean

flag

public isNucleic(): Boolean source

If atom is part of a nucleic molecule

Return:

Boolean

flag

public isProtein(): Boolean source

If first residue is from aprotein

Return:

Boolean

flag