JAL-2795 added duplication check when calculated nodes are bound to seqs
authorkjvdheide <kjvanderheide@dundee.ac.uk>
Tue, 14 Nov 2017 17:17:04 +0000 (17:17 +0000)
committerkjvdheide <kjvanderheide@dundee.ac.uk>
Tue, 14 Nov 2017 17:19:09 +0000 (17:19 +0000)
src/jalview/ext/archaeopteryx/ArchaeopteryxTreeBuilder.java

index 9166497..f010450 100644 (file)
@@ -90,8 +90,10 @@ public class ArchaeopteryxTreeBuilder
       NodeData nodeData = sequenceNode.getNodeData();
       nodeData.setSequence(seq);
 
-      nodesWithAlignment.put(sequenceNode, sequence);
-      alignmentWithNodes.put(sequence, sequenceNode);
+      ExternalTreeBuilderI.putWithDuplicationCheck(nodesWithAlignment,
+              sequenceNode, sequence);
+      ExternalTreeBuilderI.putWithDuplicationCheck(alignmentWithNodes,
+              sequence, sequenceNode);
       rootNode.addAsChild(sequenceNode);
     }
 
@@ -161,4 +163,6 @@ public class ArchaeopteryxTreeBuilder
       return ttl;
     }
   }
+  
+
 }