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

Method encodeProtein

src/main/java/com/rtg/mode/Protein.java:300–302  ·  view source on GitHub ↗

Convert an ascii amino acid character into internal encoding @param c the amino acid character. @return the encoded value

(final char c)

Source from the content-addressed store, hash-verified

298 * @return the encoded value
299 */
300 public static byte encodeProtein(final char c) {
301 return (byte) valueOf(String.valueOf(c)).ordinal();
302 }
303
304 /**
305 * Convert an ascii amino acid string into internal encoding

Callers 1

encodeProteinsMethod · 0.95

Calls 2

valueOfMethod · 0.95
ordinalMethod · 0.65

Tested by

no test coverage detected