Here you can find the source of abbreviationtoLetter(String mutation)
public static String abbreviationtoLetter(String mutation)
//package com.java2s; //License from project: Open Source License public class Main { public static String abbreviationtoLetter(String mutation) { return mutation.replaceAll("Ala", "A").replaceAll("Cys", "C").replaceAll("Glu", "E").replaceAll("Phe", "F") .replaceAll("Gly", "G").replaceAll("His", "H").replaceAll("Ile", "I").replaceAll("Lys", "K") .replaceAll("Leu", "L").replaceAll("Met", "M").replaceAll("Asn", "N").replaceAll("Hyp", "O") .replaceAll("Pro", "P").replaceAll("Gln", "Q").replaceAll("Arg", "R").replaceAll("Ser", "S") .replaceAll("Thr", "T").replaceAll("Glp", "U").replaceAll("Val", "V").replaceAll("Trp", "W") .replaceAll("Ter", "X").replaceAll("Tyr", "Y"); }//from w w w. ja v a 2 s . co m }