Output SAM mapped reads
samtools view -f 2 mapping.sorted.bam | cut -f1 | sort | uniq
samtools view -F 2 mapping.sorted.bam | cut -f1 | sort | uniq
samtools view -F 4 -f 64 mapping.sorted.bam | cut -f1 | sort | uniq
samtools view -F 4 -f 128 mapping.sorted.bam | cut -f1 | sort | uniq
samtools view -f 68 mapping.sorted.bam | cut -f1 | sort | uniq
samtools view -f 72 mapping.sorted.bam | cut -f1 | sort | uniq