This page was last updated on Tuesday, 25-Jun-2019 16:03:28 CDT
Installation notes for samtools version 1.2, BCFtools version 1.2, and HTSlib version 1.2.1
Home Page
Prerequisites
None
Installation
- $ cd /programinstallers/
- $ vers="1.2"; verb="1.2"; verh="1.2.1"
- $ wget -N https://github.com/samtools/htslib/releases/download/$verh/htslib-$verh.tar.bz2
- $ wget -N https://github.com/samtools/samtools/releases/download/$vers/samtools-$vers.tar.bz2
- $ wget -N https://github.com/samtools/bcftools/releases/download/$verb/bcftools-$verb.tar.bz2
- $ tar -jxvf htslib-$verh.tar.bz2 && tar -jxvf samtools-$vers.tar.bz2 && tar -jxvf bcftools-$verb.tar.bz2
- To allow coexistence with version 0.xx series of samtools, version 1.x files will be installed in a separate location
$ mkdir /usr/local/bin/samtools1
- $ cd htslib-$verh
- $ make
- $ make prefix=/usr/local/bin/samtools1 install
- $ cd ../samtools-$vers
- $ make
- $ make prefix=/usr/local/bin/samtools1 install
- $ cd ../bcftools-$verb
- $ make
- $ make prefix=/usr/local/bin/samtools1 install
- $ cd ..
- Cleanup
$ rm samtools-$vers bcftools-$verb htslib-$verh -rf
- Plugin configuration
$ sudo nano /etc/profile
…
export BCFTOOLS_PLUGINS=/usr/local/bin/samtools1/libexec/bcftools
…