tfmodisco-lite icon indicating copy to clipboard operation
tfmodisco-lite copied to clipboard

Center peak regions at summit in `modisco seqlet-bed`

Open austintwang opened this issue 1 year ago • 1 comments

Chrombpnet defines the peak center as start + summit, not the midpoint between start and end. It would be good to make write_bed_from_h5 consistent with this convention.

https://github.com/jmschrei/tfmodisco-lite/blob/d6716a56c407040e73f48cf0662a432035e4fde2/modiscolite/io.py#L349C1-L350C1

So absolute_peak_center = int(peak_row[1]) + int(peak_row[9]) instead

austintwang avatar Oct 06 '23 17:10 austintwang