Tutorial Link: https://ccb.connect.hms.harvard.edu/Git-Backed-Content-Tutorial/
This tutorial guides you through deploying a Shiny app on Posit Connect using the powerful pins package to manage your data efficiently. It demonstrates single-cell RNA sequencing data analysis with the scRNAseq package, encompassing data fetching, quality control, normalization, and dimensionality reduction with results showcased via a dynamic Shiny interface.
This tutorial provides step-by-step instructions for:
- Setting up your local environment and preparing data for deployment.
- Using the pins package to upload datasets to Posit Connect securely.
- Developing a Shiny app that dynamically reads data from Posit Connect.
- Configuring and deploying the Shiny app on Posit Connect.
The tutorial's complete codebase is housed in this GitHub repository. Below are the main components and their respective branches:
-
master branch: analytics code responsible for generating and saving data using pins.
-
Quarto branch: code to generate the tutorial Quarto document, also deployed on the Posit Connect server alongside the Shiny app.
-
Shiny branch: Codebase for the Shiny app visualizing single-cell RNA-seq data.
From this repository's projects, several outputs are realized:
-
Quarto Document: Detailed guide and documentation displayed on Posit Connect.
-
Shiny App: Interactive platform for visualizing single-cell RNA-seq data in reduced dimensions.
- Prerequisites:
- Ensure you have R and RStudio installed.
- Install required packages:
shiny
,pins
,rsconnect
,scRNAseq
,scran
,scuttle
,scater
.
- Clone the Repository:
git clone https://github.com/ccb-hms/Git-Backed-Content.git
cd your-repository
For extended information and guidance, explore the Posit Connect documentation under the Git-Backed Content section.