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("");
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("
"
+ "View at GTEx portal\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
",
isPopup ? 75 : 100, boxed ?" width='100%'":"");
char cartVar[1024];
char buf[512];
/* Filter on coding genes */
printf(" ");
|