src/hg/hgTables/hgTables.h 1.138
1.138 2009/05/20 20:59:56 mikep
Libified findTdbForTable, findTypeForTable, trackIsType, hIsBigBed from hgTables so that other code can easily determine if a track is a bigBed.
Index: src/hg/hgTables/hgTables.h
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgTables/hgTables.h,v
retrieving revision 1.137
retrieving revision 1.138
diff -b -B -U 4 -r1.137 -r1.138
--- src/hg/hgTables/hgTables.h 16 Apr 2009 18:18:36 -0000 1.137
+++ src/hg/hgTables/hgTables.h 20 May 2009 20:59:56 -0000 1.138
@@ -673,11 +673,8 @@
/* type of output requested from static int wigOutRegion() */
{
wigOutData, wigOutBed, wigDataNoPrint,
};
-boolean trackIsType(char *table, char *type);
-/* Return TRUE track is a specific type. Type should be something like "bed" or
- * "bigBed" or "bigWig" */
boolean isWiggle(char *db, char *table);
/* Return TRUE if db.table is a wiggle. */
@@ -748,11 +745,8 @@
/* Put up page showing summary stats for bigWig track. */
/* ----------- BigBed business in bigBed.c -------------------- */
-boolean isBigBed(char *table);
-/* Return TRUE if table corresponds to a bigBed file. */
-
char *bigBedFileName(char *table, struct sqlConnection *conn);
/* Return file name associated with bigBed. This handles differences whether it's
* a custom or built-in track. Do a freeMem on returned string when done. */
@@ -782,8 +776,11 @@
/* ----------- Custom track stuff. -------------- */
struct customTrack *getCustomTracks();
/* Get custom track list. */
+struct customTrack *ctLookupName(char *name);
+/* Lookup name in custom track list */
+
void removeNamedCustom(struct customTrack **pList, char *name);
/* Remove named custom track from list if it's on there. */
void flushCustomTracks();
@@ -800,11 +797,8 @@
/* Get list of beds from custom track of given name that are
* in current regions and that pass filters. You can bedFree
* this when done. */
-#define lookupCt(name) ctFind(getCustomTracks(),name)
-/* Find named custom track. */
-
struct customTrack *newCt(char *ctName, char *ctDesc, int visNum, char *ctUrl,
int fields);
/* Make a new custom track record for the query results. */
@@ -1040,11 +1034,5 @@
/* Show the microarray names from .ra file */
#define uglyw warn /* Warn for debugging purposes. */
-struct trackDb *findTdbForTable(char *db,struct trackDb *parent,char *table);
-/* Find or creates the tdb for this table. Might return NULL! (e.g. all tables) */
-
-char *findTypeForTable(char *db,struct trackDb *parent,char *table);
-/* Finds the TrackType for this Table */
-
#endif /* HGTABLES_H */