Dear Maria,
Thanks for the specific reference to the documentation that you've followed.
Yes, you are correct, the error is arising because there is no 4th patient in the healthy group. If you have a look at your design matrix, you will see that there is a column called DiseaseHealthy:Patient4 that consists entirely of zeros. It should be column 8, but check:
design[,8]
The easiest way to proceed is simply to remove that column manually from the design matrix:
design2 <- design[,-8]
Your experiment has another issue, in that you have repeat samples on several of the patients. Are these biological replicates? If not, if they are just technical replicates, then they should be collapsed into one library before analysis.
Best wishes
Gordon
Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Dear Maria,
Sounds ok from what you say not to collapse libraries. However, if the three treated cultures and three untreated cultures for one patient are truly three pairs, then this pairing should be reflected in the analysis. You can handle this by numbering the samples by paired culture from 1 to 7 instead of numbering by patient.
An MDS plot could guide you in judging whether there are baseline differences between the different pairs for one patient, and hence whether your pairing should be by culture instead of by patient.
Best wishes
Gordon
Yes, that is correct.
Gordon