Hi Michael
I would like to focus only on genes with fold-change greater than 2 and I also would like to decrease FDR a bit, to 5%. I initially tried:
> res <- results( dds ); > subset( res , padj <= 0.05 & abs(log2FoldChange) >= 1 );
but than I tried adding alpha and lfcThreshold into to results function:
> res <- results( object = dds, alpha = 0.05, lfcThreshold = 1 ); > subset( res , padj <= 0.05 & abs(log2FoldChange) >= 1 )
I was expecting both to give the same result but I was shocked when I figure out that my gene list decreased from 696 to 153 genes. Is it because fold-change filter is integrate into p-values calculation? I guess you recommend using the second option once this thresholds will also be incorporated in the independent filtering step, right?
Thanks
Thank you so much for the response. This was really quick!