Skip to content

melbintgen/intro-to-linear-models

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MIG workshop: Linear models

Authors: Saritha Kodikara

Tutors: Ilariya Tarasova, Yidi Deng

Audience Prerequisites Duration
Biologists Intro to R ~ 2.5 hours

Description

This repository includes material for our workshop 'Linear models'. This workshop will introduce the fundamental principles of linear models and linear mixed effect models, with hands-on applications for the analysis of gene expression data, using base and limma R packages.

Installation Requirements

Install R first, then RStudio. Download the most recent version of R and RStudio using the links below:

  • R (Preferably R version > 4.0)
  • RStudio

Install the R packages. Type the R command lines:

# Install tidyverse package using CRAN
install.packages(c("tidyverse", "nlme", "ggpubr", "MuMIn"))

# Install edgeR and limma packages using BiocManager
if (!requireNamespace("BiocManager", quietly = TRUE)) {
  install.packages("BiocManager")
}
BiocManager::install(c("edgeR","limma"))

# Test if packages have been installed
library(tidyverse)  # working with data frames, plotting
library(edgeR)      # cpm, etc -- RNA-Seq normalization
library(limma)      # lmFit, etc -- fitting many models
library(nlme)       # lme
library(ggpubr)     # ggqqplot
library(MuMIn)      # AICc

Material

Click here to access the slides.

Click here to access the HTML workshop document.

Data

All data used for the workshop are in data.zip.


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages