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:
d6fde28
)
Consensus LOGO done
author
hansonr
<hansonr@stolaf.edu>
Wed, 27 Jun 2018 10:15:22 +0000
(11:15 +0100)
committer
hansonr
<hansonr@stolaf.edu>
Wed, 27 Jun 2018 10:15:22 +0000
(11:15 +0100)
src/jalview/analysis/CodingUtils.java
patch
|
blob
|
history
diff --git
a/src/jalview/analysis/CodingUtils.java
b/src/jalview/analysis/CodingUtils.java
index
34f8619
..
92b39c3
100644
(file)
--- a/
src/jalview/analysis/CodingUtils.java
+++ b/
src/jalview/analysis/CodingUtils.java
@@
-109,6
+109,15
@@
public class CodingUtils
return result;
}
+ public static void decodeCodon2(int encoded, char[] result)
+ {
+ result[2] = decodeNucleotide(encoded & 3);
+ encoded = encoded >>> CODON_ENCODING_BITSHIFT;
+ result[1] = decodeNucleotide(encoded & 3);
+ encoded = encoded >>> CODON_ENCODING_BITSHIFT;
+ result[0] = decodeNucleotide(encoded & 3);
+ }
+
/**
* Convert value 0/1/2/3 to 'A'/'C'/'G'/'T'
*