NYC Data Science Academy| Blog
Bootcamps
Lifetime Job Support Available Financing Available
Bootcamps
Data Science with Machine Learning Flagship πŸ† Data Analytics Bootcamp Artificial Intelligence Bootcamp New Release πŸŽ‰
Free Lesson
Intro to Data Science New Release πŸŽ‰
Find Inspiration
Find Alumni with Similar Background
Job Outlook
Occupational Outlook Graduate Outcomes Must See πŸ”₯
Alumni
Success Stories Testimonials Alumni Directory Alumni Exclusive Study Program
Courses
View Bundled Courses
Financing Available
Bootcamp Prep Popular πŸ”₯ Data Science Mastery Data Science Launchpad with Python View AI Courses Generative AI for Everyone New πŸŽ‰ Generative AI for Finance New πŸŽ‰ Generative AI for Marketing New πŸŽ‰
Bundle Up
Learn More and Save More
Combination of data science courses.
View Data Science Courses
Beginner
Introductory Python
Intermediate
Data Science Python: Data Analysis and Visualization Popular πŸ”₯ Data Science R: Data Analysis and Visualization
Advanced
Data Science Python: Machine Learning Popular πŸ”₯ Data Science R: Machine Learning Designing and Implementing Production MLOps New πŸŽ‰ Natural Language Processing for Production (NLP) New πŸŽ‰
Find Inspiration
Get Course Recommendation Must Try πŸ’Ž An Ultimate Guide to Become a Data Scientist
For Companies
For Companies
Corporate Offerings Hiring Partners Candidate Portfolio Hire Our Graduates
Students Work
Students Work
All Posts Capstone Data Visualization Machine Learning Python Projects R Projects
Tutorials
About
About
About Us Accreditation Contact Us Join Us FAQ Webinars Subscription An Ultimate Guide to
Become a Data Scientist
    Login
NYC Data Science Acedemy
Bootcamps
Courses
Students Work
About
Bootcamps
Bootcamps
Data Science with Machine Learning Flagship
Data Analytics Bootcamp
Artificial Intelligence Bootcamp New Release πŸŽ‰
Free Lessons
Intro to Data Science New Release πŸŽ‰
Find Inspiration
Find Alumni with Similar Background
Job Outlook
Occupational Outlook
Graduate Outcomes Must See πŸ”₯
Alumni
Success Stories
Testimonials
Alumni Directory
Alumni Exclusive Study Program
Courses
Bundles
financing available
View All Bundles
Bootcamp Prep
Data Science Mastery
Data Science Launchpad with Python NEW!
View AI Courses
Generative AI for Everyone
Generative AI for Finance
Generative AI for Marketing
View Data Science Courses
View All Professional Development Courses
Beginner
Introductory Python
Intermediate
Python: Data Analysis and Visualization
R: Data Analysis and Visualization
Advanced
Python: Machine Learning
R: Machine Learning
Designing and Implementing Production MLOps
Natural Language Processing for Production (NLP)
For Companies
Corporate Offerings
Hiring Partners
Candidate Portfolio
Hire Our Graduates
Students Work
All Posts
Capstone
Data Visualization
Machine Learning
Python Projects
R Projects
About
Accreditation
About Us
Contact Us
Join Us
FAQ
Webinars
Subscription
An Ultimate Guide to Become a Data Scientist
Tutorials
Data Analytics
  • Learn Pandas
  • Learn NumPy
  • Learn SciPy
  • Learn Matplotlib
Machine Learning
  • Boosting
  • Random Forest
  • Linear Regression
  • Decision Tree
  • PCA
Interview by Companies
  • JPMC
  • Google
  • Facebook
Artificial Intelligence
  • Learn Generative AI
  • Learn ChatGPT-3.5
  • Learn ChatGPT-4
  • Learn Google Bard
Coding
  • Learn Python
  • Learn SQL
  • Learn MySQL
  • Learn NoSQL
  • Learn PySpark
  • Learn PyTorch
Interview Questions
  • Python Hard
  • R Easy
  • R Hard
  • SQL Easy
  • SQL Hard
  • Python Easy
Data Science Blog > R Shiny > R Shiny: Downstream Processing Dashboard

R Shiny: Downstream Processing Dashboard

Bryce Ferraro
Posted on Feb 15, 2024

Purpose

