Given a bed file with range of peaks, is it possible to identify the summit of the peak
3
0
Entering edit mode
5.4 years ago

Hello,

Given a bed file with ranges of peaks and corresponding BAM file, can we identify the apex of each peak.

Example:

bed file:

chr1 100 175

chr1 220 235

For first peak 'chr1 100-175' the apex of the peak could be at chr 1 140.

Given the BAM file and bed file, can I get the position of summit for each peak.

Would anyone suggest some trick.

Thanks Adrian.

RNA-Seq • 1.9k views
ADD COMMENT
0
Entering edit mode

Hi Adrian, did you find a solution to your problem? I am looking for a code to solve the same scenario you mentioned.

Thanks.

ADD REPLY
1
Entering edit mode
5.4 years ago

MACS2 has a refinepeak command that can do this in a more intelligent way than just grabbing the max.

ADD COMMENT
1
Entering edit mode
5.4 years ago

Thanks Jared.

I just found another solution by Pierre. However, that just gives the coverage at the summit but not the position of that summit on chromosome.

Identifying The 'Summit' Coordinate Within Many Coordinates In A Wig File?

ADD COMMENT
1
Entering edit mode
5.4 years ago

Maybe the DNase I hotspot calling algorithm here would be of use:

https://github.com/Altius/hotspot2

Hotspot2 counts reads in a BAM file with a sliding window over the genome and identifies "hot" regions of interest, i.e. peaks of fixed or variable widths, with statistical scores that can be used for ranking or other testing.

ADD COMMENT

Login before adding your answer.

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