Learn R Programming

MDplot (version 1.0.1)

load_hbond_ts: Loading hydrogen bonds timeseries

Description

This function loads hydrogen bond timeseries information from a text file and stores it in a table. See function hbond_ts() for usage of the return value. In case, AMBER format is used as input, this functions' return value might also be used for function hbond().

Usage

load_hbond_ts( path,
               mdEngine = "GROMOS" )

Arguments

path

Specifies the path of the input file.

mdEngine

Argument distinguishes between input formats based on the molecular dynamics engine used. Currently available: "GROMOS", "GROMACS" and "AMBER".

Value

Returns a nx2-matrix, where the first column holds the time in snapshots and the second one the respective hydrogen bond identifier. Note, that function hbond_ts() requires additional input provided by function load_hbond() and that hydrogen bond identifiers have to match.

Examples

Run this code
# the examples are valid and wrapped in the "dontrun{}" environment for efficiency purposes only
# GROMOS

load_hbond_ts( system.file( "extdata/hbond_ts_example.txt.gz", package = "MDplot" ) )

# GROMACS

load_hbond_ts( system.file( "extdata/hbond_ts_example_GROMACS.xpm.gz",
                            package = "MDplot" ),
               mdEngine = "GROMACS" )

# AMBER

load_hbond_ts( system.file( "extdata/hbond_ts_example_AMBER.txt.gz",
                            package = "MDplot" ),
               mdEngine = "AMBER" )

Run the code above in your browser using DataLab