Arguments
- pdb
a bio3d pdb object as obtained from
read.pdb()
.
Value
a single element character vector with return characters as required by NGLVieweR::NGLVieweR()
function with format=pdb
option.
Details
Please use pdb2string()
instead.
Function to take a bio3d structure and use in the NGLVieweR package.
See also
view.pdb()
which uses this function internally, NGLVieweR::NGLVieweR()
, bio3d::read.pdb()
.
Author
Barry Grant, bjgrant@ucsd.edu
Examples
pdb <- bio3d::read.pdb("5p21")
#> Note: Accessing on-line PDB file
#> Warning: /var/folders/jd/wjwf0lcj0kd0tch_70sd1l4w0000gn/T//RtmpEoJQ6k/5p21.pdb exists. Skipping download
NGLVieweR::NGLVieweR(pdb2ngl(pdb), format="pdb") |>
NGLVieweR::addRepresentation("cartoon")