# HG changeset patch # User iuc # Date 1679748792 0 # Node ID a2b94388d00d054cc84f34a7535e3fca7cc4508a # Parent bcaa0d571ce2ebeb05a212856291f0a70ba35b8a planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ivar/ commit 3839802e0a790cb519cffdc2d8a6b92d73e4c9ef diff -r bcaa0d571ce2 -r a2b94388d00d ivar_trim.xml --- a/ivar_trim.xml Mon Feb 13 17:28:14 2023 +0000 +++ b/ivar_trim.xml Sat Mar 25 12:53:12 2023 +0000 @@ -31,12 +31,22 @@ #end if -x $primer_pos_wiggle $inc_primers - -m $min_len + #if $trimmed_length.filter == 'off': + -m 0 + #elif $trimmed_length.filter == 'auto': + -m -1 + #else: + -m $trimmed_length.min_len + #end if -q $min_qual -s $window_width - -p trimmed && - samtools sort -@ \${GALAXY_SLOTS:-1} -o trimmed.sorted.bam trimmed.bam - ]]> + ## 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 + ]]> @@ -74,9 +84,20 @@ label="Wiggling room for read ends relative to primer binding sites" help="Reads that occur at the specified offset positions relative to primer positions (as annotated in the primer information dataset) will also be trimmed (default: 0)" /> - + + + + + + + + + + + + @@ -87,6 +108,10 @@ + + + + @@ -94,6 +119,10 @@ + + + + @@ -103,6 +132,10 @@ + + + + @@ -111,18 +144,19 @@ + + + - + - + - - - + - + @@ -130,6 +164,10 @@ + + + + @@ -141,6 +179,10 @@ + + + + @@ -186,13 +228,15 @@ specify all of them on one line and the tool will calculate the maximum extent of the amplicon. -**Quality trimming details** +**Quality trimming details and final length filtering** To do the quality trimming, iVar uses a sliding window approach. The window slides from the 5' end to the 3' end and if at any point the average base quality in the window falls below the threshold, the remaining read is soft -clipped. If after trimming, the length of the read is greater than the minimum -length specified, the read is written to the new trimmed BAM file. +clipped. + +Finally, the trimmed length threshold gets applied if specified, and fully +trimmed surviving reads are written to the BAM output. Documentation can be found at ``_. ]]> diff -r bcaa0d571ce2 -r a2b94388d00d macros.xml --- a/macros.xml Mon Feb 13 17:28:14 2023 +0000 +++ b/macros.xml Sat Mar 25 12:53:12 2023 +0000 @@ -1,11 +1,11 @@ - 1.3.2 + 1.4.0 21.01 ivar - python + python samtools