1 package jalview.analysis;
3 public interface GeneticCodeI
6 * Answers the single letter amino acid code (e.g. "D") for the given codon
7 * (e.g. "GAC"), or "*" for a stop codon, or null for an unknown input. The
8 * codon is not case-sensitive, the return value is upper case.
10 * If the codon includes any of the standard ambiguity codes
12 * <li>if all possible translations are the same, returns that value</li>
13 * <li>else returns null</li>
19 String translate(String codon);
22 * Answers the single letter amino acid code (e.g. "D") for the given codon
23 * (e.g. "GAC"), or "*" for a stop codon, or null for an unknown input. The
24 * codon is not case-sensitive, the return value is upper case. If the codon
25 * includes any of the standard ambiguity codes, this method returns null.
30 String translateCanonical(String codon);
33 * Answers a unique identifier for the genetic code (using the numbering
41 * Answers a display name suitable for use in menus, reports etc