我要评分
获取效率
正确性
完整性
易理解

Compilation and Installation

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Go to the installation directory of the main program.
    cd /path/to/VELVET
  3. Decompress the installation package.
    tar -xvf velvet-1.2.10.tar.gz
  4. Go to the directory generated after the decompression.
    cd velvet-1.2.10
  5. Modify Makefile.
    sed -i '1s/gcc/clang/g' Makefile
  6. Compile and install MetaVelvet.
    make 'CATEGORIES=10' 'MAXKMERLENGTH=57' 'LONGSEQUENCES=1' 'OPENMP=1' 'BUNDLEDZLIB=1'

    After the compilation is complete, two executable files, Velveth and Velvetg, are generated.

  7. Load the environment variable.
    export PATH=`pwd`:$PATH
  8. Go to the MetaVelvet installation directory.
    cd contrib/MetaVelvet-v1.2.01/
  9. Modify Makefile.
    sed -i '1s/gcc/clang/g' Makefile
    sed -i '2s/g++/clang++/g' Makefile
    sed -i "3s%$% -I../../third-party/zlib-1.2.3/%g" Makefile
  10. Compile and install MetaVelvet.
    make 'CATEGORIES=10' 'MAXKMERLENGTH=57'
  11. Load the environment variable.
    export PATH=`pwd`:$PATH