e5d963606c378c0f08cb946c3a9393847dd6ce22 kate Wed Oct 7 15:23:41 2020 -0700 Add bigBed to GeneReviews to support mouseOver with diseases. refs #19841 diff --git src/hg/hgTracks/lollyTrack.c src/hg/hgTracks/lollyTrack.c index 924520c..bd06717 100644 --- src/hg/hgTracks/lollyTrack.c +++ src/hg/hgTracks/lollyTrack.c @@ -226,36 +226,39 @@ double minVal = DBL_MAX, maxVal = -DBL_MAX; //double sumData = 0.0, sumSquares = 0.0; unsigned count = 0; int trackHeight = tg->lollyCart->height; struct bigBedFilter *filters = bigBedBuildFilters(cart, bbi, tg->tdb); char *mouseOverField = cartOrTdbString(cart, tg->tdb, "mouseOverField", NULL); int mouseOverIdx = bbExtraFieldIndex(bbi, mouseOverField) ; char *mouseOverPattern = NULL; char **fieldNames = NULL; if (!mouseOverIdx) { mouseOverPattern = cartOrTdbString(cart, tg->tdb, "mouseOver", NULL); + if (mouseOverPattern) + { AllocArray(fieldNames, bbi->fieldCount); struct slName *field = NULL, *fields = bbFieldNames(bbi); int i = 0; for (field = fields; field != NULL; field = field->next) fieldNames[i++] = field->name; } + } int filtered = 0; for (bb = bbList; bb != NULL; bb = bb->next) { bigBedIntervalToRow(bb, chromName, startBuf, endBuf, bedRow, ArraySize(bedRow)); // throw away items that don't pass the filters if (!bigBedFilterInterval(bedRow, filters)) { filtered++; continue; } // clip out lollies that aren't in our display range double val = atof(bedRow[lollyField - 1]);