Hello, I have to perform a differential expression analysis (RNAseq) for a condition of interest (condition) for 160 paired samples (subjects). I have followed the classic design of ~subjects+condition. However, using both edgeR and DESeq2 I get the error message "the model matrix is not full rank" so some coefficients cannot be estimated and therefore I cannot get a result. Is there any way to overcome this problem? Thank you in advance!
It is a common error that you may find the reason why by googling it. Condition and subjects variables are nested. You cannot perform such linear model with your study design. If you show your study design, maybe we could help you to choose the best statistical model to apply.
OK thank you! Below is an example of the experimental design, including a multi-level factor ("condition", 5 levels: A, B, C, D and E) and the variable "time" expressed as "before" and "after". Is it possible to define the "after-before" contrast for any combination of "condition" (e.g. after-before in AA couples, or "after-before" in CB couples, etc.) for the variable "condition" considering that it is paired data (160 paired samples)? I hope I have made the problem sufficiently clear. Thanks again.
Design: