Samtools tricks
Count mapped reads
samtools view -F 0X04 <bam>
Print uniquely mapped reads
samtools view -bq 1 <bam>
Print reversely mapped reads
samtools view -f 0X10 <bam>
Print reversely mapped reads in certain range
samtools view -f 0X10 <bam> chrI:XXX-XXX
Welcome to the University Wiki Service! Please use your IID (yourEID@eid.utexas.edu) when prompted for your email address during login or click here to enter your EID. If you are experiencing any issues loading content on pages, please try these steps to clear your browser cache.