From 8b91c9da5ee088cb5996140a6a59e7fede239b87 Mon Sep 17 00:00:00 2001 From: martinahansen Date: Tue, 14 Aug 2012 13:16:36 +0000 Subject: [PATCH] changed trim_seq to omit outputting sequences with length 0 git-svn-id: http://biopieces.googlecode.com/svn/trunk@1891 74ccb610-7750-0410-82ae-013aeee3265d --- bp_bin/trim_seq | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bp_bin/trim_seq b/bp_bin/trim_seq index d6c1a09..eab60c0 100755 --- a/bp_bin/trim_seq +++ b/bp_bin/trim_seq @@ -51,9 +51,11 @@ Biopieces.open(options[:stream_in], options[:stream_out]) do |input, output| end record.merge! entry.to_bp - end - output.puts record + output.puts record if entry.length > 0 + else + output.puts record + end end end -- 2.39.2