From a4ace9297e743fb504dffd43ebb11074db263e10 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Fri, 19 Feb 2016 17:00:55 +0000 Subject: [PATCH] JAL-1705 handle case of sequence with no dataset sequence --- src/jalview/datamodel/AlignedCodonFrame.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/jalview/datamodel/AlignedCodonFrame.java b/src/jalview/datamodel/AlignedCodonFrame.java index 5dfd434..3fc8c28 100644 --- a/src/jalview/datamodel/AlignedCodonFrame.java +++ b/src/jalview/datamodel/AlignedCodonFrame.java @@ -321,7 +321,8 @@ public class AlignedCodonFrame { for (SequenceI sourceAligned : al.getSequences()) { - if (ssm.mapping.to == sourceAligned.getDatasetSequence()) + if (ssm.mapping.to == sourceAligned.getDatasetSequence() + || ssm.mapping.to == sourceAligned) { return sourceAligned; } -- 1.7.10.2