]> git.donarmstrong.com Git - biopieces.git/commitdiff
fixed bug in findsim.rb
authormartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Mon, 25 Jun 2012 11:36:40 +0000 (11:36 +0000)
committermartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Mon, 25 Jun 2012 11:36:40 +0000 (11:36 +0000)
git-svn-id: http://biopieces.googlecode.com/svn/trunk@1847 74ccb610-7750-0410-82ae-013aeee3265d

code_ruby/lib/maasha/findsim.rb

index d33229d221bc3754f7a9a23673ad9dc384307e27..7e5d100f4c4f03b78d6c6d987b2b6103785ba7a1 100644 (file)
@@ -160,6 +160,8 @@ class FindSim
           score     = new_score if new_score > score
         end
 
+        best_score = 0
+
         if @opt_hash[:max_diversity]
           best_score = score if i == 0
           break if best_score - score > @opt_hash[:max_diversity]