Phenotype and genotype-based patient similarity