DESeq2 with sample effect, unequal sample sizes
1
0
Entering edit mode
rf • 0
@rfes-12351
Last seen 23 months ago
Spain

I have an experiment where we have 3 covariates: subject, treatment and time. I want to examine the effect of treatment, the effect of time, and their interaction, while controling for subject effect (there is substantial subject effect)

An abbreviated explanation of my experiment is:

sbj_A | tr_1 | time_0
sbj_B | tr_1 | time_0
sbj_C | tr_1 | time_0

sbj_A | tr_2 | time_0
sbj_B | tr_2 | time_0
sbj_C | tr_2 | time_0

sbj_A | tr_1 | time_1
sbj_B | tr_1 | time_1

sbj_A | tr_2 | time_1
sbj_B | tr_2 | time_1
sbj_C | tr_2 | time_1

Note that one of the conditions contains one less sample (sbj_C | tr_1 | time_1) which was removed since it showed some sequencing issues with it. However, I now want to perform different comparisons so I consider ~treatment + time + treatment:time + subject. I then want to perform all relevant comparisons (effect of treatment, effect of time, and effect of treatment * time), but get an error that the matrix is not full rank. I believe this is because of the sample number difference. How would you tackle this issue?

Many thanks in advance

DESeq2 • 503 views
ADD COMMENT
0
Entering edit mode
@mikelove
Last seen 4 days ago
United States

For statistical analysis plans such as design and coefficient interpretation, I recommend collaborating with a local statistician or someone familiar with linear models in R. I have to restrict my time on the support site to software-related issues.

You need to discuss either dropping the fixed effect for subject or modeling it as a random effect. Limma supports something along the lines of random effects with duplicateCorrelation.

ADD COMMENT

Login before adding your answer.

Traffic: 483 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6