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-1.10.tar.bz2
- Run the following command to switch to the directory generated after the package is decompressed:
cd samtools-1.10
- Run the following command to perform installation:
yum install -y bzip2-devel bzip2-libs bzip2
- Run the following command to perform configuration:
./configure --prefix=/path/to/SAMTOOLS
- Run the following commands to perform compilation and installation:
make all all-htslib make install install-htslib
- Run the following commands to set the Samtools environment variables:
export PATH=/path/to/SAMTOOLS/bin:$PATH export LD_LIBRARY_PATH=/path/to/SAMTOOLS/lib:$LD_LIBRARY_PATH
Parent topic: Configuring the Compilation Environment