Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Assembly

Assembly of transformed parts of a Structure

Hierarchy

  • Assembly

Index

Constructors

constructor

Properties

name

name: string

assembly name

partList

partList: AssemblyPart[] = []

Accessors

type

  • get type(): string

Methods

addPart

  • addPart(matrixList?: Matrix4[], chainList?: string[]): AssemblyPart
  • Add transformed parts to the assembly

    example

    var m1 = new NGL.Matrix4().set( ... ); var m2 = new NGL.Matrix4().set( ... ); var assembly = new NGL.Assembly( "myAssembly" ); // add part that transforms chain 'A' and 'B' using matrices m1 and m2 assembly.addPart( [ m1, m2 ], [ "A", "B" ] )

    Parameters

    • Optional matrixList: Matrix4[]

      array of 4x4 transformation matrices

    • Optional chainList: string[]

      array of chain names

    Returns AssemblyPart

    the added assembly part

getAtomCount

  • Get the number of atom for a given structure

    Parameters

    Returns number

    number of atoms in the assembly

getBoundingBox

getCenter

getInstanceCount

  • getInstanceCount(): number
  • Get number of instances the assembly will produce, i.e. the number of transformations performed by the assembly

    Returns number

    number of instances

getResidueCount

  • getResidueCount(structure: Structure): number
  • Get the number of residues for a given structure

    Parameters

    Returns number

    number of residues in the assembly

getSelection

isIdentity

  • Determine if the assembly is the full and untransformed structure

    Parameters

    Returns boolean

    whether the assembly is identical to the structure

Generated using TypeDoc