207194e06b99eef7caf1090af4fdd78c6fd08d0a braney Fri Sep 22 14:04:54 2017 -0700 support custom tracks in collections diff --git src/hg/lib/hdb.c src/hg/lib/hdb.c index 4755bf9..807d17a 100644 --- src/hg/lib/hdb.c +++ src/hg/lib/hdb.c @@ -3767,30 +3767,34 @@ { char *bigDataUrlLocal = hReplaceGbdb(bigDataUrl); boolean exists; if (hasProtocol(bigDataUrlLocal)) exists = udcExists(bigDataUrlLocal); else exists = fileExists(bigDataUrlLocal); freeMem(bigDataUrlLocal); return exists; } } else { // we now allow references to native tracks in track hubs tdb->table = trackHubSkipHubName(tdb->table); + + // if it's copied from a custom track, wait to find data later + if (isCustomTrack(tdb->table)) + return TRUE; return (hTableForTrack(database, tdb->table) != NULL); } } static void addTrackIfDataAccessible(char *database, struct trackDb *tdb, boolean privateHost, struct trackDb **tdbRetList) /* check if a trackDb entry should be included in display, and if so * add it to the list, otherwise free it */ { if ((!tdb->private || privateHost) && trackDataAccessible(database, tdb)) slAddHead(tdbRetList, tdb); else if (tdbIsDownloadsOnly(tdb)) { // While it would be good to make table NULL, since we should support tracks // without tables (composties, etc) and even data tracks without tables (bigWigs).