8b49d2145ae719c3b3577de7956f7b9131c385ba angie Wed Jan 7 09:43:45 2015 -0800 Libified code from hgVai/libifyMe.c to lib/hAnno.c in anticipationof sharing code with hgAi. Also added hAnnoGetAutoSqlForTdb for hgAi. diff --git src/hg/hgVai/libifyMe.h src/hg/hgVai/libifyMe.h index 6ca5f01..32a1e65 100644 --- src/hg/hgVai/libifyMe.h +++ src/hg/hgVai/libifyMe.h @@ -1,44 +1,23 @@ /* Stuff lifted from hgTables that should be libified. */ /* Copyright (C) 2013 The Regents of the University of California * See README in this or parent directory for licensing information. */ #ifndef LIBIFYME_H #define LIBIFYME_H #include "annoFormatVep.h" #include "annoStreamVcf.h" #include "annoGrator.h" boolean lookupPosition(struct cart *cart, char *cartVar); /* Look up position if it is not already seq:start-end. * Return FALSE if it has written out HTML showing multiple search results. * If webGotWarnings() is true after this returns FALSE, no match was found * and a warning box was displayed, in which case it's good to reset position * to cart's lastPosition before proceeding. */ -boolean hasCustomTracks(struct cart *cart); -/* Return TRUE if cart has custom tracks for the current db. */ - void nbSpaces(int count); /* Print some non-breaking spaces. */ -struct annoAssembly *getAnnoAssembly(char *db); -/* Make annoAssembly for db. */ - -struct annoStreamer *streamerFromTrack(struct annoAssembly *assembly, char *selTable, - struct trackDb *tdb, char *chrom, int maxOutRows); -/* Figure out the source and type of data and make an annoStreamer. */ - -struct annoGrator *gratorFromBigDataFileOrUrl(char *fileOrUrl, struct annoAssembly *assembly, - int maxOutRows, enum annoGratorOverlap overlapRule); -/* Determine what kind of big data file/url we have, make an annoStreamer & in annoGrator. */ - -struct annoGrator *gratorFromTrackDb(struct annoAssembly *assembly, char *selTable, - struct trackDb *tdb, char *chrom, int maxOutRows, - struct asObject *primaryAsObj, - enum annoGratorOverlap overlapRule); -/* Figure out the source and type of data, make an annoStreamer & wrap in annoGrator. - * If not NULL, primaryAsObj is used to determine whether we can make an annoGratorGpVar. */ - #endif//ndef LIBIFYME_H