From: martinahansen Date: Tue, 14 Aug 2012 13:16:36 +0000 (+0000) Subject: changed trim_seq to omit outputting sequences with length 0 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=8b91c9da5ee088cb5996140a6a59e7fede239b87;p=biopieces.git 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 --- 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