Compilation and Installation
Procedure
- Use PuTTY to log in to the server as the root user.
- Go to the BWA installation package directory.
cd /path/to/BWA
- Decompress the BWA installation package.
tar -xvf bwa-0.7.17.tar.bz2
- Go to the directory generated after the decompression.
cd bwa-0.7.17
- Obtain the SSE2NEON.h file.
git clone https://github.com/jratcliff63367/sse2neon.git
- Copy SSE2NEON.h to the installation directory of the compiler.
cp SSE2NEON.h /opt/compiler/bisheng-compiler-1.3.3-aarch64-linux/lib/clang/10.0.1/include
You need to change the compiler path based on the site requirements, and add or adjust paths strictly according to the ones described in this document. Otherwise, an error is reported.
- Modify the Makefile file of BWA.
- Modify the ksw.c file.
- Perform the compilation.
make
- Load the BWA environment.
export PATH=/path/to/BWA/bwa-0.7.17:$PATH
- Check whether the compilation is successful.
bwa
The compilation is successful if the following information is displayed:
Usage: bwa <command> [options]
Parent topic: BWA 0.7.17 Porting Guide (openEuler 21.03)