41861d25a94c0578853ae4280d195d7d8ca2fcb4 kate Mon Mar 21 17:17:46 2016 -0700 Add version awareness to tissue handling. refs #15645 diff --git src/hg/lib/gtexUi.c src/hg/lib/gtexUi.c index f170f0b..7c0084d 100644 --- src/hg/lib/gtexUi.c +++ src/hg/lib/gtexUi.c @@ -114,31 +114,31 @@ } static void initTissueTableStyle() /* Reduce font in tissue table so more rows are visible. * Specify some colors.*/ { puts("\n"); } static void makeTableTissueCheckboxes(char *name, struct gtexTissue *tissues, - struct slName *checked, struct cart *cart, char *track) + struct slName *checked, struct cart *cart, char *track, char *version) { initTissueTableStyle(); char *onClick = ""; // Sortable table can't be displayed when UI is activated from right-click (popup mode) if (!isPopup) { jsIncludeFile("hui.js", NULL); onClick = "'tableSortAtButtonPress(this);"; } struct hash *checkHash = hashNew(0); struct slName *sel; for (sel = checked; sel != NULL; sel = sel->next) hashAdd(checkHash, sel->name, sel->name); //puts("
"); printf(" | Tissue | ", sortableClass, onClick); printf("Samples | ", sortableClass, onClick); printf("Organ | ", sortableClass, onClick); printf("System | ", sortableClass, onClick); puts("\n"); puts(""); /* table body */ printf(""); -struct hash *tscHash = gtexGetTissueSampleCount(); +struct hash *tscHash = gtexGetTissueSampleCount(version); struct gtexTissue *tis; boolean isChecked = FALSE; for (tis = tissues; tis != NULL; tis = tis->next) { puts("\n
---|
", name, tis->name, isChecked ? "checked" : "", isPopup ? "disabled" : ""); // color patch printf("\n%s", makeTissueColorPatch(tis)); @@ -353,30 +353,30 @@ /* Tissue filter */ printf(" |