b2b58edce8b1d75567737b05e21ba9103073c69d chmalee Mon May 4 12:11:37 2026 -0700 Fix myVariants tracks to load via a hardcoded query rather than hRangeQuery because the tableName is already qualified with the database. Remove dead code after refactor. Fix table browser output for myVariants tracks for various options, refs #33808 diff --git src/hg/hgTables/custom.c src/hg/hgTables/custom.c index d5ba39d413b..89ffca70632 100644 --- src/hg/hgTables/custom.c +++ src/hg/hgTables/custom.c @@ -490,30 +490,32 @@ struct hash *idHash = NULL; struct region *region; int fieldCount; if (ct == NULL) errAbort("Can't find custom track %s", name); char *type = ct->dbTrackType; if (type != NULL && (startsWithWord("myVariants", type) || sameWord("bedDetail", type) || sameWord("barChart", type) || sameWord("interact", type) || sameWord("bedMethyl", type) || sameWord("pgSnp", type))) { + if (sameWord("myVariants", type) && ct->dbTableName == NULL) + ct->dbTableName = myVariantsResolveDbTableForCustomTrack(ct->tdb->table, cart); struct sqlConnection *conn = hAllocConn(CUSTOM_TRASH); bedList = dbGetFilteredBedsOnRegions(conn, CUSTOM_TRASH, db, ct->dbTableName, name, regionList, lm, retFieldCount); hFreeConn(&conn); fieldCount = 9; if (sameWord("bedDetail", type)) fieldCount = *retFieldCount; else if (sameWord("pgSnp", type)) fieldCount = 4; else if (sameWord("barChart", type)) fieldCount = 6; else if (sameWord("interact", type)) fieldCount = 5; else if (sameWord("bedMethyl", type)) fieldCount = 5;