nodeSequence = algnIds.findIdMatch(nodeSequenceName);
if (nodeSequence != null)
{
-
+ // is there already a sequence present for the node?
+ // If so, does it actually match Jalview's sequence?
+ if (treeNode.getSequence() != null)
+ {
+ if (treeNode.getSequence().getSequenceAsString() != nodeSequence
+ .getSequenceAsString())
+ {
+ System.err.println(
+ "Sequence detected in tree node that does not match corresponding Jalview sequence:"
+ + nodeSequenceName);
+ // which sequence gets precedence?
+
+ }
+
+ }
+ else
+ {
treeNode.setSequence(nodeSequence);
-
+ }
MappingUtils.putWithDuplicationCheck(alignmentWithNodes,
nodeSequence, treeNode);
MappingUtils.putWithDuplicationCheck(nodesWithAlignment, treeNode,