schrodinger.trajectory.prody.nma module

This module defines a class handling normal mode analysis data.

class schrodinger.trajectory.prody.nma.NMA(title='Unknown')[source]

Bases: object

A class for handling Normal Mode Analysis (NMA) data.

__init__(title='Unknown')[source]

Initialize self. See help(type(self)) for accurate signature.

__len__()[source]
getTrace()[source]

Return trace, and emit a warning message if trace is calculated using eigenvalues of a subset of variances (eigenvalues or inverse eigenvalues).

getModel()[source]

Return self.

is3d()[source]

Return True if model is 3-dimensional.

numAtoms()[source]

Return number of atoms.

numModes()[source]

Return number of modes in the instance (not necessarily maximum number of possible modes).

numDOF()[source]

Return number of degrees of freedom.

getTitle()[source]

Return title of the model.

setTitle(title)[source]

Set title of the model.

getEigvals()[source]

Return eigenvalues. For PCA and EDA models built using coordinate data in Å, unit of eigenvalues is |A2|. For ANM, GNM, and RTB, on the other hand, eigenvalues are in arbitrary or relative units but they correlate with stiffness of the motion along associated eigenvector.

getVariances()[source]

Return variances. For PCA and EDA models built using coordinate data in Å, unit of variance is |A2|. For ANM, GNM, and RTB, on the other hand, variance is the inverse of the eigenvalue, so it has arbitrary or relative units.

getArray()[source]

Return a copy of eigenvectors array.

getEigvecs()

Return a copy of eigenvectors array.

getCovariance()[source]

Return covariance matrix. If covariance matrix is not set or yet calculated, it will be calculated using available modes.

calcModes()[source]
addEigenpair(vector, value=None)[source]

Add eigen vector and eigen value pair(s) to the instance. If eigen value is omitted, it will be set to 1. Inverse eigenvalues are set as variances.

setEigens(vectors, values=None)[source]

Set eigen vectors and eigen values. If eigen values are omitted, they will be set to 1. Inverse eigenvalues are set as variances.