def candid(data):
    """ Returns id string for given data dict
    Assumes scanId is defined as:
    datasetId dot scanNum dot subscanNum
    """
    return '{0}_seg{1}-i{2}-dm{3}-dt{4}'.format(data['scanId'], data[
        'segment'], data['integration'], data['dmind'], data['dtind'])
