# NOT RUN {
library(r3dmol)
r3dmol() %>%
m_add_model(data = pdb_6zsl) %>%
m_set_style(style = m_style_cartoon()) %>%
m_zoom_to() %>%
m_add_style(
sel = m_sel(resi = 1:10),
style = c(
m_style_stick(),
m_style_sphere(scale = 0.3)
)
) %>%
m_add_line(
start = m_multi_resi_sel(resi = rep(1, 9), chain = "A"),
end = m_multi_resi_sel(
resi = 2:10,
chain = "B"
)
)
# }
Run the code above in your browser using DataLab