Consensus LOGO done
authorhansonr <hansonr@stolaf.edu>
Wed, 27 Jun 2018 10:15:22 +0000 (11:15 +0100)
committerhansonr <hansonr@stolaf.edu>
Wed, 27 Jun 2018 10:15:22 +0000 (11:15 +0100)
src/jalview/analysis/CodingUtils.java

index 34f8619..92b39c3 100644 (file)
@@ -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'
    *