The genetic basis of immune and autoimmune responses