An integrated probabilistic model for functional prediction of proteins