0b9c2a6f9930555f65104385a9edcb00147a5bc6 braney Mon Feb 3 09:31:56 2025 -0800 add support for quikLifting mySQL beds. diff --git src/hg/inc/quickLift.h src/hg/inc/quickLift.h index 4fad6692afc..e3af0e33706 100644 --- src/hg/inc/quickLift.h +++ src/hg/inc/quickLift.h @@ -1,21 +1,27 @@ /* quickLift genome annotations on the fly between assemblies using chain files */ /* Copyright (C) 2023 The Regents of the University of California * See kent/LICENSE or http://genome.ucsc.edu/license/ for licensing information. */ #ifndef QUICKLIFT_H #define QUICKLIFT_H +typedef struct slList *(*ItemLoader)(char **row); + struct bigBedInterval *quickLiftIntervals(char *instaPortFile, struct bbiFile *bbi, char *chrom, int start, int end, struct hash **pChainHash); /* Return intervals from "other" species that will map to the current window. * These intervals are NOT YET MAPPED to the current assembly. */ struct bed *quickLiftBed(struct bbiFile *bbi, struct hash *chainHash, struct bigBedInterval *bb); /* Using chains stored in chainHash, port a bigBedInterval from another assembly to a bed * on the reference. */ +struct slList *quickLiftSql(struct sqlConnection *conn, char *quickLiftFile, char *table, char *chromName, int winStart, int winEnd, char *query, char *extraWhere, ItemLoader loader, struct hash *chainHash); + unsigned quickLiftGetChain(char *fromDb, char *toDb); /* Return the id from the quickLiftChain table for given assemblies. */ + +struct bed *quickLiftBeds(struct bed *bedList, struct hash *chainHash, boolean blocked); #endif