install.packages("Seurat")
install.packages("tidyverse")
install.packages("pheatmap")
install.packages("RColorBrewer")
install.packages("cowplot")
install.packages("dplyr")
install.packages("ggalluvial")
install.packages("msigdbr")
install.packages("ggvenn")
install.packages("BiocManager")
Note for Trainers:
Please note that the schedule linked below assumes that learners will spend between 3-4 hours on reading through, and completing exercises from selected lessons between classes. The online component of the workshop focuses on more exercises and discussion/Q & A.
These materials were developed for a trainer-led workshop, but are also amenable to self-guided learning.
Learning Objectives
- Understanding considerations for when to use different DGE algorithms on scRNA-seq data
- Using FindMarkers to evaluate significantly DE genes
- Aggregating single cell expression data into a pseudobulk counts matrix to run a DESeq2 workflow
- Evaluating expression patterns of differentially expressed genes at the pseudobulk and single cell level
- Application of methods for evaluating differential proportions of cells between conditions
Lessons
Installation Requirements
Applications
Download the most recent versions of R and RStudio for your laptop:
Packages for R
Note 1: Install the packages in the order listed below.
Note 2: All the package names listed below are case sensitive!
Note 3: If you have a Mac, download and install this tool before installing your packages if using R versions 4.3.0 up to 4.4.3: https://mac.r-project.org/tools/gfortran-12.2-universal.pkg And this tool if using R versions after 4.4.3: https://mac.r-project.org/tools/gfortran-14.2-universal.pkg
Note 4: At any point (especially if you’ve used R/Bioconductor in the past), in the console R may ask you if you want to update any old packages by asking Update all/some/none? [a/s/n]:. If you see this, type “a” at the prompt and hit Enter to update any old packages. Updating packages can sometimes take quite a bit of time to run, so please account for that before you start with these installations.
Note 5: If you see a message in your console along the lines of “binary version available but the source version is later”, followed by a question, “Do you want to install from sources the package which needs compilation? y/n”, type n for no, and hit enter.
(1) Install the 10 packages listed below from CRAN using the install.packages()
function.
(2) Install the 8 packages listed below from Bioconductor using the the BiocManager::install()
function.
library(BiocManager)
::install("DESeq2")
BiocManager::install("EnhancedVolcano")
BiocManager::install("SingleCellExperiment")
BiocManager::install("miloR")
BiocManager::install("clusterProfiler")
BiocManager::install("org.Mm.eg.db")
BiocManager::install("sccomp")
BiocManager::install("speckle") BiocManager
There are two ways to install sccomp
, but both ways will require that you install cmdstanr
. The instructions for installing sccomp
using Bioconductor are below:
# Step 1
::install("sccomp")
BiocManager
# Step 2
install.packages("cmdstanr", repos = c("https://stan-dev.r-universe.dev/", getOption("repos")))
# Step 3
::check_cmdstan_toolchain(fix = TRUE) # Just checking system setting
cmdstanr::install_cmdstan() cmdstanr
If you run into issues installing sccomp
via Bioconductor, you can try installing it from GitHub by using devtools
:
install.packages("devtools")
library(devtools)
# Step 1
::install_github("MangiolaLaboratory/sccomp")
devtools
# Step 2
install.packages("cmdstanr", repos = c("https://stan-dev.r-universe.dev/", getOption("repos")))
# Step 3
::check_cmdstan_toolchain(fix = TRUE) # Just checking system setting
cmdstanr::install_cmdstan() cmdstanr
(3) Finally, please check that all the packages were installed successfully by loading them one at a time using the library()
function.
library(Seurat)
library(tidyverse)
library(pheatmap)
library(RColorBrewer)
library(cowplot)
library(dplyr)
library(DESeq2)
library(EnhancedVolcano)
library(SingleCellExperiment)
library(miloR)
library(ggalluvial)
library(clusterProfiler)
library(org.Mm.eg.db)
library(msigdbr)
library(ggvenn)
library(sccomp)
library(speckle)
(4) Once all packages have been loaded, run sessionInfo().
sessionInfo()