Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

R Shiny wrapper for Mol* (/'molstar/) - A visualization toolkit of large-scale molecular data

NotificationsYou must be signed in to change notification settings

Appsilon/shiny.molstar

R Shiny wrapper for Mol* (/'molstar/) - A visualization toolkit of large-scale molecular data

R-CMD-checks

Based onMol* (/'molstar/) and powered byshiny.react

We created a R Shiny wrapper based onshiny.react andmolstar-react(node.js library) that gives all the powerful tools of Mol* open-source toolkit for visualization and analysis of large-scale molecular data.

This package exports three new components that can be used in a Shiny application.

  • Molstar creates a Molstar visualization of a protein using an URL to a valid filetype supported by Molstar or a "Protein Data Bank" id(pdbId). See more below for available databases to find a validpdbId.
  • AlphaFoldMolstar similar to the Molstar component, but uses the UniProt id in the AlphaFold database to display the protein.
  • AlphaFoldDetails creates a component that retrieves details of an AlphaFold protein id(title, download links and a Predict Aligned Error image)

How to find a valid id or url?

A validpdbId can be found in public databases such as:

TheuniProtId can be found in any of the AlphaFold databases:

Getting started

To install the package, run:

remotes::install_github("Appsilon/shiny.molstar")

Take a look at basicexample app to start working with shiny.molstar.

To learn about the Mol* language, follow theViewer documentation.

Examples

A good way to learn more is to look at the examples. Once you install the library, you can run them withshiny.molstar::runExample function.

shiny.molstar::runExample("FullPage")shiny.molstar::runExample("Minimal")shiny.molstar::runExample("AlphaFold")shiny.molstar::runExample("AlphaFoldDetails")

Full page example

Creating a full page viewer on a sample molecule(example also available atinst/examples/FullPage.R)

library(shiny)library(shiny.molstar)shinyApp(  ui = tagList(    tags$style(HTML("html, body { margin: 0; }")),    Molstar(      pdbId = "1LOL",      useInterface = TRUE,      showControls = TRUE,      showAxis = TRUE    )  ),  server = function(input, output) {  })

Full page example

Using AlphaFold database and details

Running an example from the package(located atinst/examples/AlphaFoldDetails.R).

You can click on the button on the bottom of the example to get the minimal code to reproduce the same Shiny application(unstyled and without the footer).

shiny.molstar::runExample("AlphaFoldDetails")

AlphaFold with details

Appsilon

Appsilon is aPosit (formerly RStudio) Full Service Certified Partner.
Learn more atappsilon.com.

Get in touchopensource@appsilon.com

Explore theRhinoverse - a family of R packages built aroundRhino!

We are hiring!

About

R Shiny wrapper for Mol* (/'molstar/) - A visualization toolkit of large-scale molecular data

Resources

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Contributors5


[8]ページ先頭

©2009-2025 Movatter.jp