Keep only reads containing good CIGAR string
Description
Keep only reads containing good CIGAR strings.
Good CIGAR strings have the following properties:
- Valid according to the SAM specifications.
- Does not start or end with deletions (with or without preceding clips).
- Does not have consecutive deletion/insertion operators.