How to install Samtools using a Package Manager and Building from Source
Option 1) Using a Package Manager:
- On Ubuntu/Debian:
$ sudo apt-get update
$ sudo apt-get install samtools
- On CentOS/RedHat:
Option 2) Building from Source:
Make sure you have all the dependencies installed. You can install them by running:
$ sudo apt-get update
$ sudo apt-get install
build-essential && sudo apt-get install zlib1g-dev && sudo
apt-get install libncurses-dev && sudo apt-get install libbz2-dev
&& sudo apt-get install liblzma-dev && sudo apt-get install
&& sudo apt-get install libcurl4-openssl-dev
To install Samtools:
$ cd
path/to/installation/directory
$ git clone --recurse-submodules https://github.com/samtools/samtools.git
$ git clone --recurse-submodules https://github.com/samtools/htslib.git
$ cd samtools
$ make
$ sudo make install
Comments