Can anyone tell me how to generate `vcf.gz` file and its index file `vcf.gz.tbi` in 1000 Genomes Project? 

<a href='ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20110521/'>ftp://ftp-trace.ncbi.nih.gov/1000genomes/ftp/release/20110521/

I have a script which does this using a VCF stream on stdin:

    #!/bin/bash

    file=$1

    bgzip >$file
    tabix -f -p vcf $file

I found I was always writing the same lines over and over when indexing VCF files.  You can use it like this:

    cat uncompressed.vcf | bgziptabix compressed.vcf.gz