Log2FoldChange and normalized count values are not consistent?
2
1
Entering edit mode
Karla ▴ 10
@78b8b8bb
Last seen 2.3 years ago
United States

Hello!

I am relatively new to using DESeq2 and was wondering if anyone could help me explain why there is a discrepancy between my normalized counts and the log2FoldChange in the results. Basically, my normalized counts show that a specific gene (dptA and dptB in the example) should be downregulated in my treatment, however, the DESeq results shows a Log2FoldChange which is greater than 0. Below you can find the normalized counts as well as the results from the code below.

Normalized Counts

DESeq2 results

coldata <- data.frame(row.names=colnames(countdata), condition)
coldata
dds <- DESeqDataSetFromMatrix(countData=countdata, colData=coldata, design=~condition)
dds

# Run the DESeq2 pipeline
# Get differential expression results

dds <- DESeq(dds)
keep <- rowSums(counts(dds)) >= 10
dds <- dds[keep,]
res<-results(dds,alpha=0.05)
summary(res)
## Write results, Table containing the significantly differential expressed genes
write.table(res,"DESeq2_resuls.txt",sep="\t",col.names=NA)
DESeqResults<-read.table("DESeq2_resuls.txt",sep="\t",header=T)
Normalization DESeq2 • 2.1k views
ADD COMMENT
2
Entering edit mode
ATpoint ★ 4.5k
@atpoint-13662
Last seen 1 day ago
Germany

These kinds of questions come up regularily and usually it is because either the counts one compares with are not (properly) normalized or there is something wrong with the factor levels of our condition. Check the column of the colData that is relevant and ensure that the correct entry is set as reference level. Also be sure to use counts(dds, normalized=TRUE) to get the norm counts and be sure to use the correct coef or contrast during the results() step. Do you only have two groups here?

ADD COMMENT
0
Entering edit mode

Hello! Thank you so much, turns out the factor levels were being alphabetically ordered changing the order of my treatment and control. GFP being the control and D6 being the treatment got swapped and the program thought that D6 was the control. I fixed it and everything looks correct now.

ADD REPLY
1
Entering edit mode
swbarnes2 ★ 1.4k
@swbarnes2-14086
Last seen 1 day ago
San Diego

Just make your life easier... Specify the contrast you want in the results call.

ADD COMMENT

Login before adding your answer.

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