Statistical Methods for Inferring Latent Factors in Biological Networks