get only mapped reads from bam

PHOTO EMBED

Sun May 23 2021 15:11:19 GMT+0000 (UTC)

Saved by @rezaeir #bash

samtools view -b -F 4 file.bam > mapped.bam
content_copyCOPY

https://www.biostars.org/p/56246/