Immune deficiency and autoimmunity