☰ Menu

      Introduction to Analysis of Epigenetic Data 2020

Home
Introduction
Introduction to the Workshop and the Core
Schedule
What is Bioinformatics/Genomics?
Some Experimental Design?
Support
Slack
Zoom
Cheat Sheets
Software and Links
Scripts
Prerequisites
Introduction to the Command Line
Introduction to R
High Performance Computing
Data Reduction ChIPseq/ATACseq
Filetype Description
ChIP and ATAC project setup
Preprocessing Reads
Mapping Reads
Filtering Reads
Peak Call with MACS2
Data Analysis ChIPseq/ATACseq
Differential ChIPseq
Differential ATACseq
R Package Installation
Methylation
Introduction to WGBS
WGBS hands-on
ETC
Closing thoughts
Workshop Photos
Github page
Biocore website

Install the needed R packages

Setting up a custom library (Optional)

Sometimes its nice (or necessary) to have a local repository for all your packages associated with a project. OR your on a cluster where your home directory isn’t very accessible.

.libPaths()
new_rlib = file.path("/share/workshop/epigenetics_workshop", Sys.getenv("USER"),"r_lib")
suppressWarnings(dir.create(new_rlib,  recursive=T))
.libPaths(new_rlib)
.libPaths()

Installing R packages

Then lets install a bunch of packages that can be used ChIP and ATAC Peak analysis.

In the R console run the following commands:

if (!requireNamespace("BiocManager", quietly = TRUE))
    install.packages("BiocManager", repos='http://cran.us.r-project.org')

BiocManager::install("ChIPQC")
BiocManager::install("ATACseqQC")

BiocManager::install(c("ChIPpeakAnno", "MotifDb", "GenomicAlignments",
           "BSgenome.Mmusculus.UCSC.mm10", "EpiTxDb.Mm.mm10"))

BiocManager::install("edgeR")
BiocManager::install("limma")
BiocManager::install("stringr")

BiocManager::install("Rsamtools")
BiocManager::install("ChIPpeakAnno")
BiocManager::install("EnsDb.Mmusculus.v79")
BiocManager::install("org.Mm.eg.db")