Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Example data
README.md
functions.R
server.R
ui.R

README.md

SeuratViewer

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

Introduction

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

Requirements

  • 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

Installation

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

  • RcppEigen
  • lme4
  • flexmix

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

save(scrna,file="scrna_v3_data.RData")

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.

NOTE

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.

You can’t perform that action at this time.