It is easy to get allele frequency for a site (mutation/snp etc.) from a bam file. How do we get the allele frequency of a gene (in some metric) from a .bam file, like dominant allele frequency of a gene, for instance? Any advice from population genetics people here? Thanks!
I'm not sure if that even makes sense. Can you elaborate on what you mean?
I think I mean beta allele frequency like they compute in CNVs (FREEC, for instance).