git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50973d1
)
JAL-2154 test for CDS->protein map
author
Jim Procter
<jprocter@issues.jalview.org>
Thu, 4 Aug 2016 19:54:57 +0000
(20:54 +0100)
committer
Jim Procter
<jprocter@issues.jalview.org>
Tue, 9 Aug 2016 07:31:38 +0000
(08:31 +0100)
src/jalview/util/MapList.java
patch
|
blob
|
history
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);
+ }
+
}