| load_hbond {MDplot} | R Documentation |
Loading hydrogen bond data
Description
This function loads hydrogen bond information from a text file and stores it in a table. See functions hbond() and hbond_ts() for usage of the return value.
Usage
load_hbond( path,
GROMACShbondlogfile = NA,
mdEngine = "GROMOS" )
Arguments
path |
Specifies the path of the text input file. |
GROMACShbondlogfile |
Additional file path required in case GROMACS format is specified. |
mdEngine |
Argument distinguishes between input formats based on the molecular dynamics engine used. Currently available: |
Value
Returns a table, where the hydrogen bonds are stored in a row-wise fashion and the columns hold the following information (note, that information not available e.g. because the MD analysis tool output does not provide it, is represented by NA values):
hbondIDThe identifier number of the hydrogen bonds (if not given by the input, they are numbered ascendingly).resDonorNumber of the donor residue.resDonorNameName of the donor residue.resAcceptorNumber of the acceptor residue.resAcceptorNameName of the acceptor residue.atomDonorNumber of atom, that is the hydrogen bond donor.atomDonorNameName of atom, that is the hydrogen bond donor.atomHNumber of atom (proton) that is forming the hydrogen bond.atomAcceptorNumber of atom, that is the hydrogen bond acceptor.atomAcceptorNameName of atom, that is the hydrogen bond acceptor.percentageNumber between0and100in percent representing the occurence rate of a particular hydrogen bond over the trajectory.
Author(s)
Christian Margreitter
Examples
# GROMOS
load_hbond( system.file( "extdata/hbond_example.txt.gz", package = "MDplot" ) )
# GROMACS
load_hbond( system.file( "extdata/hbond_ts_example_GROMACS.xpm.gz",
package = "MDplot" ),
system.file( "extdata/hbond_example_GROMACS.txt.gz",
package = "MDplot" ),
mdEngine = "GROMACS" )
# AMBER (summary)
load_hbond( system.file( "extdata/hbond_example_AMBER.txt.gz",
package = "MDplot" ), mdEngine = "AMBER" )
# AMBER (time-series)
load_hbond( system.file( "extdata/hbond_ts_example_AMBER.txt.gz",
package = "MDplot" ), mdEngine = "AMBER" )