Entering edit mode
Dear all,
I am working with a DESEQ2 object and when I run dds0 <- DESeq(dds0)
it works fine for the type "arm" as specified here:
dds0_sub <- dds0[,dds0$Sample.Site == "arm"]
But if I do the same with "leg"
dds0_sub <- dds0[,dds0$Sample.Site == "leg"]
and dds0 <- DESeq(dds0)
I get the following error:
Error in designAndArgChecker(object, betaPrior) :
full model matrix is less than full rank
Has anyone an idea what it could be?
Thank you, Bine
Thank you for your quick reply.
I have tried this:
dds0$Sample.Site <- droplevels(dds0$Sample.Site)
but then I get the error:Then I tried to convert to a factor with
Then I dont get an error anymore with droplevel but then running
dds0 <- DESeq(dds0)
again gives:What am I doing wrong here?
Thanks so much!
Oh then, it could just be because your design induces confounding. Do read the vignette section that the error message points to. You can consult further with a statistician on dealing with confounding.
Thank you.
Interestingly the ones, e.g. leg & heart with just a few samples are making problems. Arm and Head with more samples are fine.