Rate This Document
Findability
Accuracy
Completeness
Readability

Installing Samtools

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Use an SFTP tool to upload the Samtools installation package to the /path/to/SAMTOOLS directory on the server.
  3. Run the following command to decompress the installation package:
    cd /path/to/SAMTOOLS && tar -zxf samtools-1.11.tar.gz
  4. Run the following command to go to the installation directory:
    cd samtools-1.11
  5. Run the following commands to perform the configuration:
    autoheader
    autoconf
    sed -i 's/\-O2/\-O3 -march=armv8.2-a -mtune=tsv110/g' `grep -lr "\-O2" ./`
    CC=`which gcc` ./configure --prefix=/path/to/SAMTOOLS --with-htslib=/path/to/HTSLIB
  6. Run the following commands to perform the compilation and installation:
    make -j 16
    make install