Entering edit mode
3.3 years ago
Anand
▴
40
Hi. I've a data matrix which looks like this:
I'm trying to carrying out DGE analysis controlling for age and medication so I used the following:
design(ddsMF)<-formula(~age+medication+group)
ddsMF<-DESeq(ddsMF)
And end up with the error, "Full model matrix is less than full rank."
I saw the vignettes on the DESeq2 tutorial but am not sure if they would work here given the large age range. Any advice would be most welcome.
Odds are good that you have a typo somewhere in your design matrix. Make sure group and medication are factors with only 2 levels and that age is numeric, rather than a factor. Otherwise the model matrix should be full rank.
Fixed! Thanks Devon.
For future people with the same issue, can you mention exactly what was wrong?