]> git.donarmstrong.com Git - biopieces.git/commitdiff
fixed mean_scores to deal with 0 length seqs
authormartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Tue, 14 Aug 2012 13:24:45 +0000 (13:24 +0000)
committermartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Tue, 14 Aug 2012 13:24:45 +0000 (13:24 +0000)
git-svn-id: http://biopieces.googlecode.com/svn/trunk@1893 74ccb610-7750-0410-82ae-013aeee3265d

bp_bin/mean_scores

index adc80bc350abbba30de1d3d649ee61805d746c13..6e1ee59803b8ca95e90abdc5a5aa9af44380ee1a 100755 (executable)
@@ -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]