445f968a8ec828385e022aa2b94db08cda41c109
fanhsu
  Mon May 23 10:49:32 2011 -0700
Show phenotype class for omimGene2.
diff --git src/hg/hgc/hgc.c src/hg/hgc/hgc.c
index 5bec707..045567e 100644
--- src/hg/hgc/hgc.c
+++ src/hg/hgc/hgc.c
@@ -9446,31 +9446,34 @@
     	    {
 	    if (!disorderShown)
 	    	{
  		printf("<B>Disorder(s):</B><UL>\n");
 		disorderShown = TRUE;
 		}
 	    disorder       = row[0];
 	    phenotypeClass = row[1];
 	    phenotypeId    = row[2];
 	    printf("<LI>%s", disorder);
  	    if (phenotypeId != NULL)
 	    	{
 		if (!sameWord(phenotypeId, "-1"))
 		    {
                     printf(" (phenotype <A HREF=\"%s%s\" target=_blank>", url, phenotypeId);
-                    printf("%s</A></B>)", phenotypeId);
+                    printf("%s</A></B>", phenotypeId);
+		    // show phenotype class if available
+		    if (!sameWord(phenotypeClass, "-1")) printf(" (%s)", phenotypeClass);
+		    printf(")");
 		    }
 		}
 	    printf("<BR>\n");
 	    }
 	if (disorderShown) printf("</UL>\n");
     	sqlFreeResult(&sr);
 	}
     
     // show RefSeq Gene link(s)
     safef(query, sizeof(query),
           "select distinct r.name from refLink l, mim2gene g, refGene r where l.omimId=%s and g.geneId=l.locusLinkId and g.entryType='gene' and chrom='%s' and txStart = %s and txEnd= %s",
 	  itemName, chrom, chromStart, chromEnd);
     sr = sqlMustGetResult(conn, query);
     if (sr != NULL)
 	{