Assembly
Assembly of transformed parts of a Structure
Constructor Summary
Public Constructor | ||
public |
constructor(name: String) |
Method Summary
Public Methods | ||
public |
Add transformed parts to the assembly |
|
public |
getAtomCount(structure: Structure): Integer Get the number of atom for a given structure |
|
public |
|
|
public |
|
|
public |
Get number of instances the assembly will produce, i.e. |
|
public |
getResidueCount(structure: Structure): Integer Get the number of residues for a given structure |
|
public |
|
|
public |
isIdentity(structure: Structure): Boolean Determine if the assembly is the full and untransformed structure |
Private Methods | ||
private |
|
Public Constructors
Public Methods
public addPart(matrixList: Matrix4[], chainList: String[]): AssemblyPart source
Add transformed parts to the assembly
Return:
AssemblyPart | the added assembly part |
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" ] )
public getAtomCount(structure: Structure): Integer source
Get the number of atom for a given structure
Params:
Name | Type | Attribute | Description |
structure | Structure | the given structure |
public getBoundingBox() source
public getCenter() source
public getInstanceCount(): Integer source
Get number of instances the assembly will produce, i.e. the number of transformations performed by the assembly
public getResidueCount(structure: Structure): Integer source
Get the number of residues for a given structure
Params:
Name | Type | Attribute | Description |
structure | Structure | the given structure |
public getSelection() source
public isIdentity(structure: Structure): Boolean source
Determine if the assembly is the full and untransformed structure
Params:
Name | Type | Attribute | Description |
structure | Structure | the given structure |