요인 실험 설계

R에서 limma로 하는 차등 발현 분석

John Blischak

Instructor

요인 설계

  • 식물의 저온 효과를 연구하는 2x2 설계:
    • Arabidopsis thaliana 2종: col, vte2
    • 온도 2가지: 정상, 저온
    • Maeda et al. 2010
dim(eset)
Features  Samples 
   11871       12
table(pData(eset)[, c("type", "temp")])
      temp
type   low normal
  col    3      3
  vte2   3      3
R에서 limma로 하는 차등 발현 분석

2x2 요인 설계의 그룹 평균 모형

$$ Y = \beta_1 X_1 + \beta_2 X_2 + \beta_3 X_3 + \beta_4 X_4 + \epsilon $$

  • $\beta_1$ - 저온에서 col 식물의 평균 발현 수준
  • $\beta_2$ - 정상 온도에서 col 식물의 평균 발현 수준
  • $\beta_3$ - 저온에서 vte2 식물의 평균 발현 수준
  • $\beta_4$ - 정상 온도에서 vte2 식물의 평균 발현 수준
R에서 limma로 하는 차등 발현 분석

2x2 요인 설계의 그룹 평균 설계 행렬

group <- with(pData(eset), 
              paste(type, temp, sep = "."))
group <- factor(group)
design <- model.matrix(~0 + group)
colnames(design) <- levels(group)
head(design, 3)
  col.low col.normal vte2.low vte2.normal
1       0          1        0           0
2       0          1        0           0
3       0          1        0           0
colSums(design)
    col.low  col.normal    vte2.low vte2.normal 
          3           3           3           3
R에서 limma로 하는 차등 발현 분석

2x2 요인 설계의 대비

$\beta_1$ $\beta_2$ $\beta_3$ $\beta_4$
type col col vte2 vte2
temp low normal low normal
  • Differences of type in normal temp: $\beta_4 - \beta_2 = 0$
  • Differences of type in low temp: $\beta_3 - \beta_1 = 0$
  • Differences of temp in vte2 type: $\beta_3 - \beta_4 = 0$
  • Effect of temp in col type: $\beta_1 - \beta_2 = 0$
  • Differences of temp between col and vte2 type: $(\beta_3 - \beta_4) - (\beta_1 - \beta_2) = 0$
R에서 limma로 하는 차등 발현 분석

2x2 요인 설계의 대비 행렬

library(limma)
cm <- makeContrasts(type_normal = vte2.normal - col.normal,
                    type_low = vte2.low - col.low,
                    temp_vte2 = vte2.low - vte2.normal,
                    temp_col = col.low - col.normal,
                    interaction = (vte2.low - vte2.normal) -(col.low - col.normal),
                    levels = design)
cm
             Contrasts
Levels        type_normal type_low temp_vte2 temp_col interaction
  col.low               0       -1         0        1          -1
  col.normal           -1        0         0       -1           1
  vte2.low              0        1         1        0           1
  vte2.normal           1        0        -1        0          -1
R에서 limma로 하는 차등 발현 분석

2x2 요인 설계 검정

library(limma)

# Fit coefficients
fit <- lmFit(eset, design)

# Fit contrasts
fit2 <- contrasts.fit(fit, contrasts = cm)

# Calculate t-statistics
fit2 <- eBayes(fit2)

# Summarize results
results <- decideTests(fit2)
summary(results)
   type_normal type_low temp_vte2 temp_col interaction
-1           0      466      1635     1885         128
0        11871    10915      7635     6989       11640
1            0      490      2601     2997         103
R에서 limma로 하는 차등 발현 분석

포플러 나무에 대한 가뭄의 영향

  • 수목의 가뭄 영향을 연구하는 2x2 설계:
    • Populus 2종: DN34, NM6
    • 수분 조건 2가지: 정상, 가뭄
    • Wilkins et al. 2009
dim(eset)
Features  Samples 
   16172       12
table(pData(eset)[, c("type", "water")])
      water
type   drought normal
  dn34       3      3
  nm6        3      3
R에서 limma로 하는 차등 발현 분석

연습해 보겠습니다!

R에서 limma로 하는 차등 발현 분석

Preparing Video For Download...