19e5eb84fda6b765410726d439ab366dce141e94 chmalee Wed Oct 29 16:07:50 2025 -0700 For the ddg2p cart rewrite, only turn on the new g2p container super track is the decipher supertrack was on previously diff --git src/hg/cgilib/cartEdit9.c src/hg/cgilib/cartEdit9.c index cb4dbe2d6a2..e5cf6160bb8 100644 --- src/hg/cgilib/cartEdit9.c +++ src/hg/cgilib/cartEdit9.c @@ -1,28 +1,31 @@ /* The eigth edition of cartEdits. Please note that historically, cartEdit files * were named with 0-index names, like cartEdit0, cartEdit1, ... but the corresponding * trackDb entry referring to the cartEdit was 1-indexes, cartVersion 1, ... * Beginning with this cartEdit, we will now name cartEdits 1-indexed, so there * will be no cartEdit8, just like there was no October 5-14, 1582. */ #include "common.h" #include "cart.h" static char *edit9TracksCcre[] = { "encodeCcreCombined", }; static char *edit9TracksG2p[] = { "ddg2p", }; void cartEdit9(struct cart *cart) { int length = 0; // turn the encodeCcreCombined track into a child of the new ccres supertrack length = ArraySize(edit9TracksCcre); cartTurnOnSuper(cart, edit9TracksCcre, length, "cCREs"); // Move the ddg2p track from the decipher container to it's own supertrack +// but only if the decipherContainer was on previously and ddg2p was also on length = ArraySize(edit9TracksG2p); +char *oldContainerVis = cartOptionalString(cart, "decipherContainer"); +if (oldContainerVis && sameString(oldContainerVis, "show")) cartTurnOnSuper(cart, edit9TracksG2p, length, "g2pContainer"); }