m_fetch_pdb: Fetch Structure from PDB

Description Usage Arguments Examples

View source: R/bio3d.R

Description

Using specified pdb id, retrieved .pdb file using bio3d::get.pdb() function. Will always query the only PDB for structure, and not store on local drive. May take some time to fetch information, every time it is run.

Usage

1
m_fetch_pdb(pdb, save.pdb = FALSE, path = NULL)

Arguments

pdb

PDB ID string for structure.

save.pdb

Logical, whether or not to save the PDB to local drive. Will speed up subsequent load times. Defaults to FALSE

path

If save.pdb = TRUE, determines the location for file to be saved. Defaults to getwd().

Examples

1
2
3
4
5
6
7
8
library(r3dmol)
## Not run: 
r3dmol() %>%
  m_add_model(data = m_fetch_pdb("1bna")) %>%
  m_set_style(style = c(m_style_cartoon(), m_style_stick())) %>%
  m_zoom_to()

## End(Not run)

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