I am trying to find out how bowtie mapq field is computed:
From the bowtie manual:
If an alignment is non-repetitive (according to -m, --strata and other options) set the MAPQ (mapping quality) field to this value. See the SAM Spec for details about the MAPQ field Default: 255.
If i map data with, for example, -m 10, i am allowing up to 10 multiple hits per read. How is the reported SAM mapq number connected with the number of multiple hits of an alignment? If a read has a single hit (from the manual), mapq = 255. If a read has 5 multiple hits, mapq=?
SAM documentation doesn't tell me anything more (only that it is phread-scaled):
MAPping Quality (phred-scaled posterior probability that the mapping position of this read is incorrect)
In the end i would like to do something like this:
samtools view -q 100 result.sam (filter out results with mapq <100)
tnx for any help,
Gregor
From the bowtie manual:
If an alignment is non-repetitive (according to -m, --strata and other options) set the MAPQ (mapping quality) field to this value. See the SAM Spec for details about the MAPQ field Default: 255.
If i map data with, for example, -m 10, i am allowing up to 10 multiple hits per read. How is the reported SAM mapq number connected with the number of multiple hits of an alignment? If a read has a single hit (from the manual), mapq = 255. If a read has 5 multiple hits, mapq=?
SAM documentation doesn't tell me anything more (only that it is phread-scaled):
MAPping Quality (phred-scaled posterior probability that the mapping position of this read is incorrect)
In the end i would like to do something like this:
samtools view -q 100 result.sam (filter out results with mapq <100)
tnx for any help,
Gregor
Comment