JAL-2154 test for CDS->protein map
authorJim Procter <jprocter@issues.jalview.org>
Thu, 4 Aug 2016 19:54:57 +0000 (20:54 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Thu, 4 Aug 2016 19:54:57 +0000 (20:54 +0100)
src/jalview/util/MapList.java

index cae968e..dc5bee8 100644 (file)
@@ -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);
+  }
+
 }