MCPcopy Create free account
hub / github.com/RealTimeGenomics/rtg-tools / base

Method base

src/main/java/com/rtg/mode/DnaUtils.java:146–148  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers 2

decomposeMethod · 0.95
residueMethod · 0.95

Calls 1

getBaseMethod · 0.95

Tested by

no test coverage detected