DESeq2
1
0
Entering edit mode
13 months ago
t.ru ▴ 20

Hi,

I am really confused with DESeq2. I only have normal and virus samples. I would like to see upregulated genes in virus samples

dds <-DESeqDataSetFromMatrix(countData = round(count_matrix), colData = col_matrix,
                         design = ~treatment )

I set my reference level by

dds$treatment<-relevel(dds$treatment,ref="normal")

Then I set the constrast after I run the deseq2

contrast1 <- c('treatment',"normal" ,"virus")

I would like to get results for log2foldchange.

comparison_df <-results(dds, contrast = contrast1, alpha = 0.1)

Here, I get the genes I am interested as -log2foldchange values. What I know is they were supposed to be positive.

Could you help me to understand what I am doing wrong? Thank you.

log2foldchange DESeq2 • 592 views
ADD COMMENT
2
Entering edit mode
13 months ago

In DESeq2, condition treated vs untreated is calculated as log2(treated/untreated) so,

res <- results(dds, contrast=c("condition", "treated", "untreated"))

So I think in your case it should be:

contrast=c("treatment", "virus", "normal")

it the normal level is your reference level.

ADD COMMENT
0
Entering edit mode

Yes. When you specify the contrast, it doesn't matter what you set as the reference with relevel.

ADD REPLY

Login before adding your answer.

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