How can I merge Multiple VCF files to have single header line
0
0
Entering edit mode
10.0 years ago
i.eberechi ▴ 10

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 • 4.6k views
ADD COMMENT
0
Entering edit mode

I generally use vcfcombine from vcflib.

ADD REPLY
0
Entering edit mode

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 REPLY
0
Entering edit mode
have you tried vcf-merge?
ADD REPLY
0
Entering edit mode

yes thanks it worked.

ADD REPLY

Login before adding your answer.

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