Learn R Programming

SOMMD (version 0.1.2)

read.struct: Read structure files

Description

Function to read pdb and gro files

Usage

read.struct(file)

Value

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.

Arguments

file

contains the name and the path to the pdb or gro file to be read

Author

Stefano Motta stefano.motta@unimib.it

Examples

Run this code
# Read structure file
struct <- read.struct(system.file("extdata", "HIF2a.gro", package = "SOMMD"))

Run the code above in your browser using DataLab