samtools reads 过滤
2021-05-23 本文已影响0人
wangsb_2020
Filter Alignments for unmapped pairs
- An unmapped read whose mate is mapped.
samtools view -u -f 4 -F264 alignments.bam > tmps1.bam
- A mapped read who’s mate is unmapped.
samtools view -u -f 8 -F 260 alignments.bam > tmps2.bam
- Both reads of the pair are unmapped.
samtools view -u -f 12 -F 256 alignments.bam > tmps3.bam