I'm curious if bam_readcount is sensitive to the quality score encoding (phred+33 vs phred+64). I've run across a situation in which bam_readcount calculates the average quality score at a given position, but if you look at the actual pileup file at that position, the average quality score is very different (for example, bam_readcount calculates the average quality as 12, whereas the bamfile shows the quality scores being >70). I'm curious if the quality score encoding could cause this discrepancy.