Hi guys, maybe someone already asked the same but I looked around without success. I have a list of bam files resulting from bwa-mem. I would like to extract the list of scores (quality) of each bam in order to look at the quality of each sample (in order to do some statistics). I also would like to know the min and max of the scores for each bam. I tried to use samtools pileup but it generates a file with a lot of information I do not want and also I don't know how to extract the list of scores. Can anyone help me please?
Thank you in advance
You are talking about mapping quality?
Yes MAPQ number. Eg: 60
Those should be in column
5. A combination ofsamtools viewwith cutting that column out should give you that info. Find the min and max after sorting the file. Should all be possible with (awk, cut, sort, uniq).