Introducing Dash Bio for R

plotly
plotly
Sep 23, 2019 · 4 min read

Dash and the R programming language offer innovative avenues for bioinformaticians, pharmaceutical developers, and researchers to synergistically analyze, visualize, and present data within an interactive web application.

Plotly’s Dash Bio package makes it easier than ever to build bioinformatics and drug discovery applications with Dash.

The NCBI Database Explorer application in our Dash Gallery demonstrates how multiple Dash Bio components can be combined to provide an intuitive, easily implemented interface for exploring genomic data. This Dash app is built entirely in Dash for R, and enables users to quickly filter and analyze FASTA files and DNA sequences following queries to NCBI’s Nucleotide database, all in a single browser window. Integrating the Dash Bio Sequence Viewer, Alignment Viewer and multiple graph components, the Database Explorer provides a rich web application experience entirely in R — no JavaScript required.

Dash Bio brings the power of these biological data visualization components built with JavaScript to R. It’s never been easier for genome scientists and bioinformaticians to build interactive analysis tools for genomic data in R.

In addition to the Alignment and Sequence Viewer components mentioned above, a range of other Dash Bio components are available to complement a variety of analysis objectives. Below are a few of my personal favorite figures which can be produced using the package:

  • Circos plots
  • Ideogram plots
  • Manhattan plots
  • Needle plot
  • Volcano plots
  • Two-dimensional molecular visualizations
  • Three-dimensional molecular visualizations (rendered with 3Dmol.js or Speck)
  • Genomic alteration visualizations using OncoPrint

So, what do these components look like? Let’s look at a few in detail.

Needle Plots
The Needle Plot component makes it easy to produce responsive, dynamic visualizations of large datasets. The lines and markers in the figure are analogous to bars in a histogram:

Manhattan and Volcano Plots
Users of Sahir Bhatnagar’s excellent manhattanly package in R will be pleased to see full support for embedding Manhattan and Volcano plots in Dash for R apps.

Ideograms
The Dash Bio package also provides support for the Broad Institute’s Ideogram library, making it straightforward to display chromosomes and specific gene locations as bands, in multiple views.

The component can display homology between chromosomes, a brush overview, and also offers gene annotations to highlight points of interest. NCBI taxonomy IDs may also be used to refer to chromosomes from different species.

OncoPrint
The OncoPrint component simplifies visualizations of genomic events including mutations, amplifications, and regulation, while making it easy to subset data and color code features of interest.

Want to see more?
This overview is just a glimpse of what’s possible with Dash Bio and R; for a closer look, please check out our comprehensive, interactive documentation. We regularly add new functionality via additional components, so check back often or drop us a comment and let us know what else you’d like to see.

Installing Dash Bio from within R is easy; if you don’t already have Dash for R, install that first using install_github:

library(devtools)

install_github(“plotly/dashR”, upgrade = TRUE)

Once Dash for R is installed, downloading the dashBio R package is straightforward:

install_github(“plotly/dash-bio”, upgrade = TRUE)

One more thing…

If you like where we’re going with Dash for R, head over to these freshly minted GitHub projects and give them a star:

🌟 https://github.com/plotly/dashR

🌟 https://github.com/plotly/dash-bio

💊 If you’re a lab, chemical company, or drug development company, and you would like a customized Dash app or component built for you, please get in touch — we love a challenge. We also offer workshops in case you’d like to take a deeper dive into Dash for R.

Plotly

plotly

Written by

plotly

The easiest way to chart and share data online.

Plotly

Plotly

Plotly is a data visualization company that makes it easy to build, test, and deploy beautiful interactive web apps, charts and graphs—in any programming language.

More From Medium

Also tagged Data Visualization

Also tagged Data Visualization

The Unpredictable Curve of COVID-19

61

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade