R Shiny website for viewing single cell RNA-Seq data analysed using Seurat. (version 3) Seurat is also hosted on GitHub. You can view the repository at
SeuratViewer reads in the expression data, sample data, feature annotation, dimensionality reduction/ clustering, and marker gene information as an RData object and enables users to view and interact with their single cell RNAseq data
- R (version > 3.5)
- RStudio Server
- Shiny Server (if you need to host it online)
If you need help installing the above or getting started, refer to this
For Linux, run the following commands in terminal
sudo apt-get install libcurl4-openssl-dev lib-ssl dev sudo apt-get install xorg libx11-dev mesa-common-dev libglu1-mesa-dev sudo apt-get install libxml2-dev sudo apt-get install libftgl2 freetype2-demos libfreetype6-dev sudo apt-get install libhdf5-dev sudo apt-get install r-cran-rcppeigen
Run the following commands in R to install all required packages
install.packages(c("devtools","shiny","shinydashboard","shinyjs","shinyBS","shinyBS","RColorBrewer","reshape2","ggplot2", "dplyr","tidyr","openssl","httr","plotly","htmlwidgets","DT","shinyRGL","rgl","rglwidget","Seurat","cowplot", "data.table","NMF","tibble","network","igraph","visNetwork")) #Install packages from bioconductor install.packages("BiocManager") BiocManager::install(c("biomaRt","Biobase","slingshot")) ##This package contains helper functions require(devtools) install_github("Morriseylab/scExtras") install_github("Morriseylab/ligrec")
For linux users, other R dependencies include
Input Data format
Creating your dataset
Analyse your single cell data using the Seurat package. Run the following functions to find the markers genes in all clusters and find the ligand receptor pairs. Please note that the object should always be saved as scrna.
org = "mouse" #use mouse or human based on your dataset scrna@misc[["findallmarkers"]] <- FindAllMarkers(object = scrna, only.pos = TRUE, min.pct = 0.25, logfc.threshold = 0.25) scrna= scExtras::ligrec(object=scrna,org=org)
Save Seurat object as RData or RDS file Note : You have to specify filetype as RDS or RData in the param file
Adding your dataset
Add your data to the param.csv file and move it to the data directory. You can find an example dataset here. Please note that the data directory must be in the same location as your server.R, ui.R and function.R files (rename the Example data folder into data). The param.csv file should also be saved in the data directory as the RData files.
Please note that this script requires a username and a password. Before running it, either comment out the Authentication section in server.R or add the username and password in authentication.csv file in the data folder. The username has to be entered in the param.csv file as well so that the user can view only specific datasets.