import pickle
omim_gene_reviews_name = dict()
with open('data/NBKid_shortname_OMIM.txt', 'rb') as f:
    f.readline()
    for line in f:
        line = line.rstrip()
        parts = line.split('\t')
        GR_shortname, omim = parts[1], parts[2]
        omim_gene_reviews_name[omim] = GR_shortname
outfile = open('data/omim_genereviews.p', 'wb')
pickle.dump(omim_gene_reviews_name, outfile)
outfile.close()

f93b3c7b5473779c22d1aee796b25c6c0cca0cbc
<mask token>

<mask token>
with open('data/NBKid_shortname_OMIM.txt', 'rb') as f:
    f.readline()
    for line in f:
        line = line.rstrip()
        parts = line.split('\t')
        GR_shortname, omim = parts[1], parts[2]
        omim_gene_reviews_name[omim] = GR_shortname
<mask token>
pickle.dump(omim_gene_reviews_name, outfile)
outfile.close()

<mask token>
omim_gene_reviews_name = dict()
with open('data/NBKid_shortname_OMIM.txt', 'rb') as f:
    f.readline()
    for line in f:
        line = line.rstrip()
        parts = line.split('\t')
        GR_shortname, omim = parts[1], parts[2]
        omim_gene_reviews_name[omim] = GR_shortname
outfile = open('data/omim_genereviews.p', 'wb')
pickle.dump(omim_gene_reviews_name, outfile)
outfile.close()

import pickle
omim_gene_reviews_name = dict()
with open('data/NBKid_shortname_OMIM.txt', 'rb') as f:
    f.readline()
    for line in f:
        line = line.rstrip()
        parts = line.split('\t')
        GR_shortname, omim = parts[1], parts[2]
        omim_gene_reviews_name[omim] = GR_shortname
outfile = open('data/omim_genereviews.p', 'wb')
pickle.dump(omim_gene_reviews_name, outfile)
outfile.close()
