f645c12318b465668687c437d5bf2d4bbe59f9cf kate Mon Jul 27 10:25:02 2015 -0700 Allow comparison graphs when zoomed out (suppress only when this requires querying the sample db which would be too slow). refs #15645 diff --git src/hg/hgTracks/gtexTracks.c src/hg/hgTracks/gtexTracks.c index 9cfb0a7..24816da 100644 --- src/hg/hgTracks/gtexTracks.c +++ src/hg/hgTracks/gtexTracks.c @@ -244,32 +244,32 @@ else if (sameString(geneBed->transcriptClass, "problem")) statusColor = statusColors.problem; else statusColor = statusColors.unknown; if (vis != tvFull && vis != tvPack) { bedDrawSimpleAt(tg, item, hvg, xOff, y, scale, font, statusColor, vis); return; } struct gtexGeneBed *computedMedians = NULL; // 1 or 2 (if comparison) // with medians computed for sample subsets struct gtexGeneExtras *extras = (struct gtexGeneExtras *)tg->extraUiData; if ((extras->isComparison) && - (tg->visibility == tvFull || tg->visibility == tvPack) && - gtexGraphHeight() != MIN_GRAPH_HEIGHT) + (tg->visibility == tvFull || tg->visibility == tvPack)) + //&& gtexGraphHeight() != MIN_GRAPH_HEIGHT) { // compute medians based on configuration (comparisons, and later, filters) computedMedians = loadComputedMedians(geneBed, extras->graphType); } int i; int expCount = geneBed->expCount; double maxMedian = ((struct gtexGeneExtras *)tg->extraUiData)->maxMedian; struct rgbColor lineColor = {.r=0}; int lineColorIx = hvGfxFindColorIx(hvg, lineColor.r, lineColor.g, lineColor.b); int heightPer = tg->heightPer; int graphX = gtexGraphX(geneBed); if (graphX < 0) return; // x1 is at left of graph