6f5408b67c1b4534efa4d795bc3776c6c667d586 braney Fri Dec 22 18:29:07 2017 -0800 implement missing data handling in mathWigs diff --git src/hg/lib/trackHub.c src/hg/lib/trackHub.c index 1c20bd2..d571bfd 100644 --- src/hg/lib/trackHub.c +++ src/hg/lib/trackHub.c @@ -788,31 +788,31 @@ if ((superTrack != NULL) && startsWith("on", superTrack)) isSuper = TRUE; if (!(trackDbSetting(tdb, "compositeTrack") || trackDbSetting(tdb, "container") || isSuper)) { errAbort("Parent track %s is not compositeTrack, container, or superTrack in hub %s genome %s", 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 (! isCustomComposite(tdb)) { if (startsWithWord("mathWig", type) ) { requiredSetting(hub, genome, tdb, "mathDataUrl"); } else { if (!(startsWithWord("wig", type)|| startsWithWord("bedGraph", type))) { if (!(startsWithWord("bigWig", type) || startsWithWord("bigBed", type) || #ifdef USE_HAL startsWithWord("pslSnake", type) || startsWithWord("halSnake", type) || #endif