def label_tsne(tsne_results, sample_names, tool_label):
    """
    Label tSNE results.

    Parameters
    ----------
    tsne_results : np.array
        Output from run_tsne.
    sample_names : list
        List of sample names.
    tool_label : str
        The tool name to use for adding labels.

    Returns
    -------
    dict
        Dictionary of the form: {<sample_name>: <coordinate>}.

    """
    tsne_labeled = {sample_names[i]: {f'{tool_label}_x': float(tsne_results[i][0]),
                                      f'{tool_label}_y': float(tsne_results[i][1])}
                    for i in range(len(sample_names))}
    return tsne_labeled