Last chance! 50% off unlimited learning
Sale ends in
mktrj(...)
"mktrj"(pca = NULL, pc = 1, mag = 1, step = 0.125, file = NULL, ...)
"mktrj"(nma = NULL, mode = 7, mag = 10, step = 1.25, file = NULL, ...)
"mktrj"(enma = NULL, pdbs = NULL, s.inds = NULL, m.inds = NULL, mag = 10, step = 1.25, file = NULL, rock = TRUE, ncore = NULL, ...)
"nma"
as obtained with
function nma.pdb
."enma"
as obtained with
function nma.pdbs
."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
). 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).
pca
, nma
,
nma.pdbs
,
view.modes
.
## Not run:
#
# ##- 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
#
# detach(transducin)
#
#
# ##- NMA example
# ## Fetch stucture
# pdb <- read.pdb( system.file("examples/1hel.pdb", package="bio3d") )
#
# ## Calculate (vibrational) normal modes
# modes <- nma(pdb)
#
# ## Visualize modes
# outfile = file.path(tempdir(), "mode_7.pdb")
# mktrj(modes, mode=7, file = outfile)
# outfile
#
# ## End(Not run)
Run the code above in your browser using DataLab