Entering edit mode
8.0 years ago
Bogdan
★
1.4k
Dear all,
please could you advise : given a (tumor) BAM file and a (germline) VCF file, what tool shall i use in order to extract the Allele Read Counts for each heterozygous SNP (from the vcf file) ?
many thanks,
-- bogdan
Depending on the variant caller you are using. For some of them you will see the following two fields under
FORMAT
column:The easiest way to do this is to extract the sites using bcftools view -v snps -g het. You can add -m2 -M2 if you are only interested in biallelic site. Then you can use allelecounter.py (https://github.com/secastel/allelecounter) to extract the read counts at ref and alt allele.
thank you for your suggestions ;)