I've mapped my reads using BWA but when I looked at them on IGV, they all have a mapping quality of 0. All of them. I don't think they have multiple possible matches because when I have Blasted a handful, they all have only one match. I think they are mapped correctly because when I look at my polymorphisms, they all match known polymorphisms in the database.
But obviously I cannot do any variant calling on reads with a mapping quality of 0.
This is the script I have used:
bwa mem -t 16 $path/to/ref_genome.fa $path/to/s1_S1100619_1P.fq.gz $path/to/s1_S1100619_2P.fq.gz > s1_S1100619_aln_pe.sam
Any ideas why this might have happened?
Show a few lines of your SAM file, there is other information in the SAM file that can help tracking down the reasons that an alignment is reported a certain way.
See the
XA
tags there in the first alignment? That tag indicates that the read has a secondary alignment onchrX
at position108691208
(reverse):check whether this is a universal problem.
Actually, I just realized this is the same as the position reported for the main alignment - that kind of makes no sense. Is it possible that you have
chrX
listed twice in your reference genome? Or the indexing was done incorrectly?Yes, it looks as though they are all listed for the same position twice. I wonder if it because I have accidentally put two reference genomes in the same directory???
Every alignment is reported as a multiple alignment to itself. Indicates some sort of data problem