def retrieve_cnv_data(store, solution, chromosome=''):
    """ Retrieve copy number data for a specific solution
    """
    cnv = store['solutions/solution_{0}/cn'.format(solution)]

    if chromosome != '':
        cnv = cnv[cnv['chromosome'] == chromosome].copy()

    cnv['segment_idx'] = cnv.index

    return cnv