mktrj(...)"mktrj"(pca = NULL, pc = 1, mag = 1, step = 0.125, file = NULL, pdb = NULL, rock=TRUE, ...)"mktrj"(nma = NULL, mode = 7, mag = 10, step = 1.25, file = NULL, pdb = NULL, rock=TRUE, ...)"mktrj"(enma = NULL, pdbs = NULL, s.inds = NULL, m.inds = NULL, mag = 10, step = 1.25, file = NULL, rock = TRUE, ncore = NULL, ...)
"pca"
as obtained with
function pca.xyz
or pca
."nma"
as obtained with
function nma.pdb
."enma"
as obtained with
function nma.pdbs
."pdb"
as obtained from
read.pdb
or class "pdbs"
as obtained from
read.fasta.pdb
. If not NULL, used as reference to write
the PDB file. "pdbs"
(obtained with
pdbaln
or read.fasta.pdb
) which
corresponds to the "enma"
object.enma
object for which the trajectory shall be generated. ncore>1
requires package parallel installed. write.pdb
). Make a trajectory of atomic displacments along a given principal component / normal mode.
Trajectory frames are built from reconstructed Cartesian coordinates
produced by interpolating from the mean structure along a given
pc
or mode
, in increments of step
.
An optional magnification factor can be used to amplify
displacements. This involves scaling by mag
-times the standard
deviation of the conformer distribution along the given pc
(i.e. the square root of the associated eigenvalue).
Molecular graphics software such as VMD or PyMOL is useful for viewing trajectories see e.g: http://www.ks.uiuc.edu/Research/vmd/.
Grant, B.J. et al. (2006) Bioinformatics 22, 2695--2696.
##- PCA example attach(transducin) # Calculate principal components pc.xray <- pca(pdbs, fit=TRUE) # Write PC trajectory of pc=1 outfile = tempfile() a <- mktrj(pc.xray, file = outfile) outfile[1] "/tmp/RtmpTDihxb/filecfdb71986fa"detach(transducin) ##- NMA example ## Fetch stucture pdb <- read.pdb( system.file("examples/1hel.pdb", package="bio3d") ) ## Calculate (vibrational) normal modes modes <- nma(pdb)Building Hessian... Done in 0.044 seconds. Diagonalizing Hessian... Done in 0.132 seconds.## Visualize modes outfile = file.path(tempdir(), "mode_7.pdb") mktrj(modes, mode=7, pdb=pdb, file = outfile) outfile[1] "/tmp/RtmpTDihxb/mode_7.pdb"