Hi guys,

So I've been trying to `bgzip` around 100 VCF files in parallel, but although the jobs are submitted and files get created there's definitely something wrong.

So far I've been trying:

    $ for file in *.vcf
    > do
    > bsub /foo/bar/bgzip $file
    >> $file.gz

What is the correct way to do this?

Thanks in advance!

Use [GNU parallel][1]

    parallel bgzip {} ::: *.vcf

or `xargs`:

    ls *.vcf | xargs -P 10 bgzip

 [1]: http://www.gnu.org/software/parallel/