36174525f6181ecb2412a076afdf755dc226fdcd
chmalee
  Wed Feb 28 14:48:09 2024 -0800
Do not try to figure out bigBed type number for super tracks, refs #19984

diff --git src/hg/hgTracks/bigBedTrack.c src/hg/hgTracks/bigBedTrack.c
index d84c5fe..7f07df3 100644
--- src/hg/hgTracks/bigBedTrack.c
+++ src/hg/hgTracks/bigBedTrack.c
@@ -824,28 +824,28 @@
 
 return 3; // if we can't get the bbi, use the minimum
 }
 
 void bigBedMethods(struct track *track, struct trackDb *tdb, 
                                 int wordCount, char *words[])
 /* Set up bigBed methods. */
 {
 char *newWords[wordCount];
 
 int ii;
 for(ii=0; ii < wordCount; ii++)
     newWords[ii] = words[ii];
 
 // let's help the user out and get the definedFieldCount if they didn't specify it on the type line
-if ((track->tdb->subtracks == NULL) && (wordCount == 1) && sameString(words[0], "bigBed")) 
+if (!tdbIsSuper(track->tdb) && (track->tdb->subtracks == NULL) && (wordCount == 1) && sameString(words[0], "bigBed"))
     {
     int fieldCount = getFieldCount(track);
     if (fieldCount > 3) 
         {
         char buffer[1024];
         safef(buffer, sizeof buffer, "%d", fieldCount);
         newWords[1] = cloneString(buffer);
         wordCount = 2;
         }
     }
 complexBedMethods(track, tdb, TRUE, wordCount, newWords);
 }