From: Jim Procter Date: Thu, 4 Aug 2016 19:54:57 +0000 (+0100) Subject: JAL-2154 test for CDS->protein map X-Git-Tag: Release_2_10_0~47^2~4^2~43^2~15^2^2~12 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=548b74f9ea6cbcfedc14bf3173d55743c7dccd54;p=jalview.git JAL-2154 test for CDS->protein map --- 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); + } + }