changeset 3:e626b3ff9922 draft

"planemo upload for repository https://github.com/galaxyproject/tools-devteam/tree/master/tools/fasta_filter_by_length commit 66d6c3cbb835114dc80e61216756e90da156f6d6"
author devteam
date Tue, 17 Dec 2019 13:13:32 -0500
parents 2fd6033d0e9c
children 8cacfcf96a52
files fasta_filter_by_length.py fasta_filter_by_length.xml test-data/fasta_tool_filter_length_2.out
diffstat 3 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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
@@ -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
--- 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
@@ -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>
 
--- /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
@@ -0,0 +1,2 @@
+>EYKX4VC01B65GS length=54 xy=0784_1754 region=1 run=R_2007_11_07_16_15_57_
+CCGGTATCCGGGTGCCGTGATGAGCGCCACCGGAACGAATTCGACTATGCCGAA