how to merge sets of multi-vcf files
1
0
Entering edit mode
3.5 years ago
Ahmed Alhendi ▴ 230

Hi,

I am trying to merge ~ 10,000 of vcf files into one vcf file, and I run to bcftools merge but it failed (segmentation fault) due to the large number of vcf files which I guess it is a software limitation. Then I tried to do so as batchs of 2000 vcf files at a time, which just worked fine, results in five sets of multi-vcf files (2000 samples each).

The question is how can I combine these multi-vcf files into one large multi-vcf file?

Any advice and suggestions will be greatly appreciated.

SNP genome alignment next-gen • 995 views
ADD COMMENT
1
Entering edit mode
3.5 years ago
Ram 43k

After this batch operation, you have 5 files with 2000 samples each, correct? Have you tried using bcftools merge on these 5 files? Maybe the limitation was on the number of files, not on the number of samples.

ADD COMMENT
0
Entering edit mode

Thanks for your quick reply. It actually works!

ADD REPLY
0
Entering edit mode

You're welcome. Please click on the green check mark to accept my answer and mark your question as resolved.

ADD REPLY

Login before adding your answer.

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