private final Map<SequenceI, PhylogenyNode> alignmentBoundNodes;
+ private final Map<PhylogenyNode, SequenceI> nodesBoundAlignment;
+
public ArchaeopteryxTreeConverter(final TreeBuilder calculatedTree)
{
jalviewTree = calculatedTree;
jalviewTree.getDistances(), sequences);
aptxTree = new Phylogeny();
rootNode = new PhylogenyNode();
- alignmentBoundNodes = new HashMap<>(
- distances.getSize());
+ alignmentBoundNodes = new HashMap<>(distances.getSize());
+ nodesBoundAlignment = new HashMap<>(distances.getSize());
}
NodeData nodeData = sequenceNode.getNodeData();
nodeData.setSequence(seq);
+ nodesBoundAlignment.put(sequenceNode, sequence);
alignmentBoundNodes.put(sequence, sequenceNode);
rootNode.addAsChild(sequenceNode);
}
return alignmentBoundNodes;
}
+ public Map<PhylogenyNode, SequenceI> getNodesBoundAlignment()
+ {
+ return nodesBoundAlignment;
+ }
+
private Phylogeny clusterNodes()
{
return aptxTree;