m_fetch_pdb {r3dmol}R Documentation

Fetch Structure from PDB

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

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

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)

[Package r3dmol version 0.1.2 Index]