This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Obtaining Quality score of the mapped sequences - BBMap

Hi,

I am new to BBMap, so I kindly request to help me to find the **quality score of the mapped sequences. I also want to increase the quality score of the mapped sequence.

Thanks Madhu

alignment

Are you referring to alignment scores (MAPQ values, column 5)? Those are in the SAM/BAM files. Otherwise this question is missing what it is you are looking for.

thanks, I want the MAPQ value. Any idea of the command to get the MAPQ value using SAMtool.

What will you do with standalone MAPQ values? You could do something like samtools view test.bam | awk -F "\t" '{print $5}' OR awk -F "\t" '{print $5}' your_file.sam

thanks a lot, I just want to retrieve the value and increase the value to test the BBMap application.

missing ' after

awk -F "\t" '{print $5}

Added to post above and here awk -F "\t" '{print $5}' your_file.sam

You guys sure there's not a sam/bamtools cmd that straight up does this? I did my alignment using BWA. I could loop through my 23 whole-genome bam files doing this, but It's gonna be real slow...

the original question is somewhat undefined. What is the purpose of extracting the mapping quality?

If one wanted to filter alignment by a minimal score this can be done with

samtools view -q 10 myfile.bam

where

 -q INT   only include reads with mapping quality >= INT [0]

0 answers

No answers yet.

Log in to answer this question.