Keep only reads whose mate maps to the same contig or is unmapped

Description

Keep only reads that have a mate that maps to the same contig (RNEXT is “=”), is single ended (not 0x1) or has an unmapped mate (0x8).

See MappedReadFilter for criteria defining an unmapped read.

See additional information in the following pages: