Bayesian parameter estimation for automatic annotation of gene functions using observational data and phylogenetic trees