-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path00_Installation.Rmd
executable file
·54 lines (41 loc) · 1.69 KB
/
00_Installation.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
title: "Practical: Installation"
subtitle: "Transcriptome Analysis Workshop"
author: "Adam Cribbs"
date: "24/01/2022"
output:
html_document:
theme: cosmo
toc: yes
---
```{r, out.width = "40%", echo=FALSE}
htmltools::img(src = knitr::image_uri(file.path("logo.png")),
alt = 'logo',
style = 'position:absolute; top:0; right:0; padding:10px;',
width='300')
```
Before you run the tutorial, you will need to install the following packages. I have written a few helper functions that will facilitate the installation process:
```{r, message=FALSE}
# Install CRAN packages
check.packages <- function(pkg){
new.pkg <- pkg[!(pkg %in% installed.packages()[, "Package"])]
if (length(new.pkg))
install.packages(new.pkg, dependencies = TRUE)
sapply(pkg, require, character.only = TRUE)
}
packages<-c("Seurat", "tidyverse", "BiocManager", "Matrix", "cowplot", "ggplot2",
"scales", "devtools", "reticulate")
check.packages(packages)
# Install bioconductor packages
check_biocmanager <- function(pkg){
if (!requireNamespace(pkg, quietly = TRUE))
BiocManager::install(pkg)
sapply(pkg, require, character.only = TRUE)}
bioc_packages<-c("tximport", "scater", "limma", "EnsDb.Hsapiens.v75",
"AnnotationHub", "ensembldb", "SingleCellExperiment", "scClassify", "SC3", "monocle3",
'DelayedArray', 'DelayedMatrixStats', 'org.Hs.eg.db', 'org.Mm.eg.db', 'fishpond')
check_biocmanager(bioc_packages)
# these packages are not currently on any package manager so you will need to
# install these individually from github using devtools (installed above).
# devtools::install_github("cole-trapnell-lab/garnett")
```