From: martinahansen Date: Wed, 18 Apr 2012 09:07:10 +0000 (+0000) Subject: changed report_scores to max_hits in findsim.rb X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=d49df627987b312ace8828276fd1494e2f06c85b;p=biopieces.git changed report_scores to max_hits in findsim.rb git-svn-id: http://biopieces.googlecode.com/svn/trunk@1801 74ccb610-7750-0410-82ae-013aeee3265d --- diff --git a/code_ruby/lib/maasha/findsim.rb b/code_ruby/lib/maasha/findsim.rb index 6c794e3..f7a811b 100644 --- a/code_ruby/lib/maasha/findsim.rb +++ b/code_ruby/lib/maasha/findsim.rb @@ -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