Intro RNA-seq LCG-UNAM 2024
Overview
Here you can find the files for the February 2024 introduction to R, RStudio and RNA-sequencing (RNA-seq) course for LCG-UNAM at CCG-UNAM (January 30 - February 2, 2024). The rest of the chapters will be in Spanish.
Instructor:
Teach assistants:
Guest presenters:
Course Coordinators:
- Heladia Salgado
- Julio Collado Vides
Download the materials for this course with usethis::use_course('lcolladotor/rnaseq_LCG-UNAM_2024')
or view online at lcolladotor.github.io/rnaseq_LCG-UNAM_2024.
Code of Conduct
We’ll follow the CDSB code of conduct comunidadbioinfo.github.io/codigo-de-conducta/ as well as version 1.2.0 of the Bioconductor code of conduct bioconductor.github.io/bioc_coc_multilingual/.
For reporting any violations of the code of conduct, report them to the Instructor and/or Course Coordinators.
Course Schedule
Local times in Cuernavaca, Mexico
- Tuesday January 30:
- 9-11 am: introduction to R, RStudio, usethis and here
- Making your own website with postcards activity led by Melissa Mayén Quiroz
- 12-2 pm: introduction to Bioconductor
- 9-11 am: introduction to R, RStudio, usethis and here
- Wednesday January 31:
- 9-11 am: expression data R/Bioconductor objects and visualization: SummarizedExperiment and iSEE
- 12-2 pm: Downloading RNA-seq data using recount3
- Thursday February 1:
- 9-11 am: statistical models with ExploreModelMatrix
- 12-2 pm: LieberInstitute/smoking-nicotine-mouse results + code by Daianna González Padilla. Looking beyond this course!
- Friday February 2:
- 9-11 am: differential expression analysis with limma
- 12-2 pm: review + R/Bioconductor-powered Team Data Science overview + open discussion (career paths, networking, etc)
- 2024 LIBD summer internship program: application closes ??.
External links
- Cursos LCG
- GitHub source code
- Zoom (ask)
- LCG-UNAM RStudio server
- CDSB.
- Slack CDSB Mexico, in particular the
intro_rnaseq_lcg_2024
channel. You can join this Slack workspace through this link. - LieberInstitute/template_project
- Example real project (by Daianna): LieberInstitute/smoking-nicotine-mouse
Course Prerequisites
Install R 4.3.x from CRAN then install the following R packages:
## For installing Bioconductor packages
if (!requireNamespace("BiocManager", quietly = TRUE)) {
install.packages("BiocManager")
}
## Install required packages
BiocManager::install(
c(
"usethis", ## Utilities
"here",
"biocthis",
"lobstr",
"postcards",
"sessioninfo",
"SummarizedExperiment", ## Main containers / vis
"iSEE",
"edgeR", ## RNA-seq
"ExploreModelMatrix",
"limma",
"recount3",
"pheatmap", ## Visualization
"ggplot2",
"patchwork",
"RColorBrewer",
"ComplexHeatmap",
"spatialLIBD" ## Advanced
)
)
You will also need to install RStudio version RStudio 2023.06.1+524 or newer.
Course Evaluation
- Participation
- (main evidence) written and/or verbal participation during class
- (optional, strongly encouraged for your own career) Community building: CDSB Slack (introduce yourself), Twitter, GitHub, etc.
- Public work
- (main evidence) Taking notes on GitHub
- (optional) Deploy an iSEE
shiny
app on shinyapps.io - (advanced and optional) R package with notes following
usethis::create_package()
+biocthis::use_bioc_pkg_templates()
.
- Final project
- (main evidence) code in a public GitHub repository (different from the notes one) following the structure from LieberInstitute/template_project
- (optional) a rendered Rmd file (RPubs, GitHub, etc) on a public URL
- (optional advanced) Copy this repository, remove all the Rmds except the index.Rmd and edit accordingly. GitHub Actions will then help you render it. You’ll need to fetch the
gh-pages
branch and at least make one commit for the HTML to be available such as this commit. You might also run into this GitHub default permission setting that you’ll need to change.
The final grade will be a weighted average from the evaluation by the TA (20%), your public work (40%) and your final project (40%).
Projects, public work and notes are due at 9 am US Eastern on Monday February 12th, though we recommend doing any work related to this course by Friday February 9th.
R session information
Details on the R version used for making this book. The source code is available at lcolladotor/rnaseq_LCG-UNAM_2024
.
## Load the package at the top of your script
library("sessioninfo")
## Utilities
library("BiocStyle")
library("biocthis")
library("here")
library("lobstr")
library("postcards")
library("usethis")
library("sessioninfo")
## Main containers / vis
library("SummarizedExperiment")
library("iSEE")
## RNA-seq
library("edgeR")
library("ExploreModelMatrix")
library("limma")
library("recount3")
## Visualization
library("ComplexHeatmap")
library("ggplot2")
library("patchwork")
library("pheatmap")
library("RColorBrewer")
## Advanced
library("spatialLIBD")
## ─ Session info ───────────────────────────────────────────────────────────────────────────────────────────────────────
## setting value
## version R version 4.3.2 (2023-10-31)
## os Ubuntu 22.04.3 LTS
## system x86_64, linux-gnu
## ui X11
## language (EN)
## collate en_US.UTF-8
## ctype en_US.UTF-8
## tz UTC
## date 2024-02-02
## pandoc 3.1.1 @ /usr/local/bin/ (via rmarkdown)
##
## ─ Packages ───────────────────────────────────────────────────────────────────────────────────────────────────────────
## package * version date (UTC) lib source
## abind 1.4-5 2016-07-21 [1] RSPM (R 4.3.0)
## AnnotationDbi 1.64.1 2023-11-03 [1] Bioconductor
## AnnotationHub 3.10.0 2023-10-24 [1] Bioconductor
## attempt 0.3.1 2020-05-03 [1] RSPM (R 4.3.0)
## beachmat 2.18.0 2023-10-24 [1] Bioconductor
## beeswarm 0.4.0 2021-06-01 [1] RSPM (R 4.3.0)
## benchmarkme 1.0.8 2022-06-12 [1] RSPM (R 4.3.0)
## benchmarkmeData 1.0.4 2020-04-23 [1] RSPM (R 4.3.0)
## Biobase * 2.62.0 2023-10-24 [1] Bioconductor
## BiocFileCache 2.10.1 2023-10-26 [1] Bioconductor
## BiocGenerics * 0.48.1 2023-11-01 [1] Bioconductor
## BiocIO 1.12.0 2023-10-24 [1] Bioconductor
## BiocManager 1.30.22 2023-08-08 [2] CRAN (R 4.3.2)
## BiocNeighbors 1.20.2 2024-01-07 [1] Bioconductor 3.18 (R 4.3.2)
## BiocParallel 1.36.0 2023-10-24 [1] Bioconductor
## BiocSingular 1.18.0 2023-10-24 [1] Bioconductor
## BiocStyle * 2.30.0 2023-10-24 [1] Bioconductor
## biocthis * 1.12.0 2023-10-24 [1] Bioconductor
## BiocVersion 3.18.1 2023-11-15 [2] Bioconductor
## Biostrings 2.70.2 2024-01-28 [1] Bioconductor 3.18 (R 4.3.2)
## bit 4.0.5 2022-11-15 [1] RSPM (R 4.3.0)
## bit64 4.0.5 2020-08-30 [1] RSPM (R 4.3.0)
## bitops 1.0-7 2021-04-24 [1] RSPM (R 4.3.0)
## blob 1.2.4 2023-03-17 [1] RSPM (R 4.3.0)
## bookdown 0.37 2023-12-01 [1] RSPM (R 4.3.0)
## bslib 0.6.1 2023-11-28 [2] RSPM (R 4.3.0)
## cachem 1.0.8 2023-05-01 [2] RSPM (R 4.3.0)
## circlize 0.4.15 2022-05-10 [1] RSPM (R 4.3.0)
## cli 3.6.2 2023-12-11 [2] RSPM (R 4.3.0)
## clue 0.3-65 2023-09-23 [1] RSPM (R 4.3.0)
## cluster 2.1.6 2023-12-01 [3] RSPM (R 4.3.0)
## codetools 0.2-19 2023-02-01 [3] CRAN (R 4.3.2)
## colorspace 2.1-0 2023-01-23 [1] RSPM (R 4.3.0)
## colourpicker 1.3.0 2023-08-21 [1] RSPM (R 4.3.0)
## ComplexHeatmap * 2.18.0 2023-10-24 [1] Bioconductor
## config 0.3.2 2023-08-30 [1] RSPM (R 4.3.0)
## cowplot 1.1.3 2024-01-22 [1] RSPM (R 4.3.0)
## crayon 1.5.2 2022-09-29 [2] RSPM (R 4.3.0)
## curl 5.2.0 2023-12-08 [2] RSPM (R 4.3.0)
## data.table 1.15.0 2024-01-30 [1] RSPM (R 4.3.0)
## DBI 1.2.1 2024-01-12 [1] RSPM (R 4.3.0)
## dbplyr 2.4.0 2023-10-26 [1] RSPM (R 4.3.0)
## DelayedArray 0.28.0 2023-10-24 [1] Bioconductor
## DelayedMatrixStats 1.24.0 2023-10-24 [1] Bioconductor
## digest 0.6.34 2024-01-11 [2] RSPM (R 4.3.0)
## doParallel 1.0.17 2022-02-07 [1] RSPM (R 4.3.0)
## dotCall64 1.1-1 2023-11-28 [1] RSPM (R 4.3.0)
## dplyr 1.1.4 2023-11-17 [1] RSPM (R 4.3.0)
## DT 0.31 2023-12-09 [1] RSPM (R 4.3.0)
## edgeR * 4.0.14 2024-01-29 [1] Bioconductor 3.18 (R 4.3.2)
## ellipsis 0.3.2 2021-04-29 [2] RSPM (R 4.3.0)
## evaluate 0.23 2023-11-01 [2] RSPM (R 4.3.0)
## ExperimentHub 2.10.0 2023-10-24 [1] Bioconductor
## ExploreModelMatrix * 1.14.0 2023-10-24 [1] Bioconductor
## fansi 1.0.6 2023-12-08 [2] RSPM (R 4.3.0)
## fastmap 1.1.1 2023-02-24 [2] RSPM (R 4.3.0)
## fields 15.2 2023-08-17 [1] RSPM (R 4.3.0)
## filelock 1.0.3 2023-12-11 [1] RSPM (R 4.3.0)
## foreach 1.5.2 2022-02-02 [1] RSPM (R 4.3.0)
## fs 1.6.3 2023-07-20 [2] RSPM (R 4.3.0)
## generics 0.1.3 2022-07-05 [1] RSPM (R 4.3.0)
## GenomeInfoDb * 1.38.5 2023-12-28 [1] Bioconductor 3.18 (R 4.3.2)
## GenomeInfoDbData 1.2.11 2024-01-29 [1] Bioconductor
## GenomicAlignments 1.38.2 2024-01-16 [1] Bioconductor 3.18 (R 4.3.2)
## GenomicRanges * 1.54.1 2023-10-29 [1] Bioconductor
## GetoptLong 1.0.5 2020-12-15 [1] RSPM (R 4.3.0)
## ggbeeswarm 0.7.2 2023-04-29 [1] RSPM (R 4.3.0)
## ggplot2 * 3.4.4 2023-10-12 [1] RSPM (R 4.3.0)
## ggrepel 0.9.5 2024-01-10 [1] RSPM (R 4.3.0)
## GlobalOptions 0.1.2 2020-06-10 [1] RSPM (R 4.3.0)
## glue 1.7.0 2024-01-09 [2] RSPM (R 4.3.0)
## golem 0.4.1 2023-06-05 [1] RSPM (R 4.3.0)
## gridExtra 2.3 2017-09-09 [1] RSPM (R 4.3.0)
## gtable 0.3.4 2023-08-21 [1] RSPM (R 4.3.0)
## here * 1.0.1 2020-12-13 [1] RSPM (R 4.3.0)
## htmltools 0.5.7 2023-11-03 [2] RSPM (R 4.3.0)
## htmlwidgets 1.6.4 2023-12-06 [2] RSPM (R 4.3.0)
## httpuv 1.6.14 2024-01-26 [2] RSPM (R 4.3.0)
## httr 1.4.7 2023-08-15 [2] RSPM (R 4.3.0)
## igraph 2.0.1.1 2024-01-30 [1] RSPM (R 4.3.0)
## interactiveDisplayBase 1.40.0 2023-10-24 [1] Bioconductor
## IRanges * 2.36.0 2023-10-24 [1] Bioconductor
## irlba 2.3.5.1 2022-10-03 [1] RSPM (R 4.3.0)
## iSEE * 2.14.0 2023-10-24 [1] Bioconductor
## iterators 1.0.14 2022-02-05 [1] RSPM (R 4.3.0)
## jquerylib 0.1.4 2021-04-26 [2] RSPM (R 4.3.0)
## jsonlite 1.8.8 2023-12-04 [2] RSPM (R 4.3.0)
## KEGGREST 1.42.0 2023-10-24 [1] Bioconductor
## knitr 1.45 2023-10-30 [2] RSPM (R 4.3.0)
## later 1.3.2 2023-12-06 [2] RSPM (R 4.3.0)
## lattice 0.22-5 2023-10-24 [3] RSPM (R 4.3.0)
## lazyeval 0.2.2 2019-03-15 [1] RSPM (R 4.3.0)
## lifecycle 1.0.4 2023-11-07 [2] RSPM (R 4.3.0)
## limma * 3.58.1 2023-10-31 [1] Bioconductor
## lobstr * 1.1.2 2022-06-22 [1] RSPM (R 4.3.0)
## locfit 1.5-9.8 2023-06-11 [1] RSPM (R 4.3.0)
## magick 2.8.2 2023-12-20 [1] RSPM (R 4.3.0)
## magrittr 2.0.3 2022-03-30 [2] RSPM (R 4.3.0)
## maps 3.4.2 2023-12-15 [1] RSPM (R 4.3.0)
## MASS 7.3-60.0.1 2024-01-13 [3] RSPM (R 4.3.0)
## Matrix 1.6-5 2024-01-11 [3] RSPM (R 4.3.0)
## MatrixGenerics * 1.14.0 2023-10-24 [1] Bioconductor
## matrixStats * 1.2.0 2023-12-11 [1] RSPM (R 4.3.0)
## memoise 2.0.1 2021-11-26 [2] RSPM (R 4.3.0)
## mgcv 1.9-1 2023-12-21 [3] RSPM (R 4.3.0)
## mime 0.12 2021-09-28 [2] RSPM (R 4.3.0)
## miniUI 0.1.1.1 2018-05-18 [2] RSPM (R 4.3.0)
## munsell 0.5.0 2018-06-12 [1] RSPM (R 4.3.0)
## nlme 3.1-164 2023-11-27 [3] RSPM (R 4.3.0)
## paletteer 1.6.0 2024-01-21 [1] RSPM (R 4.3.0)
## patchwork * 1.2.0 2024-01-08 [1] RSPM (R 4.3.0)
## pheatmap * 1.0.12 2019-01-04 [1] RSPM (R 4.3.0)
## pillar 1.9.0 2023-03-22 [2] RSPM (R 4.3.0)
## pkgconfig 2.0.3 2019-09-22 [2] RSPM (R 4.3.0)
## plotly 4.10.4 2024-01-13 [1] RSPM (R 4.3.0)
## png 0.1-8 2022-11-29 [1] RSPM (R 4.3.0)
## postcards * 0.2.3 2022-01-07 [1] RSPM (R 4.3.0)
## promises 1.2.1 2023-08-10 [2] RSPM (R 4.3.0)
## purrr 1.0.2 2023-08-10 [2] RSPM (R 4.3.0)
## R.cache 0.16.0 2022-07-21 [1] RSPM (R 4.3.0)
## R.methodsS3 1.8.2 2022-06-13 [1] RSPM (R 4.3.0)
## R.oo 1.26.0 2024-01-24 [1] RSPM (R 4.3.0)
## R.utils 2.12.3 2023-11-18 [1] RSPM (R 4.3.0)
## R6 2.5.1 2021-08-19 [2] RSPM (R 4.3.0)
## rappdirs 0.3.3 2021-01-31 [2] RSPM (R 4.3.0)
## RColorBrewer * 1.1-3 2022-04-03 [1] RSPM (R 4.3.0)
## Rcpp 1.0.12 2024-01-09 [2] RSPM (R 4.3.0)
## RCurl 1.98-1.14 2024-01-09 [1] RSPM (R 4.3.0)
## recount3 * 1.12.0 2023-10-24 [1] Bioconductor
## rematch2 2.1.2 2020-05-01 [2] RSPM (R 4.3.0)
## restfulr 0.0.15 2022-06-16 [1] RSPM (R 4.3.2)
## rintrojs 0.3.4 2024-01-11 [1] RSPM (R 4.3.0)
## rjson 0.2.21 2022-01-09 [1] RSPM (R 4.3.0)
## rlang 1.1.3 2024-01-10 [2] RSPM (R 4.3.0)
## rmarkdown 2.25 2023-09-18 [2] RSPM (R 4.3.0)
## rprojroot 2.0.4 2023-11-05 [2] RSPM (R 4.3.0)
## Rsamtools 2.18.0 2023-10-24 [1] Bioconductor
## RSQLite 2.3.5 2024-01-21 [1] RSPM (R 4.3.0)
## rstudioapi 0.15.0 2023-07-07 [2] RSPM (R 4.3.0)
## rsvd 1.0.5 2021-04-16 [1] RSPM (R 4.3.0)
## rtracklayer 1.62.0 2023-10-24 [1] Bioconductor
## S4Arrays 1.2.0 2023-10-24 [1] Bioconductor
## S4Vectors * 0.40.2 2023-11-23 [1] Bioconductor 3.18 (R 4.3.2)
## sass 0.4.8 2023-12-06 [2] RSPM (R 4.3.0)
## ScaledMatrix 1.10.0 2023-10-24 [1] Bioconductor
## scales 1.3.0 2023-11-28 [1] RSPM (R 4.3.0)
## scater 1.30.1 2023-11-16 [1] Bioconductor
## scuttle 1.12.0 2023-10-24 [1] Bioconductor
## sessioninfo * 1.2.2 2021-12-06 [2] RSPM (R 4.3.0)
## shape 1.4.6 2021-05-19 [1] RSPM (R 4.3.0)
## shiny 1.8.0 2023-11-17 [2] RSPM (R 4.3.0)
## shinyAce 0.4.2 2022-05-06 [1] RSPM (R 4.3.0)
## shinydashboard 0.7.2 2021-09-30 [1] RSPM (R 4.3.0)
## shinyjs 2.1.0 2021-12-23 [1] RSPM (R 4.3.0)
## shinyWidgets 0.8.1 2024-01-10 [1] RSPM (R 4.3.0)
## SingleCellExperiment * 1.24.0 2023-10-24 [1] Bioconductor
## spam 2.10-0 2023-10-23 [1] RSPM (R 4.3.0)
## SparseArray 1.2.3 2023-12-25 [1] Bioconductor 3.18 (R 4.3.2)
## sparseMatrixStats 1.14.0 2023-10-24 [1] Bioconductor
## SpatialExperiment * 1.12.0 2023-10-24 [1] Bioconductor
## spatialLIBD * 1.14.1 2023-11-30 [1] Bioconductor 3.18 (R 4.3.2)
## statmod 1.5.0 2023-01-06 [1] RSPM (R 4.3.0)
## styler 1.10.2 2023-08-29 [1] RSPM (R 4.3.0)
## SummarizedExperiment * 1.32.0 2023-10-24 [1] Bioconductor
## tibble 3.2.1 2023-03-20 [2] RSPM (R 4.3.0)
## tidyr 1.3.1 2024-01-24 [1] RSPM (R 4.3.0)
## tidyselect 1.2.0 2022-10-10 [1] RSPM (R 4.3.0)
## usethis * 2.2.2 2023-07-06 [2] RSPM (R 4.3.0)
## utf8 1.2.4 2023-10-22 [2] RSPM (R 4.3.0)
## vctrs 0.6.5 2023-12-01 [2] RSPM (R 4.3.0)
## vipor 0.4.7 2023-12-18 [1] RSPM (R 4.3.0)
## viridis 0.6.5 2024-01-29 [1] RSPM (R 4.3.0)
## viridisLite 0.4.2 2023-05-02 [1] RSPM (R 4.3.0)
## withr 3.0.0 2024-01-16 [2] RSPM (R 4.3.0)
## xfun 0.41 2023-11-01 [2] RSPM (R 4.3.0)
## XML 3.99-0.16.1 2024-01-22 [1] RSPM (R 4.3.0)
## xtable 1.8-4 2019-04-21 [2] RSPM (R 4.3.0)
## XVector 0.42.0 2023-10-24 [1] Bioconductor
## yaml 2.3.8 2023-12-11 [2] RSPM (R 4.3.0)
## zlibbioc 1.48.0 2023-10-24 [1] Bioconductor
##
## [1] /__w/_temp/Library
## [2] /usr/local/lib/R/site-library
## [3] /usr/local/lib/R/library
##
## ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
## user system elapsed
## 11.657 0.864 12.172
This book was last updated at 2024-02-02 14:20:01.610018.
License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.