From 548b74f9ea6cbcfedc14bf3173d55743c7dccd54 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Thu, 4 Aug 2016 20:54:57 +0100 Subject: [PATCH] JAL-2154 test for CDS->protein map --- src/jalview/util/MapList.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/jalview/util/MapList.java b/src/jalview/util/MapList.java index cae968e..dc5bee8 100644 --- a/src/jalview/util/MapList.java +++ b/src/jalview/util/MapList.java @@ -1103,4 +1103,14 @@ public class MapList return forwardStrand; } + /** + * + * @return true if from, or to is a three to 1 mapping + */ + public boolean isTripletMap() + { + return (toRatio == 3 && fromRatio == 1) + || (fromRatio == 3 && toRatio == 1); + } + } -- 1.7.10.2