Learn R Programming

Rpdb (version 2.0)

basis.pdb: The Basis Set of a pdb Object

Description

Functions to get or set the basis of a 'pdb' object.

Usage

## S3 method for class 'pdb':
basis(x)

## S3 method for class 'pdb': basis(x) <- value

Arguments

x
an object of class pdb.
value
a single element character vector used to set the basis of x.

Value

  • [object Object],[object Object]

Details

These two function get and set the basis attribute of the atoms component of the pdb object. This attribute indicate the type basis vector used to express atomic coordinates. value must be equal to "xyz", for Cartesian, or "abc", for fractional coordinates.

See Also

basis, pdb

Examples

Run this code
x <- read.pdb(system.file("examples/PCBM_ODCB.pdb",package="Rpdb"))
basis(x)
basis(x) <- "abc"
basis(x)

Run the code above in your browser using DataLab