This is a test version of Biostars. For the public version, visit https://www.biostars.org.
What Is The Expected Size Of A Whole Genome Vcf And Bcf?

Say we take a 40x whole human genome BAM file of HiSeq reads (~100GB), call variants but do not annotate further, and create a VCF with every position called (even if that position matches the reference genome), then compress. How big will the VCF and BCF files be?

(this question pre-dated gVCFs but is left here for archival purposes)

vcf

Do I understand this correctly? Every base in reference genome needs to be a line in a VCF file?

VCF file can have more than one patient in it, are you talking a single patient? If more, then it will affect the size.

yes that is true. To give some background, this question was asked because we are facing many 'ref or no coverage' mysteries in our trios when samples are called individually. I was wondering if a viable solution is simply to call all positions.

1 answer

Under the assumption that each line will similar to this one:

chr1    249250621    .    A    A    22    PASS        0/0

This means each line uses at max 45 bytes. Times length of human genome this makes VCF file of maximum size around 125GB. Size of the header is not used in the calculation since it's insignificant compared to the rest of the file.

I don't know much about the BCF format and the effects of compression. A wild guess from the would be that the compression will reduce size of the file under 30GB.

Log in to answer this question.