e506d31b6278bb1251d8b260f75c67fa38c99a27
jcasper
  Thu Jul 23 10:20:01 2026 -0700
Making it possible for multiWig containers to be children of composites, refs #36320

diff --git src/hg/utils/hubCheck/hubCheck.c src/hg/utils/hubCheck/hubCheck.c
index 47365d4d9dd..76a5e2ad827 100644
--- src/hg/utils/hubCheck/hubCheck.c
+++ src/hg/utils/hubCheck/hubCheck.c
@@ -772,40 +772,30 @@
     {
     if (tdb->subtracks == NULL)
         {
         errAbort("Track \"%s\" is declared superTrack, compositeTrack, view or "
             "container, but has no subtracks", tdb->track);
         }
 
     // Containers should not have a bigDataUrl setting
     if (trackDbLocalSetting(tdb, "bigDataUrl"))
         {
         errAbort("Track \"%s\" is a parent track (compositeTrack/superTrack/view/container) but also has "
             "a 'bigDataUrl'. Parent tracks organize subtracks and should not have data files. "
             "Remove 'bigDataUrl' from this stanza, or remove the parent declaration if this is "
             "a data track.", tdb->track);
         }
-
-    // multiWigs cannot be the child of a composite
-    if (tdbIsContainer(tdb) &&
-            (tdb->parent != NULL &&
-            (tdbIsComposite(tdb->parent) || tdbIsCompositeView(tdb->parent))))
-        {
-        errAbort("Track \"%s\" is declared container multiWig and has parent \"%s\"."
-            " Container multiWig tracks cannot be children of composites or views",
-            tdb->track, tdb->parent->track);
-        }
     }
 else if (tdb->subtracks != NULL)
     {
     errAbort("Track \"%s\" has children tracks (e.g: \"%s\"), but is not a "
         "compositeTrack, container, view or superTrack", tdb->track, tdb->subtracks->track);
     }
 }
 
 static char *VALID_TRACK_TYPES[] = {
     "bam", "bigBarChart", "bigBed", "bigChain", "bigGenePred", "bigInteract",
     "bigLolly", "bigMaf", "bigMethyl", "bigNarrowPeak", "bigPsl", "bigRmsk",
     "bigWig", "halSnake", "hic", "longTabix", "vcfPhasedTrio", "vcfTabix", NULL};
 
 static bool isValidTrackType(char *trackType)
 /* check that a track type is valid */