1b5e64c40e2a2785790edeaf8c54de55d89998a8
fanhsu
  Fri Mar 4 08:17:57 2011 -0800
Added 'X' to aminoAcidTable and to functions to get AA abbrev and letter.
diff --git src/inc/dnautil.h src/inc/dnautil.h
index 7660519..7ce450b 100644
--- src/inc/dnautil.h
+++ src/inc/dnautil.h
@@ -116,30 +116,36 @@
 /* Return TRUE if it's really a stop codon, even considering
  * possibilility of selenocysteine. */
 
 /* Returns one letter code for protein, 
  * 0 for stop codon or X for bad input,
  * Vertebrate Mitochondrial Code */
 AA lookupMitoCodon(DNA *dna);
 
 Codon codonVal(DNA *start);
 /* Return value from 0-63 of codon starting at start. 
  * Returns -1 if not a codon. */
 
 DNA *valToCodon(int val);
 /* Return  codon corresponding to val (0-63) */
 
+extern char *aaAbbr(int i);
+/* return pointer to AA abbrevation */
+
+extern char aaLetter(int i);
+/* return AA letter */
+
 void dnaTranslateSome(DNA *dna, char *out, int outSize);
 /* Translate DNA upto a stop codon or until outSize-1 amino acids, 
  * whichever comes first. Output will be zero terminated. */
 
 char *skipIgnoringDash(char *a, int size, bool skipTrailingDash);
 /* Count size number of characters, and any 
  * dash characters. */
 
 int countNonDash(char *a, int size);
 /* Count number of non-dash characters. */
 
 int nextPowerOfFour(long x);
 /* Return next power of four that would be greater or equal to x.
  * For instance if x < 4, return 1, if x < 16 return 2.... 
  * (From biological point of view how many bases are needed to