edited chain peak detection (preliminary)