8fe61f9fc004c6a92c95bae538d72853baffd3d1
braney
  Mon Oct 9 18:11:21 2017 -0700
oops... need bedGraph in another if

diff --git src/hg/lib/trackHub.c src/hg/lib/trackHub.c
index 2bb3d05..6739024 100644
--- src/hg/lib/trackHub.c
+++ src/hg/lib/trackHub.c
@@ -796,31 +796,31 @@
 		tdb->track, hub->url, genome->name);
 	}
     }
 else
     {
     /* Check type field. */
     char *type = requiredSetting(hub, genome, tdb, "type");
     if (!( isCustomComposite(tdb) && (startsWithWord("wig", type) ||  startsWithWord("bedGraph", type))))
         {
         if (startsWithWord("mathWig", type) )
             {
             requiredSetting(hub, genome, tdb, "mathDataUrl");
             }
         else 
             {
-            if (!startsWithWord("wig", type) )
+            if (!(startsWithWord("wig", type)||  startsWithWord("bedGraph", type)))
                 {
                 if (!(startsWithWord("bigWig", type) ||
                   startsWithWord("bigBed", type) ||
 #ifdef USE_HAL
                   startsWithWord("pslSnake", type) ||
                   startsWithWord("halSnake", type) ||
 #endif
                   startsWithWord("vcfTabix", type) ||
                   startsWithWord("bigPsl", type) ||
                   startsWithWord("bigMaf", type) ||
                   startsWithWord("longTabix", type) ||
                   startsWithWord("bigGenePred", type) ||
                   startsWithWord("bigChain", type) ||
                   startsWithWord("bigBarChart", type) ||
                   startsWithWord("bam", type)))