f7c4de416fe14ebd715a9595887dd5c84bd334e4
fanhsu
Tue May 17 14:02:50 2011 -0700
Updated new OMIM tracks processing to use the new omimPhenotype table.
diff --git src/hg/hgc/hgc.c src/hg/hgc/hgc.c
index f5fabbc..6b1b65c 100644
--- src/hg/hgc/hgc.c
+++ src/hg/hgc/hgc.c
@@ -9436,54 +9436,51 @@
safef(query, sizeof(query),
"select k.transcript from knownCanonical k where k.chrom='%s' and k.chromStart=%s and k.chromEnd=%s",
chrom, chromStart, chromEnd);
sr = sqlMustGetResult(conn, query);
row = sqlNextRow(sr);
if (row != NULL)
{
kgId = cloneString(row[0]);
}
sqlFreeResult(&sr);
/* use geneSymbol from omimMorbidMap if available */
if (geneSymbol!= NULL)
{
boolean disorderShown;
- char *phenotypeClass, *questionable, *hasBracket, *hasBrace, *phenotypeId, *disorder;
+ char *phenotypeClass, *phenotypeId, *disorder;
printf("Gene symbol(s): %s", geneSymbol);
printf("
\n");
/* display disorder for genes in morbidmap */
safef(query, sizeof(query),
- "select disorder, phenotypeClass, questionable, hasBracket, hasBrace, phenotypeId from omimDisorderPhenotype where omimId=%s order by disorder",
+ "select description, phenotypeClass, phenotypeId from omimPhenotype where omimId=%s order by description",
itemName);
sr = sqlMustGetResult(conn, query);
disorderShown = FALSE;
while ((row = sqlNextRow(sr)) != NULL)
{
if (!disorderShown)
{
printf("Disorder(s):
\n");
disorderShown = TRUE;
}
disorder = row[0];
phenotypeClass = row[1];
- questionable = row[2];
- hasBracket = row[3];
- hasBrace = row[4];
- phenotypeId = row[5];
+ phenotypeId = row[2];
printf("- %s", disorder);
if (phenotypeId != NULL)
{
if (!sameWord(phenotypeId, "-1"))
{
printf(" (phenotype ", url, phenotypeId);
printf("%s)", phenotypeId);
}
}
printf("
\n");
}
if (disorderShown) printf("
\n");
sqlFreeResult(&sr);
}
else
@@ -9646,52 +9643,49 @@
}
}
sqlFreeResult(&sr);
printf("
\n");
safef(query, sizeof(query),
"select geneSymbol from omimGeneMap where omimId=%s;", itemName);
sr = sqlMustGetResult(conn, query);
row = sqlNextRow(sr);
if (row != NULL)
{
geneSymbol = cloneString(row[0]);
}
sqlFreeResult(&sr);
- safef(query, sizeof(query),"select omimId from omimDisorderPhenotype where omimId=%s\n", omimId);
+ safef(query, sizeof(query),"select omimId from omimPhenotype where omimId=%s\n", omimId);
if (sqlQuickNum(conn, query) > 0)
{
- char *phenotypeClass, *questionable, *hasBracket, *hasBrace, *phenotypeId, *disorder;
+ char *phenotypeClass, *phenotypeId, *disorder;
printf("Gene symbol(s): %s", geneSymbol);
printf("
\n");
/* display disorder for genes in morbidmap */
safef(query, sizeof(query),
- "select disorder, phenotypeClass, questionable, hasBracket, hasBrace, phenotypeId from omimDisorderPhenotype where omimId=%s order by disorder",
+ "select description, phenotypeClass, phenotypeId from omimPhenotype where omimId=%s order by description",
itemName);
sr = sqlMustGetResult(conn, query);
printf("Disorder(s):\n");
while ((row = sqlNextRow(sr)) != NULL)
{
disorder = row[0];
phenotypeClass = row[1];
- questionable = row[2];
- hasBracket = row[3];
- hasBrace = row[4];
- phenotypeId = row[5];
+ phenotypeId = row[2];
printf("- %s", disorder);
if (phenotypeId != NULL)
{
if (!sameWord(phenotypeId, "-1"))
{
printf(" (phenotype ", url, phenotypeId);
printf("%s)", phenotypeId);
}
}
printf("
\n");
}
printf("
\n");
sqlFreeResult(&sr);
}
else