def cross_data(clusters, flist):
    """
    Matches names in flist to the numbers in clusters.
    """

    named_clusters = []
    for cl in clusters:
        ncl = [flist[s] for s in cl]
        named_clusters.append(ncl)

    return named_clusters