def group_by_signature(r):
    """Grouping function for ``PairTransformer``.

    Parameters
    ----------
    :param r: iterable
        signature in a singleton.

    Returns
    -------
    :returns: string
        Signature id
    """
    return r[0]['signature_id']
