Rate This Document
Findability
Accuracy
Completeness
Readability

Installing Samtools

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Run the following command to decompress the Samtools installation package:
    tar -xvf samtools-1.10.tar.bz2
  3. Run the following command to switch to the directory generated after the package is decompressed:
    cd samtools-1.10
  4. Run the following command to perform installation:
    yum install -y bzip2-devel bzip2-libs bzip2
  5. Run the following command to perform configuration:
    ./configure --prefix=/path/to/SAMTOOLS
  6. Run the following commands to perform compilation and installation:
    make all all-htslib
    make install install-htslib
  7. 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