Installing BWA
Prerequisites
You have downloaded the sse2neon.h file from https://github.com/DLTcollab/sse2neon/blob/master/sse2neon.h.
Procedure
- Use PuTTY to log in to the server as the root user.
- Run the following command to decompress the BWA installation package:
tar -xvf bwa-0.7.17.tar.bz2
- Run the following command to switch to the directory generated after decompression:
cd bwa-0.7.17
- Run the following command to modify the Makefile file:
- Open Makefile.
vi Makefile
- Press i to enter the insert mode and modify lines 1 and 14 of the file.
CC= /path/to/GNU/bin/gcc INCLUDES= -I/path/to/GNU/gcc/include
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open Makefile.
- Modify the ksw.c file.
- Open ksw.c.
vi ksw.c
- Press i to enter the insert mode and modify lines 29 and 30 of the file.
/*#include <emmintrin.h>*/ #include <sse2neon.h>
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open ksw.c.
- Run the following command to copy the Neon instruction conversion code to a specific directory of the compiler:
cp sse2neon.h /path/to/GNU/gcc/include
- Run the following command to perform the compilation:
make
- Run the following command to set the BWA environment variables:
export PATH=/path/to/BMA/bwa-0.7.17:$PATH
- Run the following command to check whether the installation is successful:
bwa
If information similar to the following is displayed, the installation is successful:
bwa <command> [options]
Parent topic: Configuring the Compilation Environment