fixed some problems
authorcmzmasek@gmail.com <cmzmasek@gmail.com@ca865154-3058-d1c3-3e42-d8f55a55bdbd>
Sat, 17 Sep 2011 18:03:59 +0000 (18:03 +0000)
committercmzmasek@gmail.com <cmzmasek@gmail.com@ca865154-3058-d1c3-3e42-d8f55a55bdbd>
Sat, 17 Sep 2011 18:03:59 +0000 (18:03 +0000)
forester/java/src/org/forester/analysis/AncestralTaxonomyInference.java

index e422508..da68994 100644 (file)
@@ -242,9 +242,6 @@ public final class AncestralTaxonomyInference {
             }
             return;
         }
-        // if ( !n.getNodeData().isHasTaxonomy() ) {
-        // n.getNodeData().setTaxonomy( new Taxonomy() );
-        // }
         final Taxonomy tax = new Taxonomy();
         n.getNodeData().setTaxonomy( tax );
         tax.setScientificName( last_common_lineage );
@@ -329,8 +326,10 @@ public final class AncestralTaxonomyInference {
         }
         if ( delete ) {
             for( final PhylogenyNode node : not_found_external_nodes ) {
-                phy.deleteSubtree( node, false );
+                phy.deleteSubtree( node, true );
             }
+            phy.externalNodesHaveChanged();
+            phy.hashIDs();
             phy.recalculateNumberOfExternalDescendants( true );
         }
         return not_found;