Identifying sequence patterns