we are getting the following error when running bismark with -p 2(or any other value greater than 2)
Segmentation fault (core dumped)
(ERR): bowtie2-align exited with value 139
This error is raise by bowtie2, which does not stpo the bismark program from running.
The error is not recorded in the bismark final output, only appear in console log.
The error occurs at an unknown stage of bowtie2, which results in a corrupted bam file. The bismark will try
to process this corrupted bam file regardless, which may or may not go into problem, depending on where the bam file is corrupted.
The problem can be recreated by using the sargasso test sample file:
The temp solution is to NOT specify the -p parameter of bismark, which will restrict the bowtie2 run to be single thread.
This is currently hard coded in the _map_readsbisulfite script.
biamark help page RE -p
-p NTHREADS Launch NTHREADS parallel search threads (default: 1). Threads will run on separate processors/cores
and synchronize when parsing reads and outputting alignments. Searching for alignments is highly
parallel, and speedup is close to linear. Increasing -p increases Bowtie 2's memory footprint.
E.g. when aligning to a human genome index, increasing -p from 1 to 8 increases the memory footprint
by a few hundred megabytes. This option is only available if bowtie is linked with the pthreads
library (i.e. if BOWTIE_PTHREADS=0 is not specified at build time). In addition, this option will
automatically use the option '--reorder', which guarantees that output SAM records are printed in
an order corresponding to the order of the reads in the original input file, even when -p is set
greater than 1 (Bismark requires the Bowtie 2 output to be this way). Specifying --reorder and
setting -p greater than 1 causes Bowtie 2 to run somewhat slower and use somewhat more memory then
if --reorder were not specified. Has no effect if -p is set to 1, since output order will naturally
correspond to input order in that case.
we are getting the following error when running bismark with -p 2(or any other value greater than 2)
This error is raise by bowtie2, which does not stpo the bismark program from running. The error is not recorded in the bismark final output, only appear in console log.
The error occurs at an unknown stage of bowtie2, which results in a corrupted bam file. The bismark will try to process this corrupted bam file regardless, which may or may not go into problem, depending on where the bam file is corrupted.
The problem can be recreated by using the sargasso test sample file:
The temp solution is to NOT specify the -p parameter of bismark, which will restrict the bowtie2 run to be single thread. This is currently hard coded in the _map_readsbisulfite script.
biamark help page RE -p