Hello
I aligned 108 FASTQ pairs with bwa-mem in one go, after alignment I transformed the SAMs into BAMs with samtools. I wrote the script so that I know when a pair starts and ends.
The job was completed, because I found 108 BAMs in the output directory and the script indicates that all pairs were processed.
I want to rule out the possibility that an error occured by searching for a message that could indicate that something went wrong. I am not asking for the exact message, but some string that is common and exclusive to all error messages, either for bwa-mem or samtools.
Thanks in advance
Did you redirect the output from your script to a log file?
I did this
nohup script.sh &> script.out &
Could you post a few lines from
script.out
?Beginning and end for the first pair:
By the way, for the future: You can prevent BWA from being so talky by simply modifying the BWA source code (
bwamem_pair.c
), puttingif (bwa_verbose >= 3)
in front of all lines wherefprintf
triggers these messages.E.g. line 84:
becomes:
Using bwa mem -v3 will then limit the
STDERR
messages to a necessary minimum. If you are interested, on my Git there is a version ofbwamem_pair.c
with these modifications. You'll need to recompile BWA of course.test bwa returned 0. https://bash.cyberciti.biz/guide/The_exit_status_of_a_command
Thanks, If I understood correctly, I will have to re-run the script including the exit status after bwa and samtools, did I get it right?
I would
grep
for obvious words in the log file (you already have) that can indicate problems (e.g.killed
,error
you get the idea). If the job took an expected length of time (108 samples should have taken some time) and checks noted by @ATPoint below go through then all should be well.