Repeated measurements wtih limma
1
0
Entering edit mode
Gurkenkönig ▴ 10
@gurkenkonig-16328
Last seen 5.2 years ago

I have EPIC array methylation data and would like to check for differential methylation.

+------+-----+
| time | id  |
+------+-----+
| t0   | P1  |
+------+-----+
| t1   | P1  |
+------+-----+
| t0   | P2  |
+------+-----+
| t1   | P2  |
+------+-----+
| ...  | ... |
+------+-----+

So far I have always used the limma package in R here, but I have problems defining the study design for the repeated measures.

group <- factor(targets$time,levels=c("t0", "t1"))
id <- factor(targets$id)
design <- model.matrix(~id + group)

Can someone help me define the design correctly or point me in the right direction if the approach is completely wrong?

limma limma design matrix • 837 views
ADD COMMENT
1
Entering edit mode
Aaron Lun ★ 28k
@alun
Last seen 5 hours ago
The city by the bay

Looks good to me. The last coefficient in design should represent the log-fold change (or for methylation data, the difference between M-values) between t0 and t1, which is presumably the contrast of interest here.

ADD COMMENT

Login before adding your answer.

Traffic: 895 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6