Skip to content

Commit fe30b00

Browse files
authored
Merge pull request #2706 from bernt-matthias/topic/maxbin2-container-fixes
maxbin2: add idba out/err only if present (and update bioconda recipe)
2 parents 7692788 + 6c2f261 commit fe30b00

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

tools/maxbin2/maxbin2.xml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<tool id="maxbin2" name="MaxBin2" version="@MAXBIN_VERSION@+galaxy1">
1+
<tool id="maxbin2" name="MaxBin2" version="@MAXBIN_VERSION@+galaxy2">
22
<description>clusters metagenomic contigs into bins</description>
33
<macros>
44
<token name="@MAXBIN_VERSION@">2.2.7</token>
@@ -49,16 +49,16 @@
4949
#end if
5050
-thread \${GALAXY_SLOTS:-1}
5151
52-
&& tar -xf out.marker_of_each_bin.tar.gz
52+
&& gzip -cd out.marker_of_each_bin.tar.gz | tar -xf -
5353
54-
## redirect the idba out and err file content to stdout and err
55-
## since this is also wanted in case the error case ';' is used here to
56-
## separate commands
54+
## redirect the idba out and err file content to stdout and err
55+
## since this is also wanted in case the error case ';' is used here to
56+
## separate commands
5757
#if $intype_cond.intype_select == 'rds' and $intype_cond.reassembly != ""
5858
; echo "==== IDBA stdout ===="
59-
&& cat out.idba.out
59+
&& if [[ -f out.idba.out ]]; then cat out.idba.out; fi
6060
&& echo "==== IDBA stderr ====" 1>&2
61-
&& cat out.idba.err 1>&2
61+
&& if [[ -f out.idba.err ]]; then cat out.idba.err 1>&2; fi
6262
#end if
6363
]]></command>
6464
<inputs>
@@ -142,7 +142,8 @@
142142
</data>
143143
</outputs>
144144
<tests>
145-
<test expect_num_outputs="4"><!-- test w contigs and reads as input -->
145+
<!-- test w contigs and reads as input -->
146+
<test expect_num_outputs="4">
146147
<param name="contig" value="Bin_Sample3_contigs.fasta" ftype="fasta" />
147148
<conditional name="intype_cond">
148149
<param name="intype_select" value="rds"/>

0 commit comments

Comments
 (0)