The goal of this project was to build a dashboard for my current employer's Downstream Processing Team (DSP) to enable tracking of Key Performance Indicators (KPI) and querying of experimental data without writing SQL commands. Although developed specifically for my employer, this dashboard could be applied to other biotechnology or biopharmaceutical companies’ DSP teams, which often quantify similar metrics. This code can be easily tweaked to pull from a relational database rather than a CSV file, enabling real-time dashboarding.

Checklist for this tool:

  • Expedite analysis and visualization for individual experiments
  • Enable characterization of unit operations via aggregation of historical data
  • Increase data transparency across organization
  • Enable querying within organization’s relational databases without SQL

Project links:

  • Presentation
  • Github
  • App

Introduction

My current employer is a biotech company that leverages synthetic biology, which is a cross-functional field that uses genetically modified microorganisms (i.e. bacteria, yeast) to create bio-manufactured products for drugs, materials, food, and other consumer goods. At a high-level, synthetic biology companies’ tech-stacks are generally comprised of three teams:

  • Molecular Biology: responsible for modifying microorganisms’ genome to produce products that are foreign to that microbe
  • Upstream Processing (USP): responsible for scaling-up the fermentation of that modified organism, building biomass and generating high quantities of that bio-manufactured product of interest
  • Downstream Processing (DSP): responsible for the purification of that bio-manufactured product, removing impurities generated during the fermentation process

Together, these teams are capable of generating large quantities of pure bio-manufactured products, which can then be used as the raw ingredients in drugs, materials, food and other goods. This project’s dashboard was focused on the Downstream Processing team and its various data sources.

In order to create a purification process, DSP teams daisy chain multiple unit operations that will result in a pure, final product. There are many types of unit operations (e.g. centrifugation, distillation, precipitation, filtration, drying, etc.), but their implementation is dependent on their application, scalability, and cost. Furthermore, each unit operation has its own set of parameters that can impact its performance based on the application and metric involved. Due to the volume of experimentation and investment poured not only into choosing the appropriate unit operations, but also the specific parameters for each one, developed purification processes can be highly proprietary. To protect the intellectual property of the company, the data used in these proprietary processes had to be manipulated.

Data and Preprocessing

Within DSP, there are various types of data generated:

  • Offline data: measurements taken after an experiment (i.e. submitting a sample to an Analytics team or Contract Research Organization (CRO))
  • In-process data: measurements generated on various streams during the experiment (i.e. measuring a solution’s pH using a probe)
  • Instrument data: measurements captured during the running of laboratory instrumentation, often time-series data
  • Unit operation meta-data: descriptive data about how a unit operation was executed

This dashboard is built on each of these data types. Consequently, it was necessary to query data tables from multiple schemas in my organization’s two relational databases. Rather than pulling the entire data table from those relational databases, I designed the dashboard to insert the user’s data selection into an SQL command, reducing the size and cost of querying data. As a result, the dashboard communicates with our relational databases in real-time.

However, as mentioned earlier, the specific parameters and data generated from the DSP process is sensitive information. Therefore, the app deployed for my company had to be altered to be able to share during this project’s presentation and GitHub. The following changes were applied:

  • Data used:
    • Employer: entire datasets available
    • NYCDSA: trimmed/redacted/modified datasets in order to protect organization’s IP
  • Data source:
    • Employer: data was pulled directly from warehouses through user’s inputs + SQL commands to minimize size of query (lighter weight/cheaper)
    • NYCDSA: data was imported through CSV into global data frames

Despite the differences in data and how it was sourced, both app’s functionality and appearances are exactly the same.

App Buildout

The following steps were implemented to build both my employer and NYCSDA apps:

For my employer:

  1. I consulted with the DSP team to understand their needs.
  2. I created a connection between the organization's 2 x relational databases and query schemas of interest.
  3. I developed prototype visualizations and confirmed them with the DSP team.
  4. I built the app.
  5. I presented a draft of it with the DSP team.
  6. I put in necessary adjustments and final tweaks.
  7. I launched the app on the company’s server.

For the NYCDSA project:

  1. I had to trim/redact/modify datasets to protect the company's IP and download them as CSV files.
  2. I changed the app’s script to import downloaded CSV files rather than directly querying from the data warehouse.
  3. I modified the script to protect the company's intellectual property.
  4. I launched the app.

App Terminology

Figure 1 Depiction of a unit operation and its streams feed product waste

Step recovery (%)  = percent of product mass recovered post a unit operation.

  • Formula: Product Stream’s g of product βž— Feed Stream’s g of product

Mass balance (%) = percent of product accounted for post an unit operation.

  • Formula: (Product Stream’s g of product + Waste Stream’s g of product) βž— Feed Stream’s g of product

