How to calculate VAF from BAM or SAM(+pileups) files using pysam?
0
0
Entering edit mode
3 months ago
askif4 ▴ 10

I assume pysam is a tool for BAM, SAM file.

But since the official document is a bit hard to understand. I am having difficulties calculating VAF values with pysam.

If you could suggest to me some scripts or documents, it would be grateful.

Thank you.

(It would be better if the method is restricted to using mainly pysam; not pysamstats.)

SNP sequencing bam VAF pysam • 223 views
ADD COMMENT
1
Entering edit mode

Don't you need to do variant calling before you can calculate VAF?

ADD REPLY
0
Entering edit mode

I already have the location of the mutations, which means I have VCF files from BAM files I know that there are other methods to calculate VAF(using VCF files), even if it is not efficient, I want to use pysam. Thanks~

ADD REPLY
0
Entering edit mode

I see. Thanks for the update. I don't know how to calculate VAF using pysam - others on the forum might be able to help you.

ADD REPLY

Login before adding your answer.

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