From 989fb9284f5e443886fcaa9cf4ca495c75c76f71 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Mon, 4 Jul 2016 15:19:43 +0100 Subject: [PATCH] JAL-2110 defensive check in code --- 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 18aaecf..bb705b6 100644 --- a/src/jalview/datamodel/AlignedCodonFrame.java +++ b/src/jalview/datamodel/AlignedCodonFrame.java @@ -472,7 +472,8 @@ public class AlignedCodonFrame for (SequenceToSequenceMapping ssm : mappings) { - if (ssm.mapping.to == protein) + if (ssm.mapping.to == protein + && ssm.mapping.getMap().getFromRatio() == 3) { ml = ssm.mapping.map; dnaSeq = ssm.fromSeq; -- 1.7.10.2