private static boolean getCodeNonRootedTrees(String consensusType, String OutgroupRoot, int nofOutgroup)
    {
        if (consensusType.equalsIgnoreCase("MRe"))
        {
            partCodeG = "";
        } else if (consensusType.equalsIgnoreCase("Strict"))
        {
            partCodeG = "C\n";
        } else if (consensusType.equalsIgnoreCase("MR"))
        {
            partCodeG = "C\nC\n";
        } else if (consensusType.equalsIgnoreCase("Ml"))
        {
            partCodeG = "C\nC\nC\n";
        } else
        {
            errorMsg = "Error : consensusType takes only following values:\n"
                    + "MRe : Majority rule (extended), strict, MR : Majority rule and Ml";
            return false;
        }

        if (OutgroupRoot.equalsIgnoreCase("no"))
        {
            partCodeG += "Y\n";
        } else if (OutgroupRoot.equalsIgnoreCase("yes"))
        {
            if (nofOutgroup > 0)
                partCodeG += "O\n" + nofOutgroup + "\nY\n";
            else
            {
                errorMsg = "Error : The value for nofOutgroup should be greater than 0";                
                return false;
            }

        } else
        {
            errorMsg = "Error : OutgroupRoot, takes only following values: yes, no ";
            return false;
        }

        if (consensusType.equalsIgnoreCase("Ml"))
        {
            partCodeG += "0.5\n";
        }

        return true;
    }//getCodeNonRootedTrees