Skip to content

Commit

Permalink
Update ivar to 1.4.2 (galaxyproject#5253)
Browse files Browse the repository at this point in the history
Allows piping data from ivar trim into samtools sort.
  • Loading branch information
wm75 authored Apr 19, 2023
1 parent ce8ee43 commit 51d6565
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions tools/ivar/ivar_trim.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,7 @@
#end if
-q $min_qual
-s $window_width
## since v1.4 ivar trim *almost* supports piping its output, but
## unfortunately still writes *some* regular messages to stdout,
## so we need to stick writing to an intermediate file for now and
## want to unify the output stream
-p trimmed 1>&2 &&
samtools sort -@ \${GALAXY_SLOTS:-1} -T "\${TMPDIR:-.}" -o trimmed.sorted.bam trimmed.bam
| samtools sort -@ \${GALAXY_SLOTS:-1} -T "\${TMPDIR:-.}" -o trimmed.sorted.bam -
]]></command>
<inputs>
<param name="input_bam" argument="-i" type="data" format="bam" label="Bam file" help="Aligned reads, to trim primers and quality"/>
Expand Down
2 changes: 1 addition & 1 deletion tools/ivar/macros.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<macros>
<token name="@TOOL_VERSION@">1.4.0</token>
<token name="@TOOL_VERSION@">1.4.2</token>
<token name="@PROFILE@">21.01</token>
<xml name="requirements">
<requirements>
Expand Down

0 comments on commit 51d6565

Please sign in to comment.