]> git.donarmstrong.com Git - biopieces.git/commitdiff
changed report_scores to max_hits in findsim.rb
authormartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Wed, 18 Apr 2012 09:07:10 +0000 (09:07 +0000)
committermartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Wed, 18 Apr 2012 09:07:10 +0000 (09:07 +0000)
git-svn-id: http://biopieces.googlecode.com/svn/trunk@1801 74ccb610-7750-0410-82ae-013aeee3265d

code_ruby/lib/maasha/findsim.rb

index 6c794e3696c4ec08d298a317ef699b453a37b918..f7a811b17240a3b38b7c8d5a5ef0e458ba49792a 100644 (file)
@@ -137,8 +137,8 @@ class FindSim
       zero_ary_c(hit_ary, HIT_ARY_MAX * BYTES_IN_HIT)
       hit_ary_size = get_hits_c(@result, @result_count, hit_index, hit_ary, q_index)
 
-      if @opt_hash[:report_scores]
-        max = (hit_ary_size > @opt_hash[:report_scores]) ? @opt_hash[:report_scores] : hit_ary_size
+      if @opt_hash[:max_hits]
+        max = (hit_ary_size > @opt_hash[:max_hits]) ? @opt_hash[:max_hits] : hit_ary_size
       else
         max = hit_ary_size
       end