From: kjvdheide Date: Tue, 14 Nov 2017 17:17:04 +0000 (+0000) Subject: JAL-2795 added duplication check when calculated nodes are bound to seqs X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=aca5e59f662d593aba2d46618871c290e234c01e;p=jalview.git JAL-2795 added duplication check when calculated nodes are bound to seqs --- 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; } } + + }