git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
JAL-2154 test for CDS->protein map
[jalview.git]
/
src
/
jalview
/
util
/
MapList.java
diff --git
a/src/jalview/util/MapList.java
b/src/jalview/util/MapList.java
index
cae968e
..
dc5bee8
100644
(file)
--- 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);
+ }
+
}