Comparative genomics-based prediction of protein function