Installing Samtools
Procedure
- Use PuTTY to log in to the server as the root user.
- Run the following command to decompress the Samtools installation package:
tar -xvf samtools-0.1.9.tar.bz2
- Run the following command to switch to the directory generated after decompression:
cd samtools-0.1.9
- Run the following command to install the dependencies:
yum install xz-devel-5.2.2-1.el7.aarch64 bzip2-devel-1.0.6-13.el7.aarch64 ncurses-devel.aarch64 -y
- Run the following command to perform the configuration:
./configure --prefix=/path/to/SAMTOOLS
- Run the following commands to perform the compilation:
make make install
- Run the following command to set the Samtools environment variables:
export PATH=/path/to/SAMTOOLS/bin:$PATH
- Run the following command to check whether the installation is successful:
samtools
If information similar to the following is displayed, the installation is successful:
Program: samtools (Tools for alignments in the SAM format) Version: 0.1.9 (r183) Usage: samtools <command> [options]
Parent topic: Configuring the Compilation Environment