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

Compiling and Installing FASTA

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Decompress the installation package.
    tar -xvf fasta36-36.3.8h_04-May-2020.tar.gz
    unzip sse2neon-master.zip
  3. Go to the directory generated after the decompression.
    cp sse2neon-master/sse2neon.h /path/to/FASTA/fasta36-36.3.8h_04-May-2020/src/
    cd /path/to/FASTA/fasta36-36.3.8h_04-May-2020/make
  4. Modify the Makefile.linux64_sse2 file.
    1. Open Makefile.linux64_sse2.
      vim Makefile.linux64_sse2
    2. Press i to enter the insert mode and modify the file as follows:
      13 SHELL=/bin/bash
      14
      15 CC = gcc -g -O2 -march=armv8.2-a
      16 LIB_DB=
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  5. Go to the src directory.
    cd ../src
  6. Modify the smith_waterman_sse2.c file.
    1. Open smith_waterman_sse2.c.
      vim smith_waterman_sse2.c
    2. Press i to enter the insert mode and modify the file as follows:
      23 #include "sse2neon.h"
      24 #endif
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  7. Modify the global_sse2.c file.
    1. Open global_sse2.c.
      vim global_sse2.c
    2. Press i to enter the insert mode and modify the file as follows:
      21 #else
      22 #include "sse2neon.h"
      23 #endif
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  8. Modify the glocal_sse2.c file.
    1. Open glocal_sse2.c.
      vim glocal_sse2.c
    2. Press i to enter the insert mode and modify the file as follows:
      21 #else
      22 #include "sse2neon.h"
      23 #endif
    1. Press Esc, type :wq!, and press Enter to save the file and exit.
  9. Perform the compilation and installation.
    make -f ../make/Makefile.linux64_sse2
  10. Go to the data directory.
    cd /path/to/FASTA/fasta36-36.3.8h_04-May-2020/data