Allele count from BAM file
2
0
Entering edit mode
5.4 years ago
mona11224 • 0

How to get reference and alternate allele count from BAM file at a given chromosomal position?

next-gen sequencing SNP • 2.3k views
ADD COMMENT
0
Entering edit mode
5.4 years ago

ASEReadCounter

ADD COMMENT
0
Entering edit mode

I dont have VCF file have only .bam file and in that file chromosomal position is specified EX: chr12:6789007

ADD REPLY
0
Entering edit mode

If you have reference genome, generate a VCF file from your positions of interest or call SNPs from your bam file and then calculate allele counts.

ADD REPLY
0
Entering edit mode
5.4 years ago
Gabriel R. ★ 2.9k

It is one line in glactools:

glactools  bam2acf [reference].fa [iinput].bam  sampleid  |  glactools  view - |cut -f 1-3,6

In the last column, the format is REF,ALT:cpg

Be aware that it filters out reads marked as QC failed and PCR duplicates.

ADD COMMENT

Login before adding your answer.

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