Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CgPolymerView

Simple class providing a view on a subset of CgPolymer data

Hierarchy

  • CgPolymerView

Index

Constructors

constructor

  • new CgPolymerView(polymer: CgPolymer, fromIncl?: undefined | number, toExcl?: undefined | number, isCyclic?: undefined | false | true): CgPolymerView
  • Parameters

    • polymer: CgPolymer

      source polymer

    • Optional fromIncl: undefined | number

      starting index of the view subset, i.e., where the view should start (inclusive start)

    • Optional toExcl: undefined | number

      index of the ending element which should not be included in the view (exclusive end)

    • Optional isCyclic: undefined | false | true

      if the view should be cyclic or not

    Returns CgPolymerView

Properties

Private _from

_from: number

Private _isCyclic

_isCyclic: boolean

Private _sourcePolymer

_sourcePolymer: CgPolymer

Private _to

_to: number

Accessors

from

  • get from(): number

length

  • get length(): number

sourcePolymer

to

  • get to(): number

Methods

forEachMonomer

  • forEachMonomer(callback: (mp: CgMonomerProxy, o: number) => void): void

getMonomerProxyTemplate

getProxyIndexForOffset

  • getProxyIndexForOffset(offset: number): number
  • Returns monomer proxy index corresponding to its location in the source polymer. For example, input offset 0 means that the returned index will equal to "from" value.

    Parameters

    • offset: number

      input offset in the view

    Returns number

    index in the source polymer corresponding to the input offset

isCyclic

  • isCyclic(): boolean

isDna

  • isDna(): boolean

isNucleic

  • isNucleic(): boolean

isProtein

  • isProtein(): boolean

isRna

  • isRna(): boolean

Generated using TypeDoc