Predicting phenotype from patterns of annotation