DESEQ2 colData object
1
0
Entering edit mode
Bine ▴ 40
@bine-23912
Last seen 1 day ago
UK

Dear all,

I have the following question: Imagine I have colData (Metadata) with Gender, Age and City.

Now the city could be New York, Paris, Florida.

For my Differential Expression Analysis on city I only want to use the city Paris and Florida.

If I create my code I wonder how I can filter colData before applying this:

dds <- DESeqDataSetFromMatrix(countData = cts, colData = colData, design = ~ Age + City)

Thank you very much, Bine


Additional question: Is there a way i could also put Paris + Florida together and do a Differential Expression against New York? Thank you!

DESeq2 • 600 views
ADD COMMENT
2
Entering edit mode
swbarnes2 ★ 1.3k
@swbarnes2-14086
Last seen 11 hours ago
San Diego

In general, put all your samples in the dds object, so that all the samples are used for library normalization and dispersion estimates. When you call results, you can use contrasts to specify what to compare to what.

You can combine cities together either by making a list in contrasts, or by making a new column of ColData which groups the samples the way you want. See this answer:

DESeq2 comparison two cell types and two genotypes

ADD COMMENT
0
Entering edit mode

Thank you very much. I posted in the other chat regarding my additional question, I am struggling a bit to combine the 2 cities / or diagnosis (in other example).

ADD REPLY

Login before adding your answer.

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