read.struct | R Documentation |
Function to read pdb and gro files
read.struct(file)
file |
contains the name and the path to the pdb or gro file to be read |
Returns a list of class "struct" with the following components:
atom |
a data frame containing all atomic coordinate with a row per atom and a column per record type. |
xyz |
a numeric matrix of class "xyz" containing the atomic coordinate data. |
box |
a vector of box size. |
format |
The format of the original file |
call |
the matched call. |
Stefano Motta stefano.motta@unimib.it
# Read structure file
struct <- read.struct(system.file("extdata", "HIF2a.gro", package = "SOMMD"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.