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:
- which DNA methylation positions respond to V1 in females?
- which DNA methylation positions respond to V1 in males?
- which DNA methylation positions respond to V1 differently between females and males?
Based on the questions, does this design make any sense?
Hi Asaf,
Thank you very much. One step further, actually I am not interested how DNA methylation levels respond to age, can I simplify the model and ignore age splines as:
design = model.matrix(~ sex + sex:V1)
Thank you
It doesn't matter if you care about this information but rather if the age has an influence. If it does then you will want to put this in your model.