BD2KGenomics / toil-scripts

Toil workflows for common genomic pipelines
Apache License 2.0
33 stars 18 forks source link

Error Messages from BWAkit Invocations are not retained in worker.log #432

Closed alex-hancock closed 8 years ago

alex-hancock commented 8 years ago

Hannes will explain. Error message: ERROR: failed to locate the BWA index. Please run '/opt/bwa.kit/bwa index -p /data/ref.fa ref.fa'.

hannes-ucsc commented 8 years ago

So it seems that BWA (or our bwa image) does not always return a non-zero status code in error conditions, for example when it can't find the reference index. We got the error message above when running the docker container for BWA manually without having index files present on disk. The exit code was 0.

Talking to @alex-hancock and @jvivian made me realize that we already handle cases like this because the job function would fail soon after the BWA invocation, trying to upload a non-existent output file. Closing.