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.

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)
if (FALSE) {
r3dmol() %>%
  m_add_model(data = m_fetch_pdb("1bna")) %>%
  m_set_style(style = c(m_style_cartoon(), m_style_stick())) %>%
  m_zoom_to()
}