How Open Source (R and Shiny) Is Transforming Processes in the Pharmaceutical Industry

Estimated time:

At the 2023 R/Basel event, we noticed a number of speakers and participants who were keen to share or gather knowledge about the use of R and Shiny technologies in many diverse processes of the pharmaceutical industry. From ShinyConf to event's like useR!'s R/Basel, professionals in the pharmaceutical and biotech industries are expressing their interest and use for R open source. 

Our very own <a href=""><span style="font-weight: 400;" data-rich-links="{&quot;per_n&quot;:&quot;André Veríssimo&quot;,&quot;per_e&quot;:&quot;;,&quot;type&quot;:&quot;person&quot;}">André Veríssimo</span></a> gave an excellent presentation on how open-source technologies, particularly those that use R and Shiny, are transforming the pharmaceutical Industry. 

You can watch his presentation below to get the latest insights on how open-source R and Shiny are transforming this industry.

<iframe title="YouTube video player" src="" width="560" height="315" frameborder="0" allowfullscreen="allowfullscreen"></iframe>

Jump to sections:
<ul><li><a href="#opensourcepharma">Appsilon's Open Source for the Pharmaceutical Industry</a></li><li><a href="#compliance">R Open Source for Regulatory Compliance</a></li><li><a href="#pharmarnd">R Shiny for Pharmaceutical Research and Development</a></li><li><a href="#publichealthdashboard">Infectious Diseases and Public Health Shiny Dashboards</a></li></ul>

<hr />

<h2>Open Source is Dominating Software</h2>
Open source is everywhere these days, and when examining commercial code bases, it's evident that at least three-quarters of them incorporate open-source elements.
<blockquote>“The future is not only open source, but there is no future without it.” - <span style="font-weight: 400;" data-rich-links="{&quot;per_n&quot;:&quot;André Veríssimo&quot;,&quot;per_e&quot;:&quot;;,&quot;type&quot;:&quot;person&quot;}">André Veríssimo</span></blockquote>
Appsilon's origins lie in the realm of open source. In our early days, we developed Shiny dashboards and <a href="" target="_blank" rel="noopener">the tools necessary to support them</a>. The community's enthusiastic adoption of our work provided significant inspiration and momentum, prompting us to increase our contributions.

We maintain a substantial <a href="" target="_blank" rel="noopener">collection of R packages dedicated to enhancing the Shiny user and developer experience</a>. Each of our packages come with documentation to provide an overview of their functionality and how to get started (e.g. <a href="" target="_blank" rel="noopener">Rhino framework documentation</a>) and are continually seeking additional contributions or unique tutorials (e.g. <a href="" target="_blank" rel="noopener">automating End-to-End Cypress tests for Shiny</a>).
<h2 id="opensourcepharma">R and Shiny Open Source for the Pharmaceutical Industry (by Appsilon)</h2>
The pharmaceutical industry is making substantial contributions to open source materials. There is significant potential for the advancement of these R packages, which can greatly influence the way industry-specific processes are conducted.

While this software is gaining widespread adoption, there remains substantial work ahead to fully extend and standardize open-source solutions.

Let’s explore some interesting open-source applications and R packages that we have developed here at Appsilon for the pharmaceutical industry.
<h2 id="compliance">R Open Source for Regulatory Compliance</h2>
<h3>R Package for Data Validation and Automation</h3>
The <a href="" target="_blank" rel="noopener">data.validator</a> is a package for scalable and reproducible data validation. It provides:
<ul><li style="font-weight: 400;" aria-level="1">Functions for validating datasets in <code>%&gt;%</code> pipelines: <code>validate_if</code>, <code>validate_cols</code> and <code>validate_rows</code></li><li style="font-weight: 400;" aria-level="1">Predicate functions from the assertr package, like <code>in_set</code>, <code>within_bounds</code>, etc.</li><li style="font-weight: 400;" aria-level="1">Functions for creating user-friendly reports that you can send to email, store in the logs folder, or generate automatically with RStudio Connect.</li></ul>
<img class="aligncenter size-full wp-image-20767" src="" alt="data validator semantic_report_example" width="493" height="300" />
<h3>FDA Pilot App in Rhino</h3>
This application is intended for a pilot submission to the FDA composing of a Shiny application, as part of the <a href="" target="_blank" rel="noopener">R Submissions Working Group</a> Pilot 2. The data sets and results displayed in the application originate from the <a href="" target="_blank" rel="noopener">Pilot 1 project</a>.

