Structure learning to unravel mechanisms of the immune system