[Samtools-help] samtools mpileup -- error status 141

2014-11-13 Thread Karel Břinda
Hello, I observe a strange problem and I am not able to find out what is the exact reason of it. When I use samtools mpileup | another_program, samtools return error code 141. Everything else is OK (pileup is well created, all data are well processed). I observe it when I use set -o pipefail. The

Re: [Samtools-help] samtools mpileup -- error status 141

2014-11-13 Thread John Marshall
On 13 Nov 2014, at 12:23, Karel Břinda karel.bri...@gmail.com wrote: I observe a strange problem and I am not able to find out what is the exact reason of it. When I use samtools mpileup | another_program, samtools return error code 141. When a Unix shell reports that a command has an exit

Re: [Samtools-help] samtools mpileup -- error status 141

2014-11-13 Thread Karel Břinda
Hello, thanks a lot for this excellent answer. Thanks to it I found where originally the problem started. So as I realized, it appeared only with FASTA files containing space in the first line (i.e., with a sequence description). The program mentioned in my previous e-mail as another_program