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?