def _summarize_peaks(peaks):
previous = peaks[<NUM_LIT:0>]<EOL>new_peaks = [previous]<EOL>for pos in peaks:<EOL><INDENT>if pos > previous + <NUM_LIT:10>:<EOL><INDENT>new_peaks.add(pos)<EOL><DEDENT>previous = pos<EOL><DEDENT>return new_peaks<EOL>
merge peaks position if closer than 10