Hoping for some help here.
I am having issues with several mapping tools that utilize samtools and I think I have finally identified some commonality between the errors. I will list the errors below. I suspect my issue is something with samtools, however if I look under "Mange Dependencies" all of these tools show the samtools dependency resolved by Conda and actually each mapper uses different versions of samtools. It seems all of the mappers are able to do their thing but after the mapping when the tool attempts to sort the output using samtools "sort" that is when the errors are thrown and the jobs cannot be completed. Help is greatly appreciated as I have several users waiting for me to fix this issue. Any ideas on this or perhaps a location in the file structure I can look at for more information?
HiSat2:
Fatal error: Exit code 139 ()
sort: invalid option -- '@'
sort: invalid option -- 'l'
[bam_header_read] invalid BAM binary header (this is not a BAM file).
[bam_sort_core] truncated file. Continue anyway.
(ERR): hisat2-align died with signal 13 (PIPE)
/data/galaxy/galaxy/database/jobs_directory/000/86/tool_script.sh: line 41: 8799 Exit 1 hisat2 -p ${GALAXY_SLOTS:-1} -x '/data/galaxy/galaxy/tool-data/hg38/hisat2_index/hg38/hg38' -f -U 'input_f.fasta'
8800 Segmentation fault (core dumped) | samtools sort - -@ ${GALAXY_SLOTS:-1} -l 6 -o '/data/galaxy/galaxy/database/files/000/dataset_131.dat'
BWA-Mem:
Fatal error: Exit code 141 ()
sort: invalid option -- '@'
sort: invalid option -- '1'
sort: invalid option -- 'O'
open: No such file or directory
[bam_sort_core] fail to open file bam
HTSeq:
Fatal error: Unknown error occured
sort: invalid option -- '-'
sort: invalid option -- 'u'
sort: invalid option -- 't'
sort: invalid option -- 'p'
sort: invalid option -- 'u'
sort: invalid option -- 't'
sort: invalid option -- '-'
sort: invalid option -- 'f'
open: No such file or directory
[bam_sort_core] fail to open file name_sorted_alignment.sam
[Errno 2] No such file or directory: 'name_sorted_alignment.sam'
[Exception type: IOError, raised in count.py:42]
Samtools Sort:
Also throws an error and does not complete but there is no error message.
Can you reproduce this at a public server (try Galaxy Main https://usegalaxy.org)? Or is this only occurring on your local?
If can reproduce at Main, please send in a bug report and include a link to this post in the comments.
If you cannot, would you confirm that your server is running Galaxy version 18.01 and the most current version of the mappers (installed from the ToolShed)?
I cannot reproduce these errors on the public server. This problem is only occurring on our local. We are indeed running version 18.01 of Galaxy. Here are the versions of the tools as shown in "Manage Dependencies":
I'm not sure if this helps or is related but I see this information on the running log that I keep open when I start our Galaxy server: