def GetAtomResidueId(atom):
    """Return (residue number, residue name, chain id) for a given atom"""
    info = atom.GetPDBResidueInfo()
    res_id = info.GetResidueNumber(), info.GetResidueName().strip(
        ), info.GetChainId()
    return res_id
