load.enmff(ff = 'calpha')
ff.calpha(r, rmin=2.9, ...)
ff.anm(r, cutoff=15, gamma=1, ...)
ff.pfanm(r, cutoff=NULL, ...)
ff.calphax(r, atom.id, ssdat=NULL, verbose=FALSE, ...)
ff.sdenm(r, atom.id, ssdat=NULL, ...)
ff.reach(r, atom.id, ssdat=NULL, ...)
The
The implementation of the
The
The
See references for more details on the individual force fields.
nma
, build.hessian
## Load the c-alpha force field
pfc.fun <- load.enmff('calpha')
## Calculate the pair force constant for a set of C-alpha distances
force.constants <- pfc.fun( seq(4,8, by=0.5) )
## Calculate the complete spring force constant matrix
## Fetch PDB
pdb <- read.pdb("1hel")
## Fetch only c-alpha coordinates
ca.inds <- atom.select(pdb, 'calpha')
xyz <- pdb$xyz[ca.inds$xyz]
## Calculate distance matrix
dists <- dm.xyz(xyz, mask.lower=FALSE)
## all pair-wise spring force constants
fc.matrix <- apply(dists, 1, pfc.fun)
Run the code above in your browser using DataLab