m_bio3d: Load structure from package bio3d

Description Usage Arguments Examples

View source: R/bio3d.R

Description

Function to take bio3d structure and use in the r3dmol app.

Usage

1
m_bio3d(pdb)

Arguments

pdb

bio3d object containing coordinates for desired structure

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
library(bio3d)
library(r3dmol)

# create bio3d object
pdb <- read.pdb("1bna")

# inspect bio3d object
pdb

# load bio3d object into r3dmol
r3dmol() %>%
  m_add_model(data = m_bio3d(pdb)) %>%
  m_zoom_to()

r3dmol documentation built on March 14, 2021, 5:08 p.m.