Sequence decomposition