bcftools icon indicating copy to clipboard operation
bcftools copied to clipboard

Issue in merging several vcfs

Open sekhwal opened this issue 4 years ago • 3 comments

Hi, I installed bcftools and I ran bgzip and indexed the files using following commands. bgzip -c file1.vcf > file1.vcf.gz bcftools index file1.vcf.gz

However, once I merged using following command, terminal shows "killed". I have total 100 vcfs. bcftools merge ls *.vcf.gz -O v > merged.vcf

Please advise how to overcome.

sekhwal avatar Feb 17 '21 21:02 sekhwal

The program seems killed by your system, possibly because of low memory. Check what version of bcftools are you using. Does it work with fewer files?

By the way, you don't have to do the `ls *vcf.gz` expansion, this can be run simply as bcftools merge *.vcf.gz. Unless you are using some obscure shell, that is.

pd3 avatar Feb 18 '21 07:02 pd3

Yes! it works with 5 or less than 5 vcfs. However, once I do with more than 9 vcfs. The process is Killed.

I created an conda environment and I installed bcftools using the command: conda install bcftools. if I use bcftools --version, it shows:

bcftools 1.11 Using htslib 1.11 Copyright (C) 2020 Genome Research Ltd.

sekhwal avatar Feb 18 '21 18:02 sekhwal

What does the kernel log show you? Run cat /var/log/kern.log, if you have permission, or dmesg -k just after bcftools is killed.

valeriuo avatar Feb 19 '21 08:02 valeriuo