public static String getGenChi1LastAtom(String resName){//Get atom name X where generalized chi1 is N-CA-CB-X

            if( resName.equalsIgnoreCase("val") || resName.equalsIgnoreCase("ile") )
                return "CG1";
            else if( resName.equalsIgnoreCase("ser") )
                return "OG";
            else if( resName.equalsIgnoreCase("thr") )
                return "OG1";
            else if( resName.equalsIgnoreCase("cys") || resName.equalsIgnoreCase("cyx") )
                return "SG";
            else if( resName.equalsIgnoreCase("ala") )
                return "HB1";
            else
                return "CG";
    }