ec5633a2cff4b43137e7940ead29493eed8828de kent Thu Jan 13 20:48:05 2011 -0800 Fixing hgTracks so that hub is in it's own group again. Broke this with some efforts to get things going in hgTables. diff --git src/hg/lib/hubConnect.c src/hg/lib/hubConnect.c index 6194a40..8cc8ebf 100644 --- src/hg/lib/hubConnect.c +++ src/hg/lib/hubConnect.c @@ -159,30 +159,30 @@ char *trackName, struct trackDb **pTdbList, struct hash *trackHash) /* Go find hub for trackName (which will begin with hub_), and load the tracks * for it, appending to end of list and adding to trackHash. Return the * trackDb associated with trackName. */ { int hubId = hubIdFromTrackName(trackName); struct sqlConnection *conn = hConnectCentral(); struct hubConnectStatus *hubStatus = hubConnectStatusForId(conn, hubId); hDisconnectCentral(&conn); if (hubStatus == NULL) errAbort("The hubId %d was not found", hubId); if (!isEmpty(hubStatus->errorMessage)) errAbort("Hub %s at %s has the error: %s", hubStatus->shortLabel, hubStatus->hubUrl, hubStatus->errorMessage); char hubName[16]; -safef(hubName, sizeof(hubName), "%d", hubId); +safef(hubName, sizeof(hubName), "hub_%d", hubId); struct trackHub *hub = trackHubOpen(hubStatus->hubUrl, hubName); struct trackHubGenome *hubGenome = trackHubFindGenome(hub, database); struct trackDb *tdbList = trackHubTracksForGenome(hub, hubGenome); tdbList = trackDbLinkUpGenerations(tdbList); tdbList = trackDbPolishAfterLinkup(tdbList, database); rAddTrackListToHash(trackHash, tdbList, NULL, FALSE); if (pTdbList != NULL) *pTdbList = slCat(*pTdbList, tdbList); struct trackDb *tdb = hashFindVal(trackHash, trackName); if (tdb == NULL) errAbort("Can't find track %s in %s", trackName, hubStatus->hubUrl); return tdb; }