Given a bed file with ranges of peaks and corresponding BAM file, can we identify the apex of each peak.
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.