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

Method encodeProteins

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

Convert an ascii amino acid string into internal encoding @param str the amino acid sequence. @return the encoded value

(final String str)

Source from the content-addressed store, hash-verified

307 * @return the encoded value
308 */
309 public static byte[] encodeProteins(final String str) {
310 final byte[] b = new byte[str.length()];
311 for (int i = 0; i < str.length(); ++i) {
312 b[i] = encodeProtein(str.charAt(i));
313 }
314 return b;
315 }
316}
317

Callers 6

testWriteProteinMethod · 0.95
testWriteProteinLongMethod · 0.95
testWriteMatches1Method · 0.95
testWriteMatches2Method · 0.95
testWriteMatches3Method · 0.95

Calls 2

encodeProteinMethod · 0.95
lengthMethod · 0.65

Tested by 6

testWriteProteinMethod · 0.76
testWriteProteinLongMethod · 0.76
testWriteMatches1Method · 0.76
testWriteMatches2Method · 0.76
testWriteMatches3Method · 0.76