DEGs : finding DE genes specific for one condition
2
0
Entering edit mode
alva.james • 0
@alvajames-6967
Last seen 6.3 years ago
Germany

Hello All,

 I have an RNA-seq experiment with three conditions: A, B, and C. I combined A+B as single condition and did a DE analysis as A+B vs C and I have a set of DE genes (logFC>=1 and padj<=0.05).I want to know which genes are differentially expressed specifically in condition A+B.

I saw a using contrast for this, but i have only two conditions

results(dds, contrast=list("conditionA+B", c("conditionC")), listValues=c(1, -1/2))

I am interested to know whether the above script helps to give the list of DE genes specific for condition A+B. Can this problem be solved in one nice integrated statistical framework that also allows me to nicely rank my resulting DEGs by statistical significance?

deseq2 R rnaseq • 904 views
ADD COMMENT
2
Entering edit mode
@mikelove
Last seen 1 day ago
United States

hi Alva,

I'd set it up with condition=c("A","B","C") -- with replication obviously -- and use design=~condition.

Then to generate a comparison of (the average of A and B) vs C, you can do:

results(dds, 
        contrast=list(c("conditionA","conditionB"), 
                        "conditionC")), 
        listValues=c(1/2, -1))

Is this what you were looking for?

ADD COMMENT
0
Entering edit mode

yes, just want to amke sure I understand it right, so the dds looks as follows,

resultsNames(dds)
[1] "Intercept"    "conditionA"  "conditionB"  "conditionC"

and so adapting this,

results(dds, 
        contrast=list(c("conditionA","conditionB"), 
                        "conditionC")), 
        listValues=c(1/2, -1))

would give me those genes whch as specific to conditionA and ConditionB isnt

ADD REPLY
0
Entering edit mode
alva.james • 0
@alvajames-6967
Last seen 6.3 years ago
Germany

 

 

ADD COMMENT

Login before adding your answer.

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