This is a test version of Biostars. For the public version, visit https://www.biostars.org.
how to get the best alignment from the sam file

I want to choose a single “best” alignment to include in the ultimate SAM output . how can l choose the alignment with the highest mapq scores?

rna-seq alignment

You could filter the bam file by mapq score.

samtools view -h -q 20 file.bam

0 answers

No answers yet.

Log in to answer this question.