Question: How can i merge Multiple VCF files to have single header line
gravatar for i.eberechi
5.9 years ago by
i.eberechi10 wrote:

Hello Everyone,


I am working on VCF file format to upload them in an integrated platform. It demands that multiple entries of vcf file to be joined as a single file. i succeeded in doing that using vcftools along with bgzip and tabix tools for indeying and zipping. However, the merged file has several header and not one header..

Does anyone know how i may merge multiple VCF file to have only one header and not multiple(equivalent to the number of individual files)..


Thank you in advance..

snp genome • 3.0k views
ADD COMMENTlink modified 5.8 years ago by Biostar ♦♦ 20 • written 5.9 years ago by i.eberechi10

I generally use vcfcombine from vcflib.

ADD REPLYlink written 5.9 years ago by Jonathan Dursi270

ah thanks..i discovered the problem was the command i used. i had to include echo else the merged file will have an incorrect format. thanks for the answer.. at least i have an alternative option.

ADD REPLYlink written 5.9 years ago by i.eberechi10
have you tried vcf-merge?
ADD REPLYlink written 5.8 years ago by Irsan7.2k

yes thanks it worked.

ADD REPLYlink written 5.2 years ago by i.eberechi10
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1777 users visited in the last hour