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

Troubleshooting

Failure 1: An Error Occurs During the Bowtie Installation

Symptom

When running the make command to perform compilation during Bowtie installation, an error occurs. The error message is "narrowing conversion of '-1' from 'int' to 'char' inside { } [-Wnarrowing]".

Possible Causes

There is a narrowing conversion error.

Procedure

Run the following commands to modify the alphabet.cpp file:
  1. Open alphabet.cpp.
    vi /path/to/BOWTIE/bowtie-1.2.3/alphabet.cpp
  2. Press i to enter the insert mode and modify line 276 of the file.
    Before the modification:
    char mask2iupac[16] = {...}
    After the modification:
    signed char mask2iupac[16] = {...}
  3. Press Esc, type :wq!, and press Enter to save the file and exit.