85a175ddc967c470fa60da37cc0ca54088c0af02 kate Wed Jan 29 11:20:39 2020 -0800 Strip version number to allow portal link to work when gene versions change. refs #24860 diff --git src/hg/lib/gtexUi.c src/hg/lib/gtexUi.c index 2abab6e..9191158 100644 --- src/hg/lib/gtexUi.c +++ src/hg/lib/gtexUi.c @@ -294,32 +294,34 @@ 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*/ { +char *ensGene = cloneString(geneId); +chopSuffix(ensGene); printf("<a target='_blank' href='http://www.gtexportal.org/home/gene/%s'>" - "View at GTEx portal</a>\n", geneId); + "View at GTEx portal</a>\n", ensGene); } void gtexBodyMapLink() /* print URL to GTEX body map HTML page */ { #define GTEX_BODYMAP_HTML "../gtexBodyMap.html" printf("<a target='_blank' title='Anatomy graphic of GTEx tissues' href='%s'>" "View GTEx Body Map</a>\n", GTEX_BODYMAP_HTML); } /* Convenience functions shared by hgTrackUi and hgGtexTrackSettings. hgTrackUi is for now still * available from right-click */ void gtexGeneUiGeneLabel(struct cart *cart, char *track, struct trackDb *tdb) /* Radio buttons to select format of gene label */