a291ea523a08ecd9ad7265d6f17a028064aa329f fanhsu Tue May 31 09:13:19 2011 -0700 Added logic to show phenotype class wqeven phenotypeId is not available. diff --git src/hg/hgc/hgc.c src/hg/hgc/hgc.c index e4328f2..863947a 100644 --- src/hg/hgc/hgc.c +++ src/hg/hgc/hgc.c @@ -9451,30 +9451,36 @@ } 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); // show phenotype class if available if (!sameWord(phenotypeClass, "-1")) printf(" (%s)", phenotypeClass); printf(")"); } + else + { + // show phenotype class if available, even phenotypeId is not available + if (!sameWord(phenotypeClass, "-1")) printf(" (%s)", phenotypeClass); + } + } 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) { int printedCnt;