contrast matrix design for a continuous variable at multiple groups
1
0
Entering edit mode
23 days ago
dtzhu337 ▴ 10

Hi all,

I am trying to figure out signals from DNA methylation for a continuous variable at multiple groups. We have mice samples at 4 time points in both sexes, and we are testing if DNA methylation change with V1 using limma

I used the following design matrix and added duplicateCorrelation for random effect.

> X = ns(time_point, df = 3) 

> design = model.matrix(~ V1*sex + X)

I am asking the questions:

  1. which DNA methylation positions respond to V1 in females?
  2. which DNA methylation positions respond to V1 in males?
  3. which DNA methylation positions respond to V1 differently between females and males?

Based on the questions, does this design make any sense?

design contrast limma • 284 views
ADD COMMENT
0
Entering edit mode
21 days ago
Asaf 10k

The element V1 will give you the overall effect of V1. V1:Sex interaction will answer the question how V1 is different between males and females. If V1 has an effect you can then see how V1:sex is behaving on that gene and conclude how it's affecting males and females differently.

ADD COMMENT

Login before adding your answer.

Traffic: 2082 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