Skip to content

[Bioc-devel] R: Re: Deseq2 and differentia expression

3 messages · jarod_v6 at libero.it, Michael Love, Simon Anders

#
Dear Dr,
Thanks so much for clarification!!!
So I try the test of log fold change but I'm bit confusion on the results:
If I interested in the genes that have a foldchange more than 0.5 and 2 I need 
to use this comand is it right?
ddsNoPrior <- DESeq(ddHTSeq, betaPrior=FALSE) #only for lessABs

resGA <- results(ddsNoPrior, lfcThreshold=.5, altHypothesis="lessAbs") 
#greater tdi 
resGA2 <- results(dds, lfcThreshold=.5, altHypothesis="greaterAbs") #greater 
tdi 
resGA3 <- results(dds, lfcThreshold=2, altHypothesis="greaterAbs") #greater 
tdi 

dim(resGA)
[1] 62893     6
[1] 62893     6
[1] 62893     6

The number of gene select it is always the same.. Where is my mistake!
thanks in advance!
wrote:
fileName=metadata$NOME,
#
:
4.320.0
#
hi Jarod,

This is more of a main Bioc mailing list question, so you can address
future questions there.
On Fri, Jul 11, 2014 at 6:05 AM, jarod_v6 at libero.it <jarod_v6 at libero.it> wrote:
the second and third results() commands below give you this.
DESeq2 returns the results for all the genes in the same order as the
original object. You need to specify a threshold on adjusted p-value.

table(res$padj < 0.1)

You can use subset(res, padj < 0.1) to filter the DataFrame.
#
Hi Jarod

Mike overlooked one point in your question
On 11/07/14 12:05, jarod_v6 at libero.it wrote:
DESeq2 reports al fold changes on a log2 scale. So your limits of 0.5 
and 2 for unlogarithmized fold changes translate to -1 and +1 on the 
log2 scale (because 2^(-1)=0.5 and 2^1 = 1, with '^' meaning 'to the 
power of').

Also, the 'lfcThreshold' parameter wants an _absolute_ log fold change. 
Hence, you want:

ddsNoPrior <- DESeq(ddHTSeq, betaPrior=FALSE)
res <- results(ddsNoPrior, lfcThreshold=1, altHypothesis="greaterAbs")

to get a list of all genes with an absolute log2 fold change greater 
than 1, i.e., all genes with a log2 fold change greater than 1 or less 
than -1, i.e., all genes with fold change below 0.5 or above 2.

Then, in the results table, look at the log2FoldChange column to see 
which genes went up and which went down.

   Simon