開始使用免費開始

以群組平均檢驗差異表現

現在你已經指定了 design 矩陣與 contrasts 矩陣,可以開始檢驗差異表現。

本練習屬於課程

使用 R 中的 limma 進行差異表達分析

檢視課程

練習說明

已在你的工作空間中載入含白血病資料的 ExpressionSet 物件 eset、design 矩陣(design),以及 contrasts 矩陣(cm)。

  • 使用 lmFit 套用模型係數。

  • 使用 contrasts.fit 套用對比。

  • 使用 eBayes 計算 t 統計量。

  • 使用 decideTests 彙整結果。在群組平均模型中沒有截距項,因此不需要像在 treatment-contrasts 參數化時那樣對 fit2 取子集。

動手互動練習

試著完成這個範例程式碼,體驗一下這個練習。

# Load package
library(limma)

# Fit the model
fit <- ___(eset, ___)

# Fit the contrasts
fit2 <- ___(fit, contrasts = ___)

# Calculate the t-statistics for the contrasts
fit2 <- ___(fit2)

# Summarize results
results <- ___(fit2)
summary(results)
編輯並執行程式碼