9007158bac3746b1eb7f76513c8e8631e1ca1ca2
braney
  Fri Mar 21 13:18:22 2025 -0700
add decipher SQL tracks to quickLift support

diff --git src/hg/lib/trackHub.c src/hg/lib/trackHub.c
index a7cbf5366c3..d2bb3aaa7e9 100644
--- src/hg/lib/trackHub.c
+++ src/hg/lib/trackHub.c
@@ -1596,45 +1596,51 @@
     vis = tdb->parent->isShow;
 else
     vis = tdb->parent->visibility != tvHide;
 
 return vis;
 }
 
 struct dyString *trackDbString(struct trackDb *tdb)
 /* Convert a trackDb entry into a dyString. */
 {
 struct dyString *dy;
 
 // add a note that the name based handler shouldn't be used on this track
 // add a note that this is a quickLifted track so the browser will accept tracks that aren't big*
 dy = dyStringNew(200);
-dyStringPrintf(dy, "track %s\nquickLifted on\navoidHandler on\n", trackHubSkipHubName(tdb->track));
+char *track =  trackHubSkipHubName(tdb->track);
+dyStringPrintf(dy, "track %s\nquickLifted on\n", track);
+
+if (!(sameString(track, "decipherSnvs")))
+    dyStringPrintf(dy, "avoidHandler on\n");
     
 dumpTdbAndChildren(dy, tdb);
 
 return dy;
 }
 
 static boolean validateOneTdb(char *db, struct trackDb *tdb)
+/* Make sure the tdb is a track type we grok. */
 {
 if (!( startsWith("bigBed", tdb->type) || \
        startsWith("bigWig", tdb->type) || \
        startsWith("bigDbSnp", tdb->type) || \
        startsWith("bigGenePred", tdb->type) || \
        startsWith("bed ", tdb->type)))
     {
+    //printf("%s not included: bad type %s\n",tdb->track,tdb->type);
     return FALSE;
     }
 
 // make sure we have a bigDataUrl
 if (startsWith("bigBed", tdb->type) || \
        startsWith("bigWig", tdb->type))
     {
     char *fileName = cloneString(trackDbSetting(tdb, "bigDataUrl"));
 
     if (fileName == NULL)
         {
         struct sqlConnection *conn = hAllocConnTrack(db, tdb);
         fileName = bbiNameFromSettingOrTable(tdb, conn, tdb->table);
         hashAdd(tdb->settingsHash, "bigDataUrl", fileName);
         }