d59b7f02e464c5b53c8be588a3b5cfd197148eab braney Mon Apr 22 13:34:00 2013 -0700 fix a couple of problems that Max found in bigBed handling. One is spaces were causing problem in custom track bigBed support (not cloning memory which was being chopped by spaces), and the second problem was that bigBedIntervalQuery was adding one character at a time to a dyString that ended up growing to megabyte, which was very slow and timed out in hgc diff --git src/hg/hgc/hgc.c src/hg/hgc/hgc.c index 1154054..78f8609 100644 --- src/hg/hgc/hgc.c +++ src/hg/hgc/hgc.c @@ -24017,31 +24017,31 @@ printf("<A HREF=\"hgTracks?db=%s&position=%s:%d-%d&%s_snake%s=pack\" TARGET=_BLANK><B>Link to block in other species</A><BR>\n", otherDb, qName, qs, qe,hubName,trackHubSkipHubName(database)); int qCenter = (qs + qe) / 2; int newQs = qCenter - qWidth/2; int newQe = qCenter + qWidth/2; printf("<A HREF=\"hgTracks?db=%s&position=%s:%d-%d&%s_snake%s=pack\" TARGET=\"_blank\"><B>Link to same window size in other species</A><BR>\n", otherDb, qName, newQs, newQe,hubName,trackHubSkipHubName(database)); } void doMiddle() /* Generate body of HTML. */ { char *track = cartString(cart, "g"); -char *item = cartOptionalString(cart, "i"); +char *item = cloneString(cartOptionalString(cart, "i")); char *parentWigMaf = cartOptionalString(cart, "parentWigMaf"); struct trackDb *tdb = NULL; if (hIsGisaidServer()) { validateGisaidUser(cart); } /* database and organism are global variables used in many places */ getDbAndGenome(cart, &database, &genome, NULL); organism = hOrganism(database); scientificName = hScientificName(database);