pH = measure of a solution’s acidity/basicity.

Conductivity (mS/cm)  = measure of a solution’s ability to conduct an electric charge.

OD600 = OD stands for optical density and 600 is the wavelength (nm) of light for the measurement, a measure of the turbidity of a solution.

Total solids (g/kg) = mass of solids in x kg of a solution.

NWP (LMH): stands for Normalized Water Permeability and its units, LMH, stands for liters of permeated water per square meter of membrane per hour, which is measured under standard temperature and pressure to ensure membrane integrity prior to running.

Flux (LMH) = rate at which a solution passes through a membrane. LMH stands for liters of permeated solution per square meter of membrane per hour.

TMP (psi) = stands for transmembrane pressure, which is calculated by taking the difference of the average feed pressure and permeate pressure. This is the driving force for a solution’s flux through a membrane.

App Description

The app consists of multiple tabs shown on the left-hand panel, each of which contains different data types and/or visualizations. Throughout the app, each plot has a β€œDownload Plot” button below it, so a user can easily transfer the visualization to a slide deck or external document. As there is some data missing from this dataset, plots will sometimes show no or missing results depending on the metric and selected rows.

β€œDSP KPI” Tab

Figure 2 DSP KPI tabs initial configuration

Figure 3 DSP KPI tab with selected rows

Figure 4 Example of DSP KPI tabs visualizations

The landing page and first tab, β€œDSP KPI”, enables the user to select specific unit operation IDs to visualize their step recoveries and mass balances. After hitting the β€œLoad data” button and selecting unit operation IDs, one can scroll to the bottom of the page, select a tab (ex. β€œMass Balance - Unit Op ID”), and visualize the following plots:

  • Barplot: Unit Operation ID vs. Protein Step Recovery (%)
  • Barplot: Unit Operation ID vs. Protein Mass Balance (%)
  • Barplot: Unit Operation ID vs. Protein Step Recovery/Mass Balance (%)
  • Barplot: Unit Operation Type vs. Protein Step Recovery (%)
  • Barplot: Unit Operation Type vs. Protein Mass Balance (%)

Within tabs, β€œStep Recovery - Unit Op Type” and β€œMass Balance - Unit Op Type”, not only will the user find their respective plots but also, a summary statistics table that includes that metric’s mean, standard deviation, %CV, minimum value, maximum value, upper outlier level, and lower outlier level. This information is vital to characterizing a unit’s operation and identifying potential steps to further optimize.

β€œIn-Process Data - Expt View” Tab

Figure 5 In Process Data Expt View tab

The β€œIn-Process Data - Expt View” tab enables the user to select a specific condition ID and visualize how the measured in-process data changed throughout the purification. The in-process measurements included in this analysis are pH, conductivity, OD600, and total solids. It’s important to note that the user cannot multi-select in this tab. As not all conditions have the same unit operations, an x-axis for one condition might not work for another.

β€œIn-Process Data - Stream View” Tab

Figure 6 In Process Data Stream View tabs data selection

Figure 7 Example of In Process Data Stream View tabs visualizations

The β€œIn-Process Data - Stream View” tab uses the same data as the β€œIn-Process Data - Expt View” tab, though its visualizations are different. Rather than selecting for a unique condition ID, this tab enables the user to select specific stream IDs and characterize a stream type’s in-process measurement. After selecting stream IDs, one can scroll to the bottom of the page, select a tab like β€œConductivity” and visualize the following plots:

  • Barplot: Stream Type vs. pH
  • Barplot: Stream Type vs. Conductivity
  • Barplot: Stream Type vs. OD600
  • Barplot: Stream Type vs. Total Solids

Within each tab, not only will the user find their respective plots but also a summary statistics table that includes that metric’s mean, standard deviation, %CV, minimum value, maximum value, upper outlier level, and lower outlier level.

β€œMembrane Data” Tab

Figure 8 Membrane Data tabs data selection

Figure 9 Example of Membrane Data tabs visualizations

The β€œMembrane Data ” tab enables the user to select specific membrane IDs to visualize their normalized water permeability (NWP). NWP is a measure of the liters of water that permeates through a membrane’s surface area over time, a metric used to characterize the integrity of a membrane. If the NWP is too high or low, this could be a sign that the membrane has been damaged and should not be used for the next experiment.

