d147153dbb70eb9018b248543b6f39dde939076a
tdreszer
  Fri Oct 7 16:52:46 2011 -0700
Another set of fixes propted by going through all of hg19 again and another 7 assemblies from different species and clades.
diff --git src/hg/lib/trackDbCustom.c src/hg/lib/trackDbCustom.c
index cf7e001..a1e877b 100644
--- src/hg/lib/trackDbCustom.c
+++ src/hg/lib/trackDbCustom.c
@@ -710,31 +710,32 @@
 else if(startsWithWord("genePred",type)
      && !startsWith("encodeGencodeRaceFrags", tdb->track))  // SPECIAL CASE should be handled in trackDb!
     cType = cfgGenePred;
 else if(sameWord("bedLogR",type)
      || sameWord("peptideMapping", type))
     cType = cfgBedScore;
 else if(startsWithWord("bed", type))
     {
     if (trackDbSetting(tdb, "bedFilter") != NULL)
            cType = cfgBedFilt;
     else
         {
        char *words[3];
         int wordCount = chopLine(cloneString( type), words);
         if ((atoi(words[1]) >= 5 || trackDbSetting(tdb, "scoreMin") != NULL)
-        && (wordCount >= 3)) // Historically needed 'bed n .'
+        && ( wordCount >= 3                                                      // Historically needed 'bed n .'
+            || (!tdbIsTrackUiTopLevel(tdb) && trackDbSettingClosestToHome(tdb, "wgEncode")))) // but encode didn't follow bed n .
             {
             cType = cfgBedScore;
 
             if (!bedScoreHasCfgUi(tdb))
                 cType = cfgNone;
 
             // FIXME: UGLY SPECIAL CASE should be handled in trackDb!
             else if (startsWith("encodeGencodeIntron", tdb->track))
                 cType = cfgNone;
             }
         }
     }
 else if(startsWith("chain",type))
     cType = cfgChain;
 else if (startsWith("bamWig", type))