DESeq2 error multifactiorial design
1
0
Entering edit mode
@dequattroconcetta-21510
Last seen 2.2 years ago
Italy

Hi! I am trying to perform differential expression analysis comparing multiple groups at the same time. My sampleTable is the following:

    Name    Condition   Differentiation
AF_MSCs_1   AF_MSCs_1   AF_MSCs low
AF_MSCs_2   AF_MSCs_2   AF_MSCs low
AF_MSCs_3   AF_MSCs_3   AF_MSCs low
F_MSCs_1    F_MSCs_1    F_MSCs  medium
F_MSCs_2    F_MSCs_2    F_MSCs  medium
F_MSCs_3    F_MSCs_3    F_MSCs  medium
M_MSCs_1    M_MSCs_1    M_MSCs  medium
M_MSCs_2    M_MSCs_2    M_MSCs  medium
M_MSCs_3    M_MSCs_3    M_MSCs  medium
NHLF_1  NHLF_1  NHLF    high
NHLF_2  NHLF_2  NHLF    high
NHLF_3  NHLF_3  NHLF    high

When I performed the multivariate analysis to identify differentially expressed genes in the condition taking into account the level of differentiation. I got the following message.

dds <- DESeqDataSetFromMatrix(countData = mymatrix_select,
+                               colData = sampleTable,
+                               design = ~ Condition + Differentiation)
converting counts to integer mode
Error in checkFullRank(modelMatrix) : 
  the model matrix is not full rank, so the model cannot be fit as specified.
  One or more variables or interaction terms in the design formula are linear
  combinations of the others and must be removed.

  Please read the vignette section 'Model matrix not full rank':

  vignette('DESeq2')

How can I fix this problems?

In addition I would like to compare one condition against all the others condition at once. I tried two approaches: in the first approach I used the LRT function as following:

dds <- DESeq(dds, test="LRT", reduced = ~ 1)

However, I did non understand how to extract the result.

In addition I tried with contrast function applying this command:

res_M_MSCs <- results(dds, contrast=list(c("ConditionAF_MSCs", "ConditionF_MSCs", "ConditionNHLF"), "ConditionM_MSCs"), listValues=c(1/2, -1))

I am not sure how to set the 1/2 parameter to average over the three groups. Should I leave 1/2?

I was wondering which is the best approach to compare multiple groups at the same time.

Thank you!

Concetta

deseq2 • 439 views
ADD COMMENT
0
Entering edit mode
@mikelove
Last seen 10 hours ago
United States

The two variables you've put into the design are confounded. You can't do this for the reasons described in the vignette section referred to in the error message. You have to put independent information into the design. Use ~condition, and if you need clarification beyond the vignette section, I'd recommend to consult or collaborate with a statistician.

ADD COMMENT

Login before adding your answer.

Traffic: 569 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