stride.trj {SOMMD}R Documentation

Stride a trj

Description

Apply a stride to the frame of a trj object to reduce the number of frames

Usage

stride.trj(trj, stride)

Arguments

trj

a trj object.

stride

the stride to apply to the trajectory

Value

An object of class trj with a frame every stride

Author(s)

Stefano Motta stefano.motta@unimib.it

Examples

# 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)


[Package SOMMD version 0.1.2 Index]