Multivariate inference of pathway activity in host immunity and response to therapeutics