Interact with the application through our <a href="" target="_blank" rel="noopener">demonstration website</a>.

We built this application using our <a href="" target="_blank" rel="noopener">Rhino framework</a> to incorporate enterprise features.

<video width="100%" height="auto" src="" loop="true" autoplay="true" controls="true"></video>

<h2 id="pharmarnd">R Shiny for Pharmaceutical Research and Development</h2>
<h3>DepMapV2 - Interactive Data Exploration Shiny App</h3>
We have developed this application to facilitate the exploration of the relationship between gene expressions and copy number variations (CNVs). 

Interact with the application through our <a href="">demonstration website</a>.

<img class="aligncenter size-full wp-image-20771" src="" alt="DepMapV2 Shiny app for interactive genomic data exploration" width="800" height="449" />

CNVs are DNA segments that <a href="" target="_blank" rel="noopener">can lead</a> to activation of oncogenes and inactivation of tumor suppressor genes in cancers. CNVs can effectively affect gene expression and are related to the susceptibility of diseases. Several studies have shown that a duplication or deletion of CNVs affects <a href="" target="_blank" rel="noopener">the expression of genes and cancer-related biologic processes</a>.

This app uses the <i>DepMap Public 23Q2 dataset</i> from the <a href="" target="_blank" rel="noopener">DepMap</a> project. This release contains data from CRISPR knockout screens from project Achilles, as well as genomic characterization data from the CCLE project.
<h3>Drug Interactions Shiny App and Database Connections</h3>
With this application you can find interactions between two existing drugs/active compounds in the US National Library of Medicine (NLM) database.

Interact with the application through our <a href="" target="_blank" rel="noopener">demonstration website</a>.

<img class="aligncenter size-full wp-image-20773" src="" alt="Drug Drug Interactions Shiny open source application " width="800" height="449" />
<h3>Large-scale Molecular Data Visualization with shiny.molstar</h3>
We created an R Shiny wrapper based on <a href="" target="_blank" rel="noopener">shiny.react</a> and <a href="" target="_blank" rel="noopener">molstar-react</a> <i>(node.js library)</i> that gives all the powerful tools of the 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.
<ul><li style="font-weight: 400;" aria-level="1"><b>Molstar</b> creates a Molstar visualization of a protein using an URL to a valid file type supported by Molstar or a "Protein Data Bank" id <i>(pdbId)</i>. See more below for available databases to find a valid pdbId.</li><li style="font-weight: 400;" aria-level="1"><b>AlphaFoldMolstar</b> similar to the Molstar component, but uses the UniProt id in the AlphaFold database to display the protein.</li><li style="font-weight: 400;" aria-level="1"><b>AlphaFoldDetails</b> creates a component that retrieves details of an AlphaFold protein id <i>(title, download links and a Predict Aligned Error image)</i></li></ul>
Learn more about this R package on our recent blog post: <a href="" target="_blank" rel="noopener">Introducing shiny.molstar for Large Molecular Structures Visualization in R</a>.

<img class="aligncenter size-full wp-image-20775" src="" alt="shiny.molstar r package for interactive molecular data visualization" width="655" height="366" />
<h3>Interactive Genomics Data Visualizations with shiny.gosling</h3>
This package is an R Shiny implementation of the <a href="" target="_blank" rel="noopener">Gosling.js</a> library. Gosling js is a highly <i>expressive</i> library based on a <i>Grammar for scalable and interactive Genomics Data visualization</i>. This library is built upon the <a href="" target="_blank" rel="noopener">React wrapper of the Gosling.js</a>. Which is powered by <a href="" target="_blank" rel="noopener">shiny.react</a>. Thus most of the Charts can be directly built using this package.

Learn more about this R package on our recent blog post: <a href="" target="_blank" rel="noopener">Shiny.gosling Examples and How to Run Them: Genomics Visualizations in R Shiny</a>.

<img class="aligncenter size-full wp-image-20777" src="" alt="singleTrack gosling genomics visualization in r shiny" width="702" height="400" />
<h2 id="publichealthdashboard">Infectious Diseases and Public Health Shiny Dashboards</h2>
<h3>Johns Hopkins Lyme Disease Dashboard</h3>
This is an award-winning interactive data explorer that effectively and carefully showcases Lyme and other tick-borne diseases in the United States.

<img class="aligncenter size-full wp-image-20758" src="" alt="Johns Hopkins Lyme Disease Dashboard Infectious Diseases and Public Health Shiny Dashboard" width="891" height="600" />

