Integrating phenotype and genotype for personalized medicine