def find_seq_id(block, name, case_sensitive=True):
    """Given part of a sequence ID, find the first actual ID that contains it.

    Example::

        >>> find_seq_id(block, '2QG5')
        'gi|158430190|pdb|2QG5|A'

    Raise a ValueError if no matching key is found.
    """
    # logging.warn("DEPRECATED: Try to use cma.find_seq_rec instead")
    rec = find_seq_rec(block, name, case_sensitive)
    return rec['id']