This dashboard was developed due to a critical need for tools that communicate the magnitude of the incidence of Lyme and other tick borne diseases in the United States. 

The Dashboard was an initiative led by <a href="" target="_blank" rel="noopener">the Johns Hopkins Spatial Science for Public Health Center, in collaboration with the Johns Hopkins Medical Lyme Disease Research Center and the Johns Hopkins Lyme and Tick Borne Diseases Research and Education Institute</a>.
<h3>Respiratory Diseases (R Shiny)</h3>
This is an app for visualizing global correlations between human mortality rates and a common cause. Respiratory Diseases was created as part of our Data4Good (D4G) initiative. 

<img class="aligncenter size-full wp-image-20764" src="" alt="Respiratory Diseases (R Shiny) Infectious Diseases and Public Health Shiny Dashboard" width="1247" height="600" />

Air pollution is an increasing problem for the world. With this application, we explore the relationship between the PM2.5 particulate metric and the Death Rate (defined as deaths per 100,000) from respiratory illnesses across the world over the years.

The data used in the visualizations comes from the <a href="">World Bank</a> and Organization for Economic Cooperation and Development (<a href="">OECD</a>). The death-rate data was collected from the <a href="">Our World in Data</a> database.

Learn more about Air Quality and Respiratory Diseases visualizations and the challenges with mixing data sources at: <a href="">Air Quality VS Respiratory Diseases Dashboard: Shiny as a Powerful Tool for Data-Driven Insights</a>.
<h3>Respiratory Diseases (Python Shiny)</h3>
This is one of the first Shiny for Python apps ever built. It uses the Respiratory Disease App (R Shiny) as a guide. The datasets used for the visualizations come from the same sources as for the previous app. 

You can learn more about this application and its applications from an R Shiny developers’ perspective on this blog post: <a href="">PyShiny Demo: An R Shiny Developer’s thoughts on Shiny for Python</a>.

<img class="aligncenter size-full wp-image-20762" src="" alt="Respiratory Diseases (Python for Shiny) Infectious Diseases and Public Health Shiny Dashboard" width="1120" height="600" />
<h3>Interactive Mapping for COVID-19 Public Policy</h3>
During the COVID-19 pandemic the tools to explore, visualize and analyze the data were lacking. Organizations and governments need a fast paced way to understand the development process of the disease.

During the pandemic event, we were approached by the IIASA (The International Institute for Applied Systems Analysis) to create an interactive map to visualize COVID-19 data. The map that we developed used Python and Svelte. The application is available to explore <a href="" target="_blank" rel="noopener">here</a>.

<img class="aligncenter size-full wp-image-20760" src="" alt="R Shiny Interactive Mapping for COVID-19 Public Policy" width="1120" height="600" />

The application allows users to browse through a list of 32 indicators and visualize them on an interactive map. 

To learn more about this collaboration and the application that we developed, visit our blog post: IIASA Collaboration: <a href="" target="_blank" rel="noopener">An Interactive Map for COVID-19 Public Policy Decisions</a>.
<h2>Appsilon Case Studies for Life Science Projects</h2>
Our collaborations with global pharmaceutical companies have yielded impressive outcomes. Here, we share some standout success stories, offering a firsthand look at how our joint efforts have transformed these companies and driven impressive results.
<ul><li><a href="" target="_blank" rel="noopener">Unlocking Pharma Insights: Shiny Solutions for Data Optimization</a></li><li><a href="" target="_blank" rel="noopener">Impacting Biotech Supply Chains: Empowering Planners with Shiny</a></li></ul>
<h2>Collaborating to Create Open Source Innovations for Life Sciences</h2>
Our mission is clear: we want to foster innovation that makes a difference. We use the most advanced machine learning algorithms, visualization techniques, and modern technologies to accelerate the innovation processes of pharmaceutical industries at every stage of drug discovery and development. We marry domain expertise with technical expertise, to create projects that focus on adoption and impact. We partner with teams to innovate and advance the life sciences.

Our valued partnerships with industry-leading pharmaceutical firms are a testament to our commitment to success. Reach out, and together, we can drive impactful change.

Contact us!
Damian's Avatar
Iwona Matyjaszek
Head of Sales
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Have questions or insights?
Engage with experts, share ideas and take your data journey to the next level!
Join Slack
Explore Possibilities

Take Your Business Further with Custom Data Solutions

Unlock the full potential of your enterprise with our data services, tailored to the unique needs of Fortune 500 companies. Elevate your strategy -connect with us today!

Talk to our Experts
open source
life sciences