Exporting differential peak sets, based on fold change and FDR
1
0
Entering edit mode
rbronste ▴ 60
@rbronste-12189
Last seen 5.1 years ago

Hi,

I have a list of differentially bound sites between conditions and would like to export lists defined by 2 things: fold change between some positive or negative value given the condition and specific FDR cutoffs. If anyone has advice on how to go about this would be huge help, thanks so much! 

Rob

diffbind • 702 views
ADD COMMENT
0
Entering edit mode
Rory Stark ★ 5.2k
@rory-stark-5741
Last seen 5 weeks ago
Cambridge, UK

In DiffBind, the main way to export lists of differentially bound sites is via the dba.report() function. You can specify a maximum FDR value, as well as a minimal fold change (in log2 form). You can retrieve the data as a GRanges object or a dataframe, and you can export it in a csv file using the file parameter.

You can also retrieve all the data by setting th=1, then use R to filter what you want. For example:

> data(tamoxifen_analysis)
> tamData <- dba.report(tamoxifen,th=1)
> tamData[tamData$FDR<.01,]
> tamData[tamData$Fold>1,]

-Rory

ADD COMMENT

Login before adding your answer.

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