DESeq2: full model matrix is less than full rank
1
0
Entering edit mode
melander • 0
@1e9b66c7
Last seen 15 months ago
Germany

Hi everyone,

I`m a bachelor student and for my bachelor thesis I need to build networks for gene expression analysis. I hardly get any support from anyone.

So I set up my DESeq2 dataset like this:

dds <- DESeqDataSetFromMatrix(countData = readcounts_bonobo,colData = coldata_Khrameeva, design = ~ brain_areal)

When I call on this I don't get any error.

This is what my coldata looks like:

This is what my coldata looks like:

Next I'm going to specify the factors for the comparison. I want to compare this 7 brain areas:

dds$brain_areal = factor(dds$brain_areal, levels = c("primary and secondary cortices","limbic and association cortices", "archicortex", "thalamus and hypothalamus", "white matter structures", "cerebellar gray matter", "striatum"))

This also works without any errors.

But when I want perform the differential expression analysis with:

dds = DESeq(dds)

I get this error:

Error in designAndArgChecker(object, betaPrior) : full model matrix is less than full rank

Is please anyone so kind to help me? I'm really desperate.

DESeq2 • 626 views
ADD COMMENT
2
Entering edit mode
ATpoint ★ 4.5k
@atpoint-13662
Last seen 1 day ago
Germany

What I see immediately is that colData has corticies while your factor definition has cortices, so this mismatch (missing "i") will generate NAs in the factor levels. It is generally not necessary to define factor levels by hand or dds$brain_areal. DESeq2 will make character columns factorial internally. You can then use contrasts (see vignette) to define any comparison you need in results().

ADD COMMENT
0
Entering edit mode

Thank you, it worked! What a dumb mistake!

ADD REPLY

Login before adding your answer.

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