How to calculate VAF from BAM or SAM(+pileups) files using pysam?
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.)
• 2,192 views
•
link
0 answers
No answers yet.
Log in to answer this question.
Don't you need to do variant calling before you can calculate VAF?
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~
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.