c32415cfb3e0d34c6c21ad9b10dbd66c7ef2b76b kate Mon May 2 10:44:28 2016 -0700 Add link to browser with GTEX track on to hgGene GTEX section. refs #17244 diff --git src/hg/hgGene/gtex.c src/hg/hgGene/gtex.c index db90050..0b4c216 100644 --- src/hg/hgGene/gtex.c +++ src/hg/hgGene/gtex.c @@ -32,31 +32,34 @@ sqlSafef(query, sizeof(query), "select geneId from gtexGene where geneId like '%s%%'", ensGene); ensGene = sqlQuickString(conn, query); if (!ensGene) return FALSE; section->items = cloneString(ensGene); return TRUE; } static void gtexPrint(struct section *section, struct sqlConnection *conn, char *geneId) /* Print out GTEx gene expression boxplot */ { struct tempName pngTn; char *ensGene = section->items; if (gtexGeneBoxplot(ensGene, NULL, GTEX_DEFAULT_VERSION, FALSE, &pngTn)) - hPrintf("<IMG SRC = \"%s\" BORDER=1><BR>\n", pngTn.forHtml); + hPrintf("<img src = '%s' border=1><br>\n", pngTn.forHtml); +hPrintf("<br><a target='_blank' href='../cgi-bin/hgTracks?%s>exGene=pack'>" + "View in GTEx track of Genome Browser</a>", cartSidUrlString(cart)); +hPrintf(" "); gtexPortalLink(ensGene); } struct section *gtexSection(struct sqlConnection *conn, struct hash *sectionRa) /* Create GTEx gene expression section. */ { struct section *section = sectionNew(sectionRa, "gtex"); if (section != NULL) { section->exists = gtexExists; section->print = gtexPrint; } return section; }