vcf to bcf conversion
1
0
Entering edit mode
14 months ago
solarchan7 • 0

I want to convert a .vcf.gz file into .bcf (compressed) form;

I tried the following command:

bcftools view file.vcf.gz -Ob -o file.bcf

however, when I check the converted .bcf file, I got the header showing:

##fileformat=VCFv4.2

shouldn't the fileformat be BCF?

Thank you.

vcf bcftools bcf • 623 views
ADD COMMENT
2
Entering edit mode
14 months ago
GenoMax 141k

File format specification is Variant Call Format (VCF).

BCF is a binary representation of VCF files (section 6 from format spec doc above) :

BCF2 is a binary, compressed equivalent of VCF that can be indexed with tabix and can be efficiently decoded from disk or streams.

and

The “text” field contains the standard VCF header lines in text format, from ##fileformat=VCFv4.3 to #CHROM ... inclusive, terminated by a NUL character.

ADD COMMENT
0
Entering edit mode

thank you!

ADD REPLY

Login before adding your answer.

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