trj2pdb | R Documentation |
Extract a trj frame to a pdb object
trj2pdb(trj, frame, filename)
trj |
a trj object. |
frame |
the frame to extract. |
filename |
for the output pdb file |
a pdb object of the selected frame
Called for its effect.
Stefano Motta stefano.motta@unimib.it
# Read the trajectory
trj <- read.trj(trjfile = system.file("extdata", "HIF2a-MD.xtc", package = "SOMMD"),
topfile = system.file("extdata", "HIF2a.gro", package = "SOMMD"))
# Write the pdb file for a specific frame
trj2pdb(trj = trj, frame=5, filename = tempfile(fileext = '.pdb' ))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.