def generate_omim_list(omimfile):
    """
    Generate dictionary of genotype id-name key-value pairs.

    :omimfile: path to mimTitles.txt
    """
    omimlist = {}
    with open(omimfile) as file:
        for line in file:
            # Clean up lines and pick first occurrence of titles
            lineparts = line.strip().split('\t')
            genotype_id = 'OMIM:' + lineparts[1]
            genotype_name = lineparts[2].split(';')[0]
            omimlist[genotype_id] = genotype_name
    return omimlist