stride.trj | R Documentation |
Apply a stride to the frame of a trj object to reduce the number of frames
stride.trj(trj, stride)
trj |
a trj object. |
stride |
the stride to apply to the trajectory |
An object of class trj with a frame every stride
Stefano Motta stefano.motta@unimib.it
# Read the simulation
trj <- read.trj(trjfile = system.file("extdata", "HIF2a-MD.xtc", package = "SOMMD"),
topfile = system.file("extdata", "HIF2a.gro", package = "SOMMD"))
# keep a frame every 2 frame
trj_strd <- stride.trj(trj, 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.