From 501f90a21e11379ee2eaa02e244c2826a18750a0 Mon Sep 17 00:00:00 2001 From: martinahansen Date: Tue, 14 Aug 2012 13:24:45 +0000 Subject: [PATCH] fixed mean_scores to deal with 0 length seqs git-svn-id: http://biopieces.googlecode.com/svn/trunk@1893 74ccb610-7750-0410-82ae-013aeee3265d --- bp_bin/mean_scores | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bp_bin/mean_scores b/bp_bin/mean_scores index adc80bc..6e1ee59 100755 --- a/bp_bin/mean_scores +++ b/bp_bin/mean_scores @@ -92,7 +92,7 @@ options = Biopieces.options_parse(ARGV, casts) Biopieces.open(options[:stream_in], options[:stream_out]) do |input, output| input.each_record do |record| - if record[:SEQ] and record[:SCORES] + if record[:SEQ] and record[:SCORES] and record[:SEQ].length > 0 entry = Seq.new_bp(record) if options[:local] -- 2.39.2