Repository 'fasta_filter_by_length'
hg clone https://toolshed.g2.bx.psu.edu/repos/devteam/fasta_filter_by_length

Changeset 3:e626b3ff9922 (2019-12-17)
Previous changeset 2:2fd6033d0e9c (2017-07-20) Next changeset 4:8cacfcf96a52 (2020-03-01)
Commit message:
"planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/fasta_filter_by_length commit 66d6c3cbb835114dc80e61216756e90da156f6d6"
modified:
fasta_filter_by_length.py
fasta_filter_by_length.xml
added:
test-data/fasta_tool_filter_length_2.out
b
diff -r 2fd6033d0e9c -r e626b3ff9922 fasta_filter_by_length.py
--- a/fasta_filter_by_length.py Thu Jul 20 13:49:07 2017 -0400
+++ b/fasta_filter_by_length.py Tue Dec 17 13:13:32 2019 -0500
b
@@ -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
b
diff -r 2fd6033d0e9c -r e626b3ff9922 fasta_filter_by_length.xml
--- a/fasta_filter_by_length.xml Thu Jul 20 13:49:07 2017 -0400
+++ b/fasta_filter_by_length.xml Tue Dec 17 13:13:32 2019 -0500
b
@@ -22,6 +22,12 @@
  <param name="max_length" value="0" />
  <output name="output" file="fasta_tool_filter_length_1.out" />
  </test>
+ <test>
+ <param name="input" value="4.fasta" />
+ <param name="min_length" value="0" />
+ <param name="max_length" value="60" />
+ <output name="output" file="fasta_tool_filter_length_2.out" />
+ </test>
  </tests>
  <help>
 
b
diff -r 2fd6033d0e9c -r e626b3ff9922 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 13:13:32 2019 -0500
b
@@ -0,0 +1,2 @@
+>EYKX4VC01B65GS length=54 xy=0784_1754 region=1 run=R_2007_11_07_16_15_57_
+CCGGTATCCGGGTGCCGTGATGAGCGCCACCGGAACGAATTCGACTATGCCGAA