I'd like to get a fasta file of haplotypes from 1000 genomes.
I ran the commands below:
tabix -h ftp://ftp.1000genomes.ebi.ac.uk/vol1/ftp/release/20110521/ALL.chr17.phase1_release_v3.20101123.snps_indels_svs.genotypes.vcf.gz 17:1471000-1472000 | perl vcf-subset -c HG00098 | bgzip -c > HG00098.vcf.gz
tabix -p vcf HG00098.vcf.gz
cat ref.fa | vcf-consensus HG00098.vcf.gz > HG00098.fa
but got error massages,
[tabix] the index file is older than the vcf file. Please use '-f' to overwrite or reindex.
Can't open perl script "vcf-subset": No such file or directory
And when I tried to install vcf-tools, I got
E: Unable to locate package vcf-tools
How can I run these commands successfully?
My machine is Ubuntu 64 bit on Win7.0.