import csv


def csv_to_chrs_lens_dict(i_csv_fn):
    """
    Read csv file and return {chr:len}
    """
    with open(i_csv_fn, 'r') as csvfile:
        return {r['chr']: r['size'] for r in csv.DictReader(csvfile)}