def make_key(pathname):
    """
    Make a key string using the date, slice, cell and protocol from the path name
    """
    p = pathname.parts
    return(str('~'.join([p[i] for i in range(-4, 0)])))