After hitting the β€œLoad data” button and selecting membrane IDs, one can scroll to the bottom of the page, select a tab (ex. β€œNWP - Membrane ID”), and visualize the following plots:

  • Boxplot: NWP vs. Membrane Part Number
  • Boxplot: NWP vs. Membrane Serial Number
  • Boxplot: NWP vs. Membrane ID/Experiment
  • Boxplot: NWP vs. Membrane Surface Area
  • Barplot: Number of Uses vs. Membrane Part Number

Within most tabs, not only will the user find their respective plots but also a summary statistics table that includes that metric’s mean, standard deviation, %CV, minimum value, maximum value, upper outlier level, and lower outlier level.

β€œUnit Op Time-Series” Tab

Figure 10 Unit Op Time Series tab

Theβ€œUnit Op Time-Series” tab enables the user to select and visualize time series data captured during filtration unit operations. After the user selects a run, plots will automatically populate, showing the relationship between flux and TMP vs. time, concentration factor, and diavolumes. Users can even select multiple runs at once, overlaying the results to see how different batches’ perform.

β€œProcess Flow Diagrams” Tab

Figure 11 Process Flow Diagrams tab

The β€œProcess Flow Diagrams” tab enables the user to select a specific experiment ID and create a process flow diagram that depicts the unit operations within that experiment. This is extremely helpful for building presentations and allowing data analysts to recall the executed steps within an experiment.

β€œData Download” Tab:

Figure 12 Data Download tab

The final tab, β€œData Download,” enables the user to download any of the datasets used in the app without having to know SQL. The analyst can select a specific experiment, membrane, or run ID for a targeted query. It’s even possible to pull all the data if needed.

Conclusions

The original goals of this DSP Dashboard were the following:

  • Expedite analysis and visualization for individual experiments
  • Enable characterization of unit operations via aggregation of historical data
  • Increase data transparency across the organization
  • Enable querying within organization’s relational databases without SQL

Overall, this tool has accomplished each of these objectives. It has been deployed on my company’s server and is currently being beta-tested by the DSP team. I’ve found it extremely rewarding to apply the skills gained in this bootcamp to a problem within my current employer.

Next Steps

  • Continue to consult DSP team during beta-testing
  • Expand DSP dashboard as their technology/metrics develop
  • Build dashboards for the remaining teams

References

Feature image

About Author

Bryce Ferraro

My work experience in biotechnology is diverse, ranging from R&D, process development, and scale-up, to overseeing data management within fermentation, protein purification, and high throughput screening. Having worked in two different early-stage startups, my roles and priorities evolved...
View all posts by Bryce Ferraro >

Related Articles

Capstone
Catching Fraud in the Healthcare System
Data Analysis
Car Sales Report R Shiny App
Data Analysis
Injury Analysis of Soccer Players with Python
Capstone
Acquisition Due Dilligence Automation for Smaller Firms
R Shiny
Forecasting NY State Tax Credits: R Shiny App for Businesses

Leave a Comment

No comments found.

View Posts by Categories

All Posts 2399 posts
AI 7 posts
AI Agent 2 posts
AI-based hotel recommendation 1 posts
AIForGood 1 posts
Alumni 60 posts
Animated Maps 1 posts
APIs 41 posts
Artificial Intelligence 2 posts
Artificial Intelligence 2 posts
AWS 13 posts
Banking 1 posts
Big Data 50 posts
Branch Analysis 1 posts
Capstone 206 posts
Career Education 7 posts
CLIP 1 posts
Community 72 posts
Congestion Zone 1 posts
Content Recommendation 1 posts
Cosine SImilarity 1 posts
Data Analysis 5 posts
Data Engineering 1 posts
Data Engineering 3 posts
Data Science 7 posts
Data Science News and Sharing 73 posts
Data Visualization 324 posts
Events 5 posts
Featured 37 posts
Function calling 1 posts
FutureTech 1 posts
Generative AI 5 posts
Hadoop 13 posts
Image Classification 1 posts
Innovation 2 posts
Kmeans Cluster 1 posts
LLM 6 posts
Machine Learning 364 posts
Marketing 1 posts
Meetup 144 posts
MLOPs 1 posts
Model Deployment 1 posts
Nagamas69 1 posts
NLP 1 posts
OpenAI 5 posts
OpenNYC Data 1 posts
pySpark 1 posts
Python 16 posts
Python 458 posts
Python data analysis 4 posts
Python Shiny 2 posts
R 404 posts
R Data Analysis 1 posts
R Shiny 560 posts
R Visualization 445 posts
RAG 1 posts
RoBERTa 1 posts
semantic rearch 2 posts
Spark 17 posts
SQL 1 posts
Streamlit 2 posts
Student Works 1687 posts
Tableau 12 posts
TensorFlow 3 posts
Traffic 1 posts
User Preference Modeling 1 posts
Vector database 2 posts
Web Scraping 483 posts
wukong138 1 posts

