How to change the default P value and FDR cutoff in DiffBind
3
1
Entering edit mode
4.5 years ago
bright602 ▴ 50

Hi, I would like to know how to change the default P value and FDR cutoff in DiffBind if I use DBA_DESEQ2 for the differential analysis? Thanks a lot!

ChIP-Seq R • 2.5k views
ADD COMMENT
1
Entering edit mode
4.5 years ago
e.rempel ★ 1.1k

Hi,

p-value cutoff is specified in the entry dba.object$config$th. You can directly change it

dba.object$config$th <- .01
ADD COMMENT
1
Entering edit mode
4.5 years ago

The th and fold parameters in the dba.report function are what you need to tweak.

ADD COMMENT
0
Entering edit mode
2.8 years ago
FatihSarigol ▴ 260

By default the threshold is set with FDR, so changing the th value will change the FDR threshold. To use p-value instead, use this option after generating your object using dba

MyDbaObject$config$bUsePval <- TRUE

same way you can also change the p-value threshold next

MyDbaObject$config$th <- 0.01

then continue the analysis with normalizing and reading the counts etc.

ADD COMMENT

Login before adding your answer.

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