957d66d68b880ec48372643e602e9dbff4326a00 braney Fri Feb 9 11:32:11 2024 -0800 if bigBed is specified as type without other words then we don't score filter diff --git src/hg/hgTracks/bigBedTrack.c src/hg/hgTracks/bigBedTrack.c index 3f53b72..c4942f1 100644 --- src/hg/hgTracks/bigBedTrack.c +++ src/hg/hgTracks/bigBedTrack.c @@ -827,26 +827,25 @@ 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 ((wordCount == 1) && sameString(words[0], "bigBed")) { int fieldCount = getFieldCount(track); - if (fieldCount > 4) // if there are more than four we want to let the user filter by score + if (fieldCount > 3) { char buffer[1024]; safef(buffer, sizeof buffer, "%d", fieldCount); newWords[1] = cloneString(buffer); - newWords[2] = "."; - wordCount = 3; + wordCount = 2; } } complexBedMethods(track, tdb, TRUE, wordCount, newWords); }