This is a test version of Biostars. For the public version, visit https://www.biostars.org.
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.)

snp sequencing bam vaf pysam

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.

0 answers

No answers yet.

Log in to answer this question.