powered by
Function to read pdb and gro files
read.struct(file)
Returns a list of class "struct" with the following components:
a data frame containing all atomic coordinate with a row per atom and a column per record type.
a numeric matrix of class "xyz" containing the atomic coordinate data.
a vector of box size.
The format of the original file
the matched call.
contains the name and the path to the pdb or gro file to be read
Stefano Motta stefano.motta@unimib.it
# Read structure file struct <- read.struct(system.file("extdata", "HIF2a.gro", package = "SOMMD"))
Run the code above in your browser using DataLab