Converts an encoded base into a uppercase ACGTN character. Handles all the off-the-end cases by returning 'N'. @param a array of encoded residues. @param p position of the desired base in a . @return a character form of the base, or 'N'.
(final byte[] a, final int p)
| 144 | * @return a character form of the base, or 'N'. |
| 145 | */ |
| 146 | public static char base(final byte[] a, final int p) { |
| 147 | return p >= 0 && p < a.length ? getBase(a[p]) : getBase(UNKNOWN_RESIDUE); |
| 148 | } |
| 149 | |
| 150 | /** |
| 151 | * Convert from a 0-4 based numerical base to a lowercase <code>nacgt</code> style character. |