This page was last updated on Wednesday, 09-Nov-2016 21:22:48 CST
Installation notes for VCFtools version 0.1.14 Oct. 11, 2015
vcftools home Page
bcftools/htslib home page
Prerequisites
autoconf
$ sudo apt-get install autoconf
pkg-config
$ sudo apt-get install pkg-config
Installation
- $ ver="0.1.14" .tarball-version on github has version number
- $ cd /programinstallers/
- $ wget https://github.com/vcftools/vcftools/archive/master.zip
- $ mv master.zip vcftools_$ver.zip
- $ unzip vcftools_$ver.zip
- $ cd vcftools-master
- $ ./autogen.sh
- $ ./configure
- $ make
- Manual install
$ mkdir /usr/local/bin/vcftools_$ver
- $ cp -puv src/perl/* src/cpp/vcftools /usr/local/bin/vcftools_$ver/
- $ rm /usr/local/bin/vcftools_$ver/Make*
- $ chmod +x /usr/local/bin/vcftools_$ver/*
- Make a version-independent symlink
$ ln -s /usr/local/bin/vcftools_$ver /usr/local/bin/vcftools
- Fix so that perl modules can be located
$ cd /usr/local/bin
- $ ln -s /usr/local/bin/vcftools vcftools/perl
- Add to default PATH
$ sudo nano /etc/profile
...
PATH="$PATH:/usr/local/bin/vcftools"
...
export PERL5LIB="$PERL5LIB:/usr/local/bin/vcftools"
...
- Cleanup
$ cd /programinstallers
- $ rm vcftools-master -rf
- To install the bcftools/htslib VCF commands
$ git clone git://github.com/samtools/htslib.git htslib
- $ git clone git://github.com/samtools/bcftools.git bcftools
- $ cd htslib; git pull; cd .. (only if updating)
- $ cd bcftools; git pull; cd .. (only if updating)
- $ cd bcftools
- $ make
- $ make test
- Install. Samtools also has a program called bcftools, so make this
version use a different name than the samtools version
$ cp -puv bcftools /usr/local/bin/bcftools2
- Cleanup
$ cd ..
- $ rm htslib bcftools -rf