I'm trying to develop a Galaxy tool that has samtools 1.5 as a dependency, but nothing I declare in the "<requirements>" section succeeds in putting a working samtools on my PATH when the tool is executed by Galaxy.
With
<requirement type="package" version="1.5">samtools</requirement>
I get
samtools: error while loading shared libraries: libbz2.so.1.0: cannot open shared object file: No such file or directory
With
<requirement type="binary" version="1.5">samtools</requirement>
I get
Fatal error: Exit code 127 () ... /shared/000/399/tool_script.sh: line 9: samtools: command not found
Neither python-module
or set_environment
are appropriate here, and there are no other permitted values for requirement.type
.
I know I'm not writing the first tool that has samtools as a dependency. How is this supposed to work?