def get_geno_split_names(ancestries, dictout, plinkprefix=False):
    """ Returns names of genotype files.

    Parameters
    ----------
    ancestries: `list`
    List of ancestries to include

    dictout: `bool`
    If the output should be a dictionary indexed on ancestries.

    plinkprefix: `bool`
    If True, will return the plink file prefix. If False, will return a list of files (bim, bed, fam).
    """
    file_base = 'pananc_31063_pcgc_genos'
    plink_set = ['.bim', '.bed', '.fam']
    if dictout:
        if plinkprefix:
            out = {anc: anc + '_' + file_base for anc in ancestries}
        else:
            out = {anc: [anc + '_' + file_base + suff for suff in plink_set] for anc in ancestries}
    else:
        if plinkprefix:
            out = [anc + '_' + file_base for anc in ancestries]
        else:
            out = [anc + '_' + file_base + suff for anc in ancestries for suff in plink_set]
    
    return out