From: hansonr Date: Wed, 27 Jun 2018 10:15:22 +0000 (+0100) Subject: Consensus LOGO done X-Git-Tag: Release_2_11_4_0~45^2~18^2~634 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=8875ec9fa2dcd7dcb494a1538ae61e3279ceb4aa;p=jalview.git Consensus LOGO done --- 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' *