Protein function annotation by homology-based inference