Fatal error: exit code 1 () using bowtie2




I am using bowtie2 for mapping of paired-end fastq files. However, I keep getting the error message as:

fatal error: exit code 1 ()
[bam_sort_core] merging from 0 files and 6 in-memory blocks…

I don’t understand what is the problem here. I have used bowtie2 before for a different set of fastq files and it worked fine.
Please help.



Hello, I see the bug report you sent in. Am reviewing, feedback soon.


Ok, the fastq data formatting is the problem.

Compare the successful runs (with correct fastq formatting) and the two unsuccessful runs (with incorrect formatting for the forward reads, each).

Those forward reads should be reprocessed in the same way that the reverse reads were. It looks like the source data is slightly different between the forward/reverse reads for the failed jobs. The reverse reads were sourced/prepped the same as both the forward/reverse reads in the successful Bowtie2 job.

The data prep/trimming is being done outside of Galaxy, before Upload. SRA reads can also be extracted directly and QA steps done all within Galaxy as an alternative.

Tool choices to get SRA reads:

  • NCBI SRA Tools > Download and Extract Reads in FASTA/Q format from NCBI SRA
  • Get Data > EBI SRA (use the “Galaxy” fastq links)

Basic read QA in Galaxy is covered in the first tutorial, with more in the many of the analysis-specific tutorials from the Galaxy Training Network (GTN):

Reference Post: Troubleshooting resources for errors or unexpected results


Thank you Jennifer. I will review my processing steps and see if there is some mistake. Thank you for your help.