Skip to content

Commit

Permalink
Workaround for gzip support breaking on Galaxy 16.01
Browse files Browse the repository at this point in the history
See galaxyproject/tools-iuc#1373
which was fixed and back-ported to Galaxy 16.07,
galaxyproject/galaxy#4224
galaxyproject/galaxy#4230

This would still break with other non-compressed FASTA
subclasses, but this is intended as a stop-gap until
the last few elderly Galaxy servers in use are updated.
  • Loading branch information
peterjc committed Oct 23, 2018
1 parent 935d782 commit c42e1f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tools/ncbi_blast_plus/ncbi_macros.xml
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@
<token name="@THREADS@">-num_threads "\${GALAXY_SLOTS:-8}"</token>

<token name="@QUERY@"><![CDATA[
#if $query.is_of_type('fasta.gz'):
#if $query.is_of_type('fasta.gz') and $query.ext != "fasta":
-query <(gunzip -c '${query}')
#else:
-query '${query}'
Expand All @@ -580,7 +580,7 @@
#elif $db_opts.db_opts_selector == "histdb":
-db '${os.path.join($db_opts.histdb.extra_files_path, "blastdb")}'
#else:
#if $db_opts.subject.is_of_type('fasta.gz'):
#if $db_opts.subject.is_of_type('fasta.gz') and $db_opts.subject.ext != "fasta":
-subject <(gunzip -c '${$db_opts.subject}')
#else:
-subject '${db_opts.subject}'
Expand Down
2 changes: 1 addition & 1 deletion tools/ncbi_blast_plus/ncbi_makeblastdb.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ python $__tool_directory__/check_no_duplicates.py
##into a single cat command below
cat
#for i in $input_file:
#if $i.is_of_type('fasta.gz'):
#if $i.is_of_type('fasta.gz') and $i.ext != "fasta":
<(gunzip -c ${i})
#else:
${i}
Expand Down

0 comments on commit c42e1f6

Please sign in to comment.