hey guys, I'm really confused how samtools calls the consensus sequence:
I've generated the sorted and indexed *.bam file. First I generated the pileup of a 100bp region:
I'm pasting the interested bases here:
Obviously positions 6269061 and 6269062 are two SNPs that should be called, and here's the command I entered for consensus calling:
which produces:
It is the same BAM file I'm using, why are the read qualities at these positions differ so much?
PS: the upstream and downstream SNPs all get called properly, also, the mapping qualities of concerning reads are like 29-60, with no Repeat alignments
I've generated the sorted and indexed *.bam file. First I generated the pileup of a 100bp region:
Code:
samtools view -u 07_bam/HM020.bam chr1:6,269,001-6,269,100 | samtools pileup -f genome.fa -
Code:
chr1 6269058 A 11 ,,.,.,,,,,. FEHHH5BHH%H chr1 6269059 A 11 ,,.,.,,,,,. F:FHH8@HH%H chr1 6269060 T 11 ,,.,.,,,,,. F9HBH48IC%H chr1 [COLOR="Red"]6269061[/COLOR] T 13 ccCcCcccccC^]C^]c [COLOR="RoyalBlue"]FEIHH<=HH%HD@[/COLOR] chr1 [COLOR="Red"]6269062[/COLOR] C 13 ttTtTtttttTTt [COLOR="RoyalBlue"]EFHDH;4GF@HD9[/COLOR] chr1 6269063 G 15 ,,.,.,,,,,..,^>,^>, H:GBH@:HF>H.>?E chr1 6269064 T 15 ,,.,.,,,,,..,,, H;H=I:<IDAHD4;? chr1 6269065 C 15 ,,.,.,,,,,..,,, HEHFH/<HGBHB7?C chr1 6269066 C 15 ,,.,.,,,,,..,,, HADFH>@HH8HF>?C
Code:
samtools view -u 07_bam/HM020.bam chr1:6,269,001-6,269,100 | samtools pileup -f genome.fa [COLOR="Red"]-c[/COLOR] -
Code:
chr1 6269058 A A 57 0 50 11 ,,.,.,,,,,. F@HHH5BHH%H chr1 6269059 A A 57 0 50 11 ,,.,.,,,,,. F:FHH8@HH%H chr1 6269060 T N 0 0 0 11 ,,.,.,,,,,. &&&&&),&&%& chr1 [COLOR="Red"]6269061[/COLOR] T N 0 0 0 13 ccCcCcccccC^]C^]c [COLOR="RoyalBlue"]!!!!!$(!!%!!![/COLOR] chr1 [COLOR="Red"]6269062[/COLOR] C C 15 0 15 13 ttTtTtttttTTt [COLOR="RoyalBlue"]!!!!!$(!!0!!![/COLOR] chr1 6269063 G G 72 0 48 15 ,,.,.,,,,,..,^>,^>, H:GBH@:HF>H.<?E chr1 6269064 T T 72 0 48 15 ,,.,.,,,,,..,,, H;H=I:<IDAHD4;? chr1 6269065 C C 72 0 48 15 ,,.,.,,,,,..,,, HEHFH/<HGBHB7?C chr1 6269066 C C 72 0 48 15 ,,.,.,,,,,..,,, HADFH>@HH8HF>?C
PS: the upstream and downstream SNPs all get called properly, also, the mapping qualities of concerning reads are like 29-60, with no Repeat alignments

Comment