Hello,
So I have filtered the results of my DeSEq2 using the lfcThreshold parameter so that I can preserve the meaning of the FDR/padj. The code is as follows:
Code should be placed in three backticks as shown below
# using the lfcthreshold
res1=results(dds,name="a_vs_b",alpha = 0.05, lfcThreshold = 0.585)
summary(res1)
out of 16397 with nonzero total read count
adjusted p-value < 0.05
LFC > 0.58 (up) : 242, 1.5%
LFC < -0.58 (down) : 290, 1.8%
outliers [1] : 1, 0.0061%
low counts [2] : 0, 0%
(mean count < 3)
sessionInfo( )
but when I check the dimension of the res1 it is larger 16397 X 6 (not containing genes corresponding to the lfcThreshold and alpha).
So, I tried to use the filtering on res1 , using
# using the lfcthreshold
nrow(subset(res1,res1$log2FoldChange >=1.5,padj <= 0.05))
[1] 114
This is less than the 242 genes which seem to have met the criteria, How do i fetch the result using the lfc value as specified in the summary function?
Hello,
I do understand the lfcthreshold is doing more than the filtering, I am trying to understand how I can access the genes which are output when I run :
So I just want to output the 242 genes in a seperate list. If i save the results of:
So my results already has the calculated value of the test which i provided i.e lfcthreshold and althypothesis? because the test_results has all the genes.
So should do post filtering on my DESeq2 object test which shows the result? Is this different from the post filtering which many people do (minus the lfcThreshold argument)
Thanks
results
doesn't filter the table. You should filter usingsubset
on thepadj
.