Hi to everyone, I'm totally new to bioinformatics but I'm trying to learn. Recently, I received data from an Illumina 850k analysis of DNA methylation and I'm trying to work on them using R. At the moment, I'm following the tutorial published on this paper: https://f1000research.com/articles/5-1281 (here on bioconductor, relative to the package: https://bioconductor.org/packages/release/workflows/vignettes/methylationArrayAnalysis/inst/doc/methylationArrayAnalysis.html). The problem is that I got stuck on the design matrix and contrast matrix part to perform the statistical analysis. I'll try to explain the experiment. My sample is composed of the same cell line with 4 different conditions (each in biological triplicate): a gene-upregulation through doxycycline induction, so I have samples induced (IN) and non induced (NI); a gene silencing through si-RNA, so I have samples with si-Scramble (S) and with si-RNA to downregulate my target (T).
My four conditions are:
1. S - NI,
2. S - IN,
3. T - NI,
4. T - IN (then I have the triplicates, so 1-2-3 each).
I want to check for differences in the replicates but most important I want to check all the differences I have respect to my Control that is S - NI (scramble - non induced), but also between all the conditions to check for the role of the induced gene and the downregulated one. I'm not confident with this type of statistics so I can't understand how I have to set the design matrix and the contrast matrix to proceed. Sorry for being so long but I wanted to explain as much as I can. If someone can help me it will be really great; I'm also reading the guide for limma but still I'm not sure of what I have to do. Thank you in advance for your answers!! ps I can post also some code if it can help
Thank you for your answer! Probably I have explained the experiment in the wrong way, I have four samples like this: Not Induced : si-Ctrl , si-Gene Induced : si-Ctrl , si-Gene. In this way, I have also a sample in which the effects of the two conditions are combined. But I think that more or less the design matrix will be similar to what you wrote, right?
Following the tutorial, I tried something similar to this:
I've updated my answer.
I will try, thank you very much!! 😁