☰ Menu

      Introduction to Single Cell RNA-Seq Workshop

Home
Introduction and Lectures
Intro to the Workshop and Core
Schedule
What is Bioinformatics/Genomics?
Experimental Design and Cost Estimation
Single Cell Sample Preparation - Dr. Diana Burkart-Waco
Biology at True Resolution - Introduction to Single Cell and Visium Spatial Solutions
Visium Spatial Protocols - Tissue Preparation Guide
Support
Using Slack in this workshop
Using Zoom in this workshop
Cheat Sheets
Software and Links
Scripts
Prerequisites
CLI - Logging in and Transferring Files
CLI - Intro to Command-Line
CLI - Advanced Command-Line (extra)
CLI - Running jobs on the Cluster and using modules
R - Getting Started
R - Intro to R
R - Prepare Data in R (extra)
R - Data in R (extra)
More Materials (extra)
Data Reduction
Project setup
Generating Expression Matrix
scRNAseq Analysis
Prepare scRNAseq Analysis
scRNAseq Analysis - PART1
scRNAseq Analysis - PART2
scRNAseq Analysis - PART3
scRNAseq Analysis - PART4
scRNAseq Analysis - PART5
scRNAseq Analysis - PART6
Shiny App (extra)
Shiny App on AWS (extra)
ETC
Closing thoughts
Workshop Photos
Github page
Biocore website

scRNA shiny app

Visit the github here

  1. Installation
  2. Notes about practical usage of the app
  3. Tutorial
  4. A few extra notes and link to AWS resources

Installation

  1. Enter the following into your Rconsole in Rstudio after finishing the Mapping_Comparison.Rmd (it is also located at the bottom of the file itself).

    if (!any(rownames(installed.packages()) == "shiny")){
       install.packages("shiny")
     }
     library(shiny)
        
     if (!any(rownames(installed.packages()) == "markdown")){
       if (!requireNamespace("BiocManager", quietly = TRUE))
           install.packages("BiocManager")
       BiocManager::install("markdown")
     }
     library(markdown)
        
     if (!any(rownames(installed.packages()) == "tidyr")){
       if (!requireNamespace("BiocManager", quietly = TRUE))
           install.packages("BiocManager")
       BiocManager::install("tidyr")
     }
     library(tidyr)
        
     download.file("https://github.com/ucdavis-bioinformatics/scRNA_shiny/archive/master.zip", "scRNA_shiny.zip")
     #zipf <- file.choose(new=FALSE)
     zipf <- "scRNA_shiny.zip"
     outdir <- "scRNA_shiny"
     unzip(zipf, exdir=outdir)
        
     saveRDS(experiment.aggregate, file = "shiny.rds") 
    
    
  2. You will now see a new directory appear in the workshop directory called scRNA_shiny:

  3. Navigate until you see the file app.R. This is the file containing the app we will use for exploring the data. Open this file:

  4. Now Click run app at the top of RStudio:

  5. The app should now pop up in a new window:


App Practical Usage

This shiny app was created with the intention of working with biologists to extract meaning from the data by exploration. Usage of the app is not for creating finalized “publish ready” images but rather a means for enabling an analysis of potential clustering based on the marker genes of interest (the biological question). The app enables easier interaction with the data in order to explore what next steps can be taken towards producing “publish quality” images and which further analyses are relevant to the biological question.

Manual intervention (such as clustering) with the Seurat objects is often needed following this exploration. The hope is for the app to enables some of these capabilities in the near future. Lets do some exercises to see how might use the app to properly infer what custom clustering may need to be done.


Shiny App Tutorial

Single Marker View:

Explore a single feature (gene, metadata, etc.) and its relation to variations of clustering or on a per sample basis.

Options:

Graphs:


Double Marker View:

Explore two features (gene, metadata, etc.) and its relation to variations of clustering or on a per sample basis.

Options: All of the options here are the same as the Single Marker View with the following field as an option.

Graphs:


Marker Set (Grid)

This plot helps to explore sets of genes and their relation to the identity.

Options:

Graph:


Cluster Tree Exploration

This plot helps to identify closest related clusters so when moving into the final analysis you have a better idea of what the real cell groups are in your samples.

Having trouble understanding what a tSNE vs UMAP plot represents?


A few extra things: