ba33f2c600399d5b4b97dd5fd987ed2db3c891ba
chmalee
  Tue May 19 13:40:42 2026 -0700
myVariants related fixes from code review. Standardize how the code determines we are about to do something myVariants related by #defining some strings and using sameOk to check for them, remove a dead code block, and have hgc use autoSql to load the myVariants item rather than check the raw sql result, refs #37528

diff --git src/hg/lib/hui.c src/hg/lib/hui.c
index 9335dccda83..61a1597fe41 100644
--- src/hg/lib/hui.c
+++ src/hg/lib/hui.c
@@ -10414,31 +10414,31 @@
     char *fileName = hReplaceGbdb(tdbBigFileName(conn, tdb));
     if (fileName == NULL)
         return NULL;
     asObj = bigBedFileAsObjOrDefault(fileName);
     freeMem(fileName);
     }
 // TODO: standardize to a wig as
 //else if (tdbIsBigWig(tdb))
 //    asObj = asObjFrombigBed(conn,tdb);
 else if (tdbIsLongTabix(tdb))
     asObj = longTabixAsObj();
 else if (tdbIsBam(tdb))
     asObj = bamAsObj();
 else if (tdbIsVcf(tdb))
     asObj = vcfAsObj();
-else if (startsWithWord("myVariants", tdb->type))
+else if (isMyVariantsType(tdb->type))
     asObj = myVariantsAsObj();
 else if (sameWord("bedDetail", tdb->type))
     asObj = bedDetailAsObj();
 else if (sameWord("pgSnp", tdb->type))
     asObj = pgSnpAsObj();
 else if (sameWord("barChart", tdb->type))
     asObj = asParseText(barChartAutoSqlString);
 else if (sameWord("interact", tdb->type))
     asObj = interactAsObj();
 else if (sameWord("hic", tdb->type))
     // HI-C data are stored in .hic files, but parsed into interact objects
     asObj = interactAsObj();
 else if (sameWord("bedMethyl", tdb->type))
     asObj = bedMethylAsObj();
 else