Calculate Genotype quality from the PL
1
0
Entering edit mode
9.5 years ago
stat.1405 ▴ 30

I have an output of the call variants, VCF format.

I do not have the genotype quality (GQ) which is in the Format section. I have just the likelihood of the genotype (PL).

So, How can I calculate the genotype given the likelihood PL.

for example GT:PL:DP 1/0:255,0,255:62 how can I get the GQ?

Thanks

next-gen alignment SNP • 4.4k views
ADD COMMENT
1
Entering edit mode
9.5 years ago

unphred(0) / (unphred(0) + unphred(255) + unphred(255)). You example isn't ideal as it is pretty as perfect as a call gets.

ADD COMMENT
1
Entering edit mode

Good, changing from phred score to unphred is 10^(-Q/10)

10^(-0/10)/10^(-0/10)+10^(-255/10)+10^(-255/10) = GQ is this correct

ADD REPLY
0
Entering edit mode

Missing parentheses

fraction(best score)(sum of unphred all scores)

ADD REPLY

Login before adding your answer.

Traffic: 1877 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