thank you for your replying!
• 0 views
•
link
Hello, l am a starter.I used hisat2 to generate a sam file and have extracted unmapping reads. l want to extract reads with a mapping quality lower than 10.My instructor reminded me to think about how to get the mapping quality.but I don't know how to extract it. Thanks for your help.
For example use sambamba:
sambamba view -c -F "mapping_quality < 10" --sam-input -f sam -o filtered.sam in.sam
https://lomereiter.github.io/sambamba/docs/sambamba-view.html
thank you for your replying!
Log in to answer this question.
samfile is a text file and one of the columns codes for map qualities. Filter the data by map quality column and validate with standard tools such as samtools.