cb9de88c1e416860a1a69047f6e4c9b338a1cfec braney Tue Jul 18 17:22:47 2023 -0700 first cut at liftOver on the fly diff --git src/hg/lib/hdb.c src/hg/lib/hdb.c index 94ca972..deafa1a 100644 --- src/hg/lib/hdb.c +++ src/hg/lib/hdb.c @@ -3903,31 +3903,31 @@ /* fill in supertrack fields, if any in settings */ trackDbSuperMarkup(tdbList); trackDbAddTableField(tdbList); return tdbList; } boolean trackDataAccessibleHash(char *database, struct trackDb *tdb, struct hash *gbdbHash) /* Return TRUE if underlying data are accessible - meaning the track has either * a bigDataUrl with remote URL (http:// etc), a bigDataUrl with an existing local file, * or a database table with the same name. * Note: this returns FALSE for composite tracks; use this on subtracks or simple tracks. * * if gbdbHash is not NULL, use it when looking for the file */ { -if (startsWith("mathWig", tdb->type) || startsWith("cartVersion", tdb->type)) +if (startsWith("mathWig", tdb->type) || startsWith("cartVersion", tdb->type)|| startsWith("instaPort", tdb->type) ) return TRUE; // assume mathWig data is available. Fail at load time if it isn't // cartVersion is a pseudo trackDb entry with no data char *bigDataUrl = trackDbSetting(tdb, "bigDataUrl"); if (bigDataUrl != NULL) { bigDataUrl = replaceChars(bigDataUrl, "$D", database); char *bigDataUrlLocal = hReplaceGbdb(bigDataUrl); if (hasProtocol(bigDataUrlLocal)) return TRUE; else { if (gbdbHash == NULL) return fileExists(bigDataUrlLocal); else return hashLookup(gbdbHash, bigDataUrlLocal) != NULL;