Rate This Document
Findability
Accuracy
Completeness
Readability

Compiling and Installing Velvet

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Run the following command to create a main program installation directory:
    mkdir -p /path/to/VELVET
  3. Run the following command to copy the installation package to the main program installation directory:
    cp velvet_1.2.10.tgz /path/to/VELVET
  4. Run the following command to go to the main program installation directory:
    cd /path/to/VELVET
  5. Run the following command to decompress the installation package:
    tar -xvf velvet-1.2.10.tar.gz
  6. Run the following command to go to the directory generated after the decompression:
    cd velvet-1.2.10
  7. Run the following commands to set the number of threads and the thread limit:
    export OMP_NUM_THREADS=96
    export OMP_THREAD_LIMIT=95
    • OMP_NUM_THREADS: specifies the number of threads, which is equal to the number of CPU cores.
    • OMP_THREAD_LIMIT: specifies the thread limit, which is equal to the number of CPU cores minus 1.
  8. Run the following command to modify the Makefile file:
    sed -ri 's/\-m64/\-mabi=lp64/g' Makefile
  9. Run the following command to compile and install the software:
    make 'GATEGORIES=10' 'MAXKMERLENGTH=57' 'LONGSEQUENCES=1' 'OPENMP=1' 'BUNDLEDZLIB=1'

    After the compilation is complete, two executable files are generated: velveth and velvetg.