]> git.donarmstrong.com Git - biopieces.git/commitdiff
fixed nasty bug in classify_taxonomy
authormartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Tue, 23 Oct 2012 17:06:30 +0000 (17:06 +0000)
committermartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Tue, 23 Oct 2012 17:06:30 +0000 (17:06 +0000)
git-svn-id: http://biopieces.googlecode.com/svn/trunk@1970 74ccb610-7750-0410-82ae-013aeee3265d

bp_bin/classify_taxonomy

index 958ecb94be360c0ca9c8d363db7968b4b4057775..0bfb69cbadc10089ae649d7c1f9565637d31ba18 100755 (executable)
@@ -68,8 +68,8 @@ class TaxNode
   def merge(node_new, node_old = self)
     node_new.children.each do |name, child|
       if node_old.children[name]
-        node_old.count += child.count
-        node_old.score += child.score
+        node_old.children[name].count += child.count
+        node_old.children[name].score += child.score
 
         merge(child, node_old.children[name])
       else