Our Recent Popular Posts

AI 4 AI: ChatGPT Unifies My Blog Posts
by Vinod Chugani
Dec 18, 2022
Meet Your Machine Learning Mentors: Kyle Gallatin
by Vivian Zhang
Nov 4, 2020
NICU Admissions and CCHD: Predicting Based on Data Analysis
by Paul Lee, Aron Berke, Bee Kim, Bettina Meier and Ira Villar
Jan 7, 2020

View Posts by Tags

#python #trainwithnycdsa 2019 2020 Revenue 3-points agriculture air quality airbnb airline alcohol Alex Baransky algorithm alumni Alumni Interview Alumni Reviews Alumni Spotlight alumni story Alumnus ames dataset ames housing dataset apartment rent API Application artist aws bank loans beautiful soup Best Bootcamp Best Data Science 2019 Best Data Science Bootcamp Best Data Science Bootcamp 2020 Best Ranked Big Data Book Launch Book-Signing bootcamp Bootcamp Alumni Bootcamp Prep boston safety Bundles cake recipe California Cancer Research capstone car price Career Career Day ChatGPT citibike classic cars classpass clustering Coding Course Demo Course Report covid 19 credit credit card crime frequency crops D3.js data data analysis Data Analyst data analytics data for tripadvisor reviews data science Data Science Academy Data Science Bootcamp Data science jobs Data Science Reviews Data Scientist Data Scientist Jobs data visualization database Deep Learning Demo Day Discount disney dplyr drug data e-commerce economy employee employee burnout employer networking environment feature engineering Finance Financial Data Science fitness studio Flask flight delay football gbm Get Hired ggplot2 googleVis H20 Hadoop hallmark holiday movie happiness healthcare frauds higgs boson Hiring hiring partner events Hiring Partners hotels housing housing data housing predictions housing price hy-vee Income industry Industry Experts Injuries Instructor Blog Instructor Interview insurance italki Job Job Placement Jobs Jon Krohn JP Morgan Chase Kaggle Kickstarter las vegas airport lasso regression Lead Data Scienctist Lead Data Scientist leaflet league linear regression Logistic Regression machine learning Maps market matplotlib Medical Research Meet the team meetup methal health miami beach movie music Napoli NBA netflix Networking neural network Neural networks New Courses NHL nlp NYC NYC Data Science nyc data science academy NYC Open Data nyc property NYCDSA NYCDSA Alumni Online Online Bootcamp Online Training Open Data painter pandas Part-time performance phoenix pollutants Portfolio Development precision measurement prediction Prework Programming public safety PwC python Python Data Analysis python machine learning python scrapy python web scraping python webscraping Python Workshop R R Data Analysis R language R Programming R Shiny r studio R Visualization R Workshop R-bloggers random forest Ranking recommendation recommendation system regression Remote remote data science bootcamp Scrapy scrapy visualization seaborn seafood type Selenium sentiment analysis sentiment classification Shiny Shiny Dashboard Spark Special Special Summer Sports statistics streaming Student Interview Student Showcase SVM Switchup Tableau teachers team team performance TensorFlow Testimonial tf-idf Top Data Science Bootcamp Top manufacturing companies Transfers tweets twitter videos visualization wallstreet wallstreetbets web scraping Weekend Course What to expect whiskey whiskeyadvocate wildfire word cloud word2vec XGBoost yelp youtube trending ZORI

NYC Data Science Academy

NYC Data Science Academy teaches data science, trains companies and their employees to better profit from data, excels at big data project consulting, and connects trained Data Scientists to our industry.

NYC Data Science Academy is licensed by New York State Education Department.

Get detailed curriculum information about our
amazing bootcamp!

Please enter a valid email address
Sign up completed. Thank you!

Offerings

  • HOME
  • DATA SCIENCE BOOTCAMP
  • ONLINE DATA SCIENCE BOOTCAMP
  • Professional Development Courses
  • CORPORATE OFFERINGS
  • HIRING PARTNERS
  • About

  • About Us
  • Alumni
  • Blog
  • FAQ
  • Contact Us
  • Refund Policy
  • Join Us
  • SOCIAL MEDIA

    Β© 2025 NYC Data Science Academy
    All rights reserved. | Site Map
    Privacy Policy | Terms of Service
    Bootcamp Application