stride.trj: Stride a trj

View source: R/stride.trj.R

stride.trjR 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)


SOMMD documentation built on Oct. 2, 2024, 5:07 p.m.