vmd(...)"vmd"(x, pdb, layout = layout.cna(x, pdb, k=3), col.sphere=NULL, col.lines = "silver", weights = NULL, radius = table(x$communities$membership)/5, alpha = 1, vmdfile = "network.vmd", pdbfile = "network.pdb", full = FALSE, launch = FALSE, exefile=NULL, ...)"vmd"(x, pdb, out.prefix = "vmd.cnapath", spline = FALSE, colors = c("blue", "red"), launch = FALSE, exefile=NULL, ...)
cna
or cnapath
.
colorRamp
function to generate the
color scales. If an integer, color all paths the same way with VMD color
ID equal to the integer. NULL
, use OS-dependent
default path to the program. colorRamp
(in vmd.cnapath
).
This function generates a VMD scene file and a PDB file that can be read and rendered by the VMD molecular viewer. Chose color by chain to see corresponding regions of structure colored by community along with the community protein structure network.
This function generates a scaled sphere (communities) and stick (edges) representation of the community network along with the corresponding protein structure divided into chains, one chain for each community. The sphere radii are proportional to the number of community members and the edge widths correspond to network edge weights.
Humphrey, W., Dalke, A. and Schulten, K., ``VMD - Visual Molecular Dynamics'' J. Molec. Graphics 1996, 14.1, 33-38.
# Load the correlation network from MD data attach(hivp) # Read the starting PDB file to determine atom correspondence pdbfile <- system.file("examples/hivp.pdb", package="bio3d") pdb <- read.pdb(pdbfile) # View cna vmd.cna(net, pdb, launch=FALSE) ## within VMD set 'coloring method' to 'Chain' and 'Drawing method' to Tube ##-- From NMA pdb.gdi = read.pdb("1KJY")Note: Accessing on-line PDB filepdb.gdi = trim.pdb(pdb.gdi, inds=atom.select(pdb.gdi, chain="A", elety="CA")) modes.gdi = nma(pdb.gdi)Building Hessian... Done in 0.18 seconds. Diagonalizing Hessian... Done in 1.785 seconds.cij.gdi = dccm(modes.gdi)|======================================================================| 100%net.gdi = cna(cij.gdi, cutoff.cij=0.35) #vmd.cna(net.gdi, pdb.gdi, alpha = 0.7, launch=TRUE) detach(hivp)