Computational analysis of innate and adaptive immune responses