Perform Gaussian network model (GNM) based normal mode analysis (NMA) for a protein structure.
gnm(x, ...)# S3 method for pdb
gnm(x, inds = NULL, temp = 300, keep = NULL,
outmodes = NULL, gamma = 1, cutoff = 8, check.connect = TRUE, ...)
# S3 method for pdbs
gnm(x, fit = TRUE, full = FALSE, subspace = NULL,
rm.gaps = TRUE, gc.first = TRUE, ncore = NULL, ...)
an object of class pdb
as obtained from function read.pdb
.
(in gnm.pdbs
) additional arguments passed to gnm.pdb
.
atom and xyz coordinate indices obtained from atom.select
that
selects the elements of pdb
upon which the calculation should be based.
If not provided the function will attempt to select all calpha atoms automatically.
numerical, temperature for which the amplitudes for scaling the atomic displacement vectors are calculated. Set ‘temp=NULL’ to avoid scaling.
numerical, final number of modes to be stored. Note that all subsequent analyses are limited to this subset of modes. This option is useful for very large structures and cases where memory may be limited.
atom indices as obtained from atom.select
specifying the atoms
to include in the resulting mode object.
numerical, global scale of the force constant.
numerical, distance cutoff for pair-wise interactions.
logical, if TRUE check chain connectivity.
logical, if TRUE C-alpha coordinate based superposition is performed prior to normal mode calculations.
logical, if TRUE return the complete, full structure, ‘nma’ objects.
number of eigenvectors to store for further analysis.
logical, if TRUE obtain the hessian matrices for only atoms in the aligned positions (non-gap positions in all aligned structures). Thus, gap positions are removed from output.
logical, if TRUE will call gc() first before mode calculation
for each structure. This is to avoid memory overload when
ncore > 1
.
number of CPU cores used to do the calculation.
Returns an object of class ‘gnm’ with the following components:
numeric vector containing the force constants corresponding to each mode.
numeric vector of atomic fluctuations.
numeric matrix with columns containing the raw eigenvectors.
numeric vector containing the raw eigenvalues.
numeric matrix of class xyz
containing the Cartesian coordinates
in which the calculation was performed.
numerical, temperature for which the amplitudes for scaling the atomic displacement vectors are calculated.
number of trivial modes.
number of C-alpha atoms.
the matched call.
This function builds a Gaussian network model (an isotropic elastic network model) for C-alpha atoms and performs subsequent normal mode analysis (NMA). The model employs a distance cutoff for the network construction: Atom pairs with distance falling within the cutoff have a harmonic interaction with a uniform force constant; Otherwise atoms have no interaction. Output contains N-1 (N, the number of residues) non-trivial modes (i.e. the degree of freedom is N-1), which can then be used to calculate atomic fluctuations and covariance.
Bahar, I. et al. (1997) Folding Des. 2, 173.
# NOT RUN {
## Fetch stucture
pdb <- read.pdb( system.file("examples/1hel.pdb", package="bio3d") )
## Calculate normal modes
modes <- gnm(pdb)
## Print modes
print(modes)
## Plot modes
plot(modes)
# }
Run the code above in your browser using DataLab