Question: Error: "Samtools not found" on a local Galaxy when running other jobs
gravatar for djevo1
2.2 years ago by
djevo160 wrote:

I attempted to run a job using HISAT2 on galaxy and in the console it shows samtools not found, however the job finishes with a completed bam file. The issue is that galaxy marks the job with an error as unable to finish, even though it did successfully. Do I need to install samtools in the galaxy share for my cluster or is there another issue I may be having? Below is the last call.

Traceback (most recent call last):
  File "/mnt/VDisk/galaxy_production/galaxy/lib/galaxy/jobs/runners/", line 609, in finish_job
    job_state.job_wrapper.finish( stdout, stderr, exit_code )
  File "/mnt/VDisk/galaxy_production/galaxy/lib/galaxy/jobs/", line 1274, in finish
    dataset.datatype.set_meta( dataset, overwrite=False )
  File "/mnt/VDisk/galaxy_production/galaxy/lib/galaxy/datatypes/", line 355, in set_meta
    exit_code = args=command, stderr=open( stderr_name, 'wb' ) )
  File "/usr/lib64/python2.7/", line 524, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/lib64/python2.7/", line 711, in __init__
    errread, errwrite)
  File "/usr/lib64/python2.7/", line 1327, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
ADD COMMENTlink modified 2.2 years ago by Jennifer Hillman Jackson25k • written 2.2 years ago by djevo160
gravatar for y.hoogstrate
2.2 years ago by
y.hoogstrate460 wrote:

The hisat2 wrapper uses samtools for sorting the BAM file:

However, it looks like this is - yet another - samtools dependency that galaxy needs to actually do the same (sorting, and indexing):

This requires that galaxy has access to samtools in its $PATH before starting up the Galaxy server.

I believe you need samtools 0.1.19 for this and not 1.* because the samtools sort commandline interface has changes and is not backwards compatible anymore.

At some point this should work out of the box and Galaxy should take care of this dependency automatically ( ) but for now just make sure it's available in $PATH

ADD COMMENTlink modified 2.1 years ago • written 2.2 years ago by y.hoogstrate460
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 173 users visited in the last hour