How to get peaks summit using dba.peakset
1
0
Entering edit mode
Udi Landau ▴ 30
@udi-landau-9726
Last seen 4.3 years ago

Hi,

I cannot find the way to get the coordination for the summits of my peaks.

I added the summit option to the dba.count and I am looking at the dba.peakset documentation and cannot figure out how to get the data..

Is there a way to get the summits of the peaks together with the differential affinity data when using dba.report?

Thanks

diffbind • 861 views
ADD COMMENT
1
Entering edit mode
Rory Stark ★ 5.2k
@rory-stark-5741
Last seen 13 days ago
Cambridge, UK

You can get the summit coordinates for the full binding matrix by setting the score to DBA_SCORE_SUMMIT_POS. Here's how to do it using the example dataset:

data(tamoxifen_analysis)
tamoxifen <- dba.count(tamoxifen, peaks=NULL, score=DBA_SCORE_SUMMIT_POS)
summitCoordinates <- dba.peakset(tamoxifen, bRetrieve=TRUE)

If you want the summits for the differentially bound sites only, here's a snippet that will accomplish that:

DBreport <- dba.report(tamoxifen)
DBsites <- as.integer(names(DBreport))
summitCoordinates[DBsites,]

 

ADD COMMENT
0
Entering edit mode

Thank you for your quick reply! 

I see that I get the summits for each replicate.

How can I get the summit of the consensus peaks?.

I tried to add the argument 'consensus = -DBA_REPLICATE' to the dba.peakset command but it didn't change the output. 

When I think of it.. is there one peak that represent all the replicates or am I getting it wrong?

ADD REPLY

Login before adding your answer.

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