000226be7ecaa7674455d3968af3590ff2a047b3 kate Thu Apr 28 13:13:40 2016 -0700 Add GTEx gene expression boxplot to hg38 and hg19 hgGene pages. Remove old GTEx link. refs #17244 diff --git src/hg/lib/gtexUi.c src/hg/lib/gtexUi.c index db6381b..d597a0c 100644 --- src/hg/lib/gtexUi.c +++ src/hg/lib/gtexUi.c @@ -265,30 +265,37 @@ tsel->label = makeTissueLabel(tis); if (hashNumEntries(checkHash) == 0) tsel->checked = TRUE; else tsel->checked = (hashLookup(checkHash, tis->name) != NULL); slAddHead(&allTissues, tsel); } slReverse(&allTissues); makeGroupCheckboxes(name, NULL, allTissues); puts("</tr></table>"); char buf[512]; safef(buf, sizeof(buf), "%s%s", cgiMultListShadowPrefix(), name); cgiMakeHiddenVar(buf, "0"); } +void gtexPortalLink(char *geneId) +/* print URL to GTEX portal gene expression page using Ensembl Gene Id*/ +{ +printf("<br><a target='_blank' href='http://www.gtexportal.org/home/gene/%s'>" + "View at GTEx portal</a>\n", geneId); +} + void gtexGeneUi(struct cart *cart, struct trackDb *tdb, char *track, char *title, boolean boxed) /* GTEx (Genotype Tissue Expression) per gene data */ { if (cartVarExists(cart, "ajax")) isPopup = TRUE; boxed = cfgBeginBoxAndTitle(tdb, boxed, title); printf("\n<table id=gtexGeneControls style='font-size:%d%%' %s>\n<tr><td>", isPopup ? 75 : 100, boxed ?" width='100%'":""); char cartVar[1024]; char buf[512]; /* Filter on coding genes */ printf("<div>");