public static ArrayList<String[]> generateStandardPopulation(String popType,
            int popSize, String missing) {
        ArrayList<String[]> pedList = new ArrayList<String[]>();
        int numlength = Integer.toString(popSize).length();
        DecimalFormat format = new DecimalFormat("0000000000".substring(0, numlength));
        if (popType.equals(strF1)) {
            pedList.add(new String[] {"P1",missing,missing});
            pedList.add(new String[] {"P2",missing,missing});
            for (int i=1; i<=popSize; i++) {
                pedList.add(new String[] {"F1_"+format.format(i),"P1","P2"});
            }
        } else
        if (popType.equals(strF2)) {
            pedList.add(new String[] {"P1",missing,missing});
            pedList.add(new String[] {"P2",missing,missing});
            pedList.add(new String[] {"F1","P1","P2"});
            for (int i=1; i<=popSize; i++) {
                pedList.add(new String[] {"F2_"+format.format(i),"F1","F1"});
            }
        } else
        if (popType.equals(strBC)) {
            pedList.add(new String[] {"P1",missing,missing});
            pedList.add(new String[] {"P2",missing,missing});
            pedList.add(new String[] {"F1","P1","P2"});
            for (int i=1; i<=popSize; i++) {
                pedList.add(new String[] {"BC_"+format.format(i),"P1","F1"});
            }
        } else
        if (popType.equals(strS1)) {
            pedList.add(new String[] {"P1",missing,missing});
            for (int i=1; i<=popSize; i++) {
                pedList.add(new String[] {"S1_"+format.format(i),"P1","P1"});
            }
        }
        // else no population created
        return pedList;
    } //generateStandardPopulation