From aca5e59f662d593aba2d46618871c290e234c01e Mon Sep 17 00:00:00 2001 From: kjvdheide Date: Tue, 14 Nov 2017 17:17:04 +0000 Subject: [PATCH] JAL-2795 added duplication check when calculated nodes are bound to seqs --- src/jalview/ext/archaeopteryx/ArchaeopteryxTreeBuilder.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/jalview/ext/archaeopteryx/ArchaeopteryxTreeBuilder.java b/src/jalview/ext/archaeopteryx/ArchaeopteryxTreeBuilder.java index 9166497..f010450 100644 --- a/src/jalview/ext/archaeopteryx/ArchaeopteryxTreeBuilder.java +++ b/src/jalview/ext/archaeopteryx/ArchaeopteryxTreeBuilder.java @@ -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; } } + + } -- 1.7.10.2