Automatic annotation of gene families