Is there a quick way to get allele read depth for all possible alleles say from bam or mpileup?
10 101023 . A G,T 220 . DP=35;VDB=0.0407;AF1=1;AC1=2;DP4=0,0,14,11;MQ=43;FQ=-99 GT:PL:GQ 1/1:253,72,0,247,52,244:99
2 89159986 . T A,C 193 . DP=52;VDB=6.418245e-02;AF1=1;AC1=2;DP4=0,0,29,23;MQ=23;FQ=-181 GT:PL:DP:SP:GQ 1/1:226,154,0,211,122,208:52:0:99
one possiblity is to parse the mpileup output?.
Sorry, are capital (A,T,G,C) and lower case (a,t,g,c) mean maternal and paternal? Could you give a example have to use this script?
@juncheng: Capital letters represent forward strand and lower case represents reverse strand.
@Rm. Hi. Sometimes your script does not match the depth count in the vcf. For example,
using above script:
21+ 33 sums to 54 reads from your script, whereas in vcf it shows DP=55. May I know if it is a bug or I am missing something?
edit:
I re-read your post, your script is to parse DP4 field. But even in that cases, sometimes the sum does not match DP4 count. For example,
from your script, It matches DP but not DP4: