SEQ_TO_IDX
int idx = SEQ_TO_IDX(sequence);
sh = agg->start_idx - SEQ_TO_IDX(seq_ctl >> 4);
idx = SEQ_TO_IDX(seq);