Compiling and Installing Velvet
Procedure
- Use PuTTY to log in to the server as the root user.
- Run the following command to create a main program installation directory:
mkdir -p /path/to/VELVET
- Run the following command to copy the installation package to the main program installation directory:
cp velvet_1.2.10.tgz /path/to/VELVET
- Run the following command to go to the main program installation directory:
cd /path/to/VELVET
- Run the following command to decompress the installation package:
tar -xvf velvet-1.2.10.tar.gz
- Run the following command to go to the directory generated after the decompression:
cd velvet-1.2.10
- 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.
- Run the following command to modify the Makefile file:
sed -ri 's/\-m64/\-mabi=lp64/g' Makefile
- 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.
Parent topic: Velvet 1.2.10 Porting Guide (CentOS 7.6)