Convert an ascii amino acid string into internal encoding @param str the amino acid sequence. @return the encoded value
(final String str)
| 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 |