ac9066a13978b64eb6f1a7d9f405bc12880a0bc2 fanhsu Tue Mar 8 14:45:38 2011 -0800 Added filters for new OMIM tracks. diff --git src/hg/hgTrackUi/hgTrackUi.c src/hg/hgTrackUi/hgTrackUi.c index 9b2f752..87ffe28 100644 --- src/hg/hgTrackUi/hgTrackUi.c +++ src/hg/hgTrackUi/hgTrackUi.c @@ -1370,30 +1370,74 @@ geneLabel = cartUsualString(cart, varName, "gene symbol"); printf("<B>Label:</B> "); radioButton(varName, geneLabel, "gene symbol"); radioButton(varName, geneLabel, "UCSC Known Gene ID"); radioButton(varName, geneLabel, "all"); radioButton(varName, geneLabel, "none"); } void hg17KgUI(struct trackDb *tdb) /* Put up refGene-specific controls */ { hg17KgIdConfig(tdb); baseColorDrawOptDropDown(cart, tdb); } +void omimLocationConfig(struct trackDb *tdb) +/* Put up OMIM Location track controls */ +{ +char varName[64]; +char *geneLabel; +safef(varName, sizeof(varName), "%s.label", tdb->track); +geneLabel = cartUsualString(cart, varName, "OMIM ID"); +printf("<BR><B>Include Entries of:</B> "); +printf("<UL>\n"); +printf("<LI>"); +labelMakeCheckBox(tdb, "class1", "class 1: disorder positioned by mapping of the wildtype gene", TRUE); +printf("<LI>"); +labelMakeCheckBox(tdb, "class2", "class 2: disease phenotype mapped", TRUE); +printf("<LI>"); +labelMakeCheckBox(tdb, "class3", "class 3: molecular basis of the disorder is known", TRUE); +printf("<LI>"); +labelMakeCheckBox(tdb, "class4", "class 4: chromosome deletion or duplication syndrome", TRUE); +printf("<LI>"); +labelMakeCheckBox(tdb, "others", "others", TRUE); +printf("</UL>"); +} + +void omimGene2Config(struct trackDb *tdb) +/* Put up OMIM Genes track controls */ +{ +char varName[64]; +char *geneLabel; +safef(varName, sizeof(varName), "%s.label", tdb->track); +geneLabel = cartUsualString(cart, varName, "OMIM ID"); +printf("<BR><B>Include Entries of:</B> "); +printf("<UL>\n"); +printf("<LI>"); +labelMakeCheckBox(tdb, "class1", "class 1: disorder positioned by mapping of the wildtype gene", TRUE); +printf("<LI>"); +labelMakeCheckBox(tdb, "class2", "class 2: disease phenotype mapped", TRUE); +printf("<LI>"); +labelMakeCheckBox(tdb, "class3", "class 3: molecular basis of the disorder is known", TRUE); +printf("<LI>"); +labelMakeCheckBox(tdb, "class4", "class 4: chromosome deletion or duplication syndrome", TRUE); +printf("<LI>"); +labelMakeCheckBox(tdb, "others", "others", TRUE); +printf("</UL>"); +} + void omimGeneIdConfig(struct trackDb *tdb) /* Put up gene ID track controls */ { char varName[64]; char *geneLabel; safef(varName, sizeof(varName), "%s.label", tdb->track); geneLabel = cartUsualString(cart, varName, "OMIM ID"); printf("<BR><B>Label:</B> "); radioButton(varName, geneLabel, "OMIM ID"); radioButton(varName, geneLabel, "OMIM gene or syndrome"); radioButton(varName, geneLabel, "UCSC gene symbol"); } void knownGeneIdConfig(struct trackDb *tdb) /* Put up gene ID track controls */ @@ -1432,30 +1476,42 @@ option = cartUsualBoolean(cart, varName, TRUE); cgiMakeCheckBox(varName, option); printf(" %s ", "splice variants"); printf("<BR>\n"); } void knownGeneUI(struct trackDb *tdb) /* Put up refGene-specific controls */ { /* This is incompatible with adding Protein ID to lf->extra */ knownGeneIdConfig(tdb); knownGeneShowWhatUi(tdb); baseColorDrawOptDropDown(cart, tdb); } +void omimLocationUI(struct trackDb *tdb) +/* Put up omimLcation-specific controls */ +{ +omimLocationConfig(tdb); +} + +void omimGene2UI(struct trackDb *tdb) +/* Put up omimGene2-specific controls */ +{ +omimGene2Config(tdb); +} + void omimGeneUI(struct trackDb *tdb) /* Put up omimGene-specific controls */ { omimGeneIdConfig(tdb); } void geneIdConfig(struct trackDb *tdb) /* Put up gene ID track controls */ { char varName[64]; char *geneLabel; safef(varName, sizeof(varName), "%s.label", tdb->track); geneLabel = cartUsualString(cart, varName, "gene"); printf("<B>Label:</B> "); radioButton(varName, geneLabel, "gene"); @@ -2322,30 +2378,34 @@ recombRateRatUi(tdb); else if (sameString(track, "recombRateMouse")) recombRateMouseUi(tdb); else if (sameString(track, "cghNci60")) cghNci60Ui(tdb); else if (sameString(track, "xenoRefGene")) refGeneUI(tdb); else if (startsWith("transMapAln", track)) transMapUI(tdb); else if (sameString(track, "refGene")) refGeneUI(tdb); else if (sameString(track, "rgdGene2")) rgdGene2UI(tdb); else if (sameString(track, "knownGene")) knownGeneUI(tdb); +else if (sameString(track, "omimLocation")) + omimLocationUI(tdb); +else if (sameString(track, "omimGene2")) + omimGene2UI(tdb); else if (sameString(track, "omimGene")) omimGeneUI(tdb); else if (sameString(track, "hg17Kg")) hg17KgUI(tdb); else if (sameString(track, "pseudoGeneLink") || startsWith("retroMrnaInfo", track)) retroGeneUI(tdb); else if (sameString(track, "ensGeneNonCoding")) ensemblNonCodingUI(tdb); else if (sameString(track, "vegaGeneComposite")) vegaGeneUI(tdb); else if (sameString(track, "all_mrna")) mrnaUi(tdb, FALSE); else if (sameString(track, "mrna")) mrnaUi(tdb, FALSE); else if (sameString(track, "splicesP"))