src/hg/hgTables/hgTables.h 1.124

1.124 2009/03/10 01:25:24 kent
First cut of bigWig integration. Handles data point and stats output in cases where there are no filters or intersections going.
Index: src/hg/hgTables/hgTables.h
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgTables/hgTables.h,v
retrieving revision 1.123
retrieving revision 1.124
diff -b -B -U 4 -r1.123 -r1.124
--- src/hg/hgTables/hgTables.h	9 Jan 2009 00:58:27 -0000	1.123
+++ src/hg/hgTables/hgTables.h	10 Mar 2009 01:25:24 -0000	1.124
@@ -592,15 +592,26 @@
 /* ----------- Wiggle business in wiggle.c -------------------- */
 
 #define	MAX_REGION_DISPLAY	1000
 
+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. */
 
 boolean isBedGraph(char *table);
 /* Return TRUE if table is specified as a bedGraph in the current database's 
  * trackDb. */
 
+boolean isBigWig(char *table);
+/* Return TRUE if table is bedGraph in current database's trackDb. */
+
+char *bigWigFileName(char *table, struct sqlConnection *conn);
+/* Return file name associated with bigWig.  This handles differences whether it's
+ * a custom or built-in track.  Do a freeMem on returned string when done. */
+
 struct bed *getWiggleAsBed(
     char *db, char *table, 	/* Database and table. */
     struct region *region,  /* Region to get data for. */
     char *filter, 		/* Filter to add to SQL where clause if any. */
@@ -639,8 +650,12 @@
 /* Return wiggle data in variableStep format. */
 
 void doSummaryStatsWiggle(struct sqlConnection *conn);
 /* Put up page showing summary stats for wiggle track. */
+
+void doSummaryStatsBigWig(struct sqlConnection *conn);
+/* Put up page showing summary stats for bigWig track. */
+
 void wigShowFilter(struct sqlConnection *conn);
 /* print out wiggle data value filter */
 
 /* ----------- Custom track stuff. -------------- */