def id_from_line(line):
    """Creates a residue ID from an atom line.

    :param str line: the ATOM or HETATM line record.
    :rtype: ``str``"""
    return '{}.{}{}'.format(line[21], line[22:26].strip(), line[26].strip())
