Question: Tophat: Samtools not found (but dependencies are installed)
0
gravatar for daniel.heredia
4.5 years ago by
United States
daniel.heredia • 0 wrote:

Could you give some tips for solve this error, please? All dependencies are installed, and samtools is in bin/sh indeed. We don't have idea what is going wrong. We had already try to reinstall packages and dependencies, change the path and more...

----

Traceback (most recent call last):
  File "/home/biostack/galaxy-dist/lib/galaxy/jobs/runners/local.py", line 118, in queue_job
    job_wrapper.finish( stdout, stderr, exit_code )
  File "/home/biostack/galaxy-dist/lib/galaxy/jobs/__init__.py", line 963, in finish
    dataset.datatype.set_meta( dataset, overwrite=False )  # call datatype.set_meta directly for the initial set_meta call during dataset creation
  File "/home/biostack/galaxy-dist/lib/galaxy/datatypes/binary.py", line 251, in set_meta
    raise Exception, "Error Setting BAM Metadata: %s" % stderr
Exception: Error Setting BAM Metadata: /bin/sh: 1: samtools: not found

---

Thanks and regards,
Daniel.

rna-seq tophat galaxy samtools bam • 2.7k views
ADD COMMENT • link • modified 4.5 years ago by y.hoogstrate • 460 • written 4.5 years ago by daniel.heredia • 0
1

Is samtools executable? Is it also available in the $PATH where Galaxy is started? I do not think it has anything to do with the dependencies installed through the Tool Shed.
 

ADD REPLY • link written 4.5 years ago by Bjoern Gruening ♦ 5.1k

yes, samtools is executable and $PATH is available.

ADD REPLY • link written 4.5 years ago by daniel.heredia • 0
1
gravatar for y.hoogstrate
4.5 years ago by
y.hoogstrate • 460
Netherlands
y.hoogstrate • 460 wrote:

Hi Daniel,

I'm not sure what's causing this and I have to admit that it seems that it's not reachable from $PATH. Does galaxy run under the same user as the one you have configured the $PATH for? Can you solve it by just adding a symlink to "/usr/local/bin/samtools" (if that one not already exists of course)?

What you can do to resolve the problem is to (temporary) modify the TopHat wrapper by adding to its command

echo $PATH > ~/tmp_dump_1.txt ; 

which samtools > ~/tmp_dump_2.txt ;

whoami > ~/tmp_dump_3.txt ;

... remainder of tophat command code

 

And check out if the files in your Desktop confirm what you expected

ADD COMMENT • link written 4.5 years ago by y.hoogstrate • 460
Please log in to add an answer.

Help
Access

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