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~61 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=34abca821ae5c3f9220bfc246c3055e3ba9f39c3;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); + } + }