Hello,
I am trying to merge 1200 WGS VCF files (around 9 GB each) using bcftools. I want to merge them by chromosome to make the output files easier to work with.
I am using an HPC cluster with 156 threads and 1to RAM, but I’m not sure how to optimize the resources to make the merging process faster. I used parallel but it didnt work as i get this error.
"Could not load local index file 'path/to/file.tbi' : Too many open files"
Even when I ran bcftools for a single chromosome, I got the same error message.
Any advice on how to resolve this issue and optimize resource usage would be greatly appreciated!
Thank you,
Thank you all! I adjusted the ulimit, and it worked perfectly.