How to change the design DESeqDataSet to calculate log2foldChange in different way?
1
0
Entering edit mode
17 months ago
Amr ▴ 160

How to change the design DESeqDataSet to calculate log2foldChange in different way? for example the log fold change condition: Normal vs Mutated, How to make it Mutated vs Normal?

countdata2<- subset(countdata, select=c("WM793_rep1","WM793_rep2","NHEM_rep1", "NHEM_rep2"))

coldata2<data.frame("condition"=as.factor(c(rep("Mutated",2),rep("Normal",2))),row.names=colnames(countdata2))

dds2 <- DESeqDataSetFromMatrix(countData = countdata2, colData =coldata2,design = ~condition )

dds2 <- DESeq(dds2)

Thanks in advance

design DESeqDataSetFromMatrix condition DESeq2 • 513 views
ADD COMMENT
2
Entering edit mode
17 months ago
Amr ▴ 160

The answer is to add contrast parameter and add the desired ordering :

results(dds3,contrast = c("condition","Mutated","Normal"))

ADD COMMENT

Login before adding your answer.

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