Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork6
🧬 An R package for visualizing molecular data in 3D
License
swsoyee/r3dmol
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This is an R package that provides support for3Dmol.js as ahtmlwidgets.
Important: This package is still very early in its developmentstages. Please give the repository a star on Github if you find thepackage is useful. In addition, we need your feedback to improve thepackage, feel free to create an issue if you have any question orfeature requirement. You are more than welcome to submit a PR to makeany feasible improvements.
You could install the released version of r3dmol fromCRAN with:
install.packages("r3dmol")And the development version fromGitHub with:
# install.packages("devtools")devtools::install_github("swsoyee/r3dmol")
library(r3dmol)r3dmol(# Set up the initial viewerviewer_spec= m_viewer_spec(cartoonQuality=10,lowerZoomLimit=50,upperZoomLimit=350 )) %>% m_add_model(# Add model to scenedata=pdb_6zsl,format="pdb" ) %>% m_zoom_to() %>%# Zoom to encompass the whole scene m_set_style(# Set style of structuresstyle= m_style_cartoon(color="#00cc96" ) ) %>% m_set_style(# Set style of specific selectionsel= m_sel(ss="s"),# (selecting by secondary)style= m_style_cartoon(color="#636efa",arrows=TRUE ) ) %>% m_set_style(# Style the alpha helixsel= m_sel(ss="h"),# (selecting by alpha helix)style= m_style_cartoon(color="#ff7f0e" ) ) %>% m_rotate(# Rotate the scene by given angle on given axisangle=90,axis="y" ) %>% m_spin()# Animate the scene by spinning it

You can find more demo athere.
Nicholas Rego, David Koes,3Dmol.js: molecular visualization withWebGL,Bioinformatics, Volume 31, Issue 8, 15 April 2015, Pages 1322–1324,
Please note that the r3dmol project is released with aContributor CodeofConduct.By contributing to this project, you agree to abide by its terms.
About
🧬 An R package for visualizing molecular data in 3D
Topics
Resources
License
Code of conduct
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Packages0
Contributors4
Uh oh!
There was an error while loading.Please reload this page.
