private static String generatePartCode4Model(String model)
    {
        String partCode = "";
        if (model.equalsIgnoreCase("JTT"))
        {
            partCode = "";
        } else if (model.equalsIgnoreCase("PMB"))
        {
            partCode = "P\n";
        } else if (model.equalsIgnoreCase("PAM"))
        {
            partCode = "P\nP\n";
        } else if (model.equalsIgnoreCase("Kimura"))
        {
            partCode = "P\nP\nP\n";
        } else if (model.equalsIgnoreCase("Similarity Table"))
        {
            partCode = "P\nP\nP\nP\n";
        } else if (model.equalsIgnoreCase("Categories model"))
        {
            partCode = "P\nP\nP\nP\nP\n";
        }
        else
        {
            errorMsg += "ERROR: This operation takes only following values for model\n"
                    + "JTT (Jones-Taylor-Thornton matrix), "
                    + "PMB (Henikoff/Tillier PMB matrix), "
                    + "PAM (Dayhoff PAM matrix), "
                    + "kimura, Similarity Table and Categories model";
        }
        return partCode;

    }