Extracting descriptive metrics from variant reads in BAM
1
0
Entering edit mode
7.2 years ago
ognjen011 ▴ 290

Hello all!

I would like to extract the following descriptive metrics from BAM:

  • mean base quality
  • mapping quality
  • mean position in read for variant reads

I would like to go through a VCF and find those metrics for variant-supporting reads directly from BAM. I can do it using pysam, but I was wondering if there is an out-of-the-box solution that is ready and perhaps computationally more efficient. Any help is welcome!

Thanks in advance!

P.S. I also know that VarDict Java does it for candidate locations, but sometimes I need it for locations not recognized by VarDict's algorithm. But in general, such an output (TSV) would be perfect.

SNP BAM • 1.6k views
ADD COMMENT
1
0
Entering edit mode

Thanks for the advice! Many of these are actually very useful, but I still wonder - is there a way to get mean BQ, MQ and position, and not the results of the rank sum test?

ADD REPLY

Login before adding your answer.

Traffic: 1331 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6