From 8875ec9fa2dcd7dcb494a1538ae61e3279ceb4aa Mon Sep 17 00:00:00 2001 From: hansonr Date: Wed, 27 Jun 2018 11:15:22 +0100 Subject: [PATCH] Consensus LOGO done --- src/jalview/analysis/CodingUtils.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/jalview/analysis/CodingUtils.java b/src/jalview/analysis/CodingUtils.java index 34f8619..92b39c3 100644 --- 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' * -- 1.7.10.2