a75cfac22803c312074299aa0dcf286ca336ce89 braney Wed Aug 27 13:28:08 2025 -0700 ongoing work on quickLift hgc page plus a fix for genepreds that don't successfully quickLift diff --git src/hg/hgTracks/quickLiftPull.c src/hg/hgTracks/quickLiftPull.c new file mode 100644 index 00000000000..8ce6ac9bd49 --- /dev/null +++ src/hg/hgTracks/quickLiftPull.c @@ -0,0 +1,60 @@ + +// Code to parse list of exported data track hubs from table and print as browser dialog +// for client dialog (js) +// +/* Copyright (C) 2024 The Regents of the University of California + * See kent/LICENSE or http://genome.ucsc.edu/license/ for licensing information. */ + +#include "common.h" +#include "dystring.h" +#include "hCommon.h" +#include "hgConfig.h" +#include "htmshell.h" +#include "hash.h" +#include "web.h" +#include "ra.h" +#include "hgTracks.h" +#include "hgFind.h" +#include "obscure.h" +#include "net.h" +#include "hubConnect.h" +#include "trackHub.h" +#include "exportedDataHubs.h" + +boolean quickLiftPullEnabled() +{ +return TRUE; +} + +void quickLiftPull(char *db) +/* Fill out exported data hubs popup. */ +{ +if (!quickLiftPullEnabled()) + return; + +hPrintf("
"); +#ifdef NOTNOW +struct sqlConnection *conn = hConnectCentral(); +char **row; +char query[2048]; +sqlSafef(query, sizeof(query), "select x.id,q.id,x.db,x.label,x.description,x.path,q.path from quickLiftChain q,exportedDataHubs x where q.fromDb=x.db and q.toDb='%s' and x.label not like 'Private';", trackHubSkipHubName(db)); + +hPrintf("| %s | %s | %s |