# HG changeset patch # User devteam # Date 1576606391 0 # Node ID 70e730a51307076105780b53d81be727eb85ed14 # Parent b9d17598aca02795071d61fb8909dcd6820aee39 "planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/fasta_filter_by_length commit 66d6c3cbb835114dc80e61216756e90da156f6d6" diff -r b9d17598aca0 -r 70e730a51307 fasta_filter_by_length.py --- a/fasta_filter_by_length.py Thu Jul 20 13:48:53 2017 -0400 +++ b/fasta_filter_by_length.py Tue Dec 17 18:13:11 2019 +0000 @@ -38,7 +38,7 @@ tmp_buf = line tmp_size = 0 else: - if max_length == 0 or tmp_size < max_length: + if max_length == 0 or tmp_size <= max_length: tmp_size += len(line.rstrip('\r\n')) tmp_buf += line # final flush of buffer diff -r b9d17598aca0 -r 70e730a51307 fasta_filter_by_length.xml --- a/fasta_filter_by_length.xml Thu Jul 20 13:48:53 2017 -0400 +++ b/fasta_filter_by_length.xml Tue Dec 17 18:13:11 2019 +0000 @@ -22,6 +22,12 @@ + + + + + + diff -r b9d17598aca0 -r 70e730a51307 test-data/fasta_tool_filter_length_2.out --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/fasta_tool_filter_length_2.out Tue Dec 17 18:13:11 2019 +0000 @@ -0,0 +1,2 @@ +>EYKX4VC01B65GS length=54 xy=0784_1754 region=1 run=R_2007_11_07_16_15_57_ +CCGGTATCCGGGTGCCGTGATGAGCGCCACCGGAACGAATTCGACTATGCCGAA