Description Usage Arguments Examples
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.
1 | m_fetch_pdb(pdb, save.pdb = FALSE, path = NULL)
|
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 |
path |
If |
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.