cf9ef1c37b1056ff1ef009a25d877120054d19d3 chmalee Fri Oct 24 14:59:16 2025 -0700 Add cartEdit 9 that moves ddg2p track to g2p supertrack and encodeCcresCombined into a cCREs supertrack diff --git src/hg/cgilib/cartRewrite.c src/hg/cgilib/cartRewrite.c index a6a3d1110a7..73aa2b5bb9b 100644 --- src/hg/cgilib/cartRewrite.c +++ src/hg/cgilib/cartRewrite.c @@ -5,47 +5,49 @@ /* Copyright (C) 2021 The Regents of the University of California * See kent/LICENSE or http://genome.ucsc.edu/license/ for licensing information. */ #include "common.h" #include "cart.h" #include "hgConfig.h" void cartEdit0(struct cart *cart); void cartEdit1(struct cart *cart); void cartEdit2(struct cart *cart); void cartEdit3(struct cart *cart); void cartEdit4(struct cart *cart); void cartEdit5(struct cart *cart); void cartEdit6(struct cart *cart); void cartEdit7(struct cart *cart); +void cartEdit9(struct cart *cart); struct cartRewrite { void (*func)(struct cart *cart); }; // Here's the list of cart rewrite functions static struct cartRewrite cartRewrites[] = { { cartEdit0}, { cartEdit1}, { cartEdit2}, { cartEdit3}, { cartEdit4}, { cartEdit5}, { cartEdit6}, { cartEdit7}, +{ cartEdit9}, }; void cartRewrite(struct cart *cart, unsigned trackDbCartVersion, unsigned cartVersion) /* Rewrite the cart to update it to expectations of trackDb. */ { if (sameString(cfgOptionDefault("cartVersion", "on"), "off")) return; // call the rewrite functions to bring us up to the trackDb cart version for(; cartVersion < trackDbCartVersion; cartVersion++) { // if we don't have a rewrite for this increment, bail out // with a warning in the error_log if (cartVersion >= ArraySize(cartRewrites)) {