selChainSlider | R Documentation |
Function that takes a PDB file and visualizes it with Shiny. It creates a slider for the user to select which chain to view. This function allows user to interact and view occluded protein chains.
selChainSlider(pdbFile, name)
pdbFile |
A PDB file, could be downloaded from PDB online |
name |
the 4-letter PDB codes/identifiers of the PDB file to be visualized. |
None - it opens up shiny app with protein structure shown.
Chang, W, et al. (2017). Using sliders. Shiny from Rstudio. https://shiny.rstudio.com/articles/sliders.html.
# Using pdb2 file available with package #selChainSlider(pdb2, "1SI4")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.