src/hg/hgTables/hgTables.h 1.132
1.132 2009/03/18 01:34:53 kent
Getting filters to work on bigBed. Next up - intersections!
Index: src/hg/hgTables/hgTables.h
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgTables/hgTables.h,v
retrieving revision 1.131
retrieving revision 1.132
diff -b -B -U 4 -r1.131 -r1.132
--- src/hg/hgTables/hgTables.h 17 Mar 2009 20:48:36 -0000 1.131
+++ src/hg/hgTables/hgTables.h 18 Mar 2009 01:34:53 -0000 1.132
@@ -607,9 +607,37 @@
void wigFilterStatRow(struct sqlConnection *conn);
/* Put row in statistics table that says what wig filter is on. */
-/* ----------- ChromGraph stuff in chromGraph.c. */
+/* ----------- Filter stuff in filterFields.c. -------- */
+
+void cgiToCharFilter(char *dd, char *pat, enum charFilterType *retCft,
+ char **retVals, boolean *retInv);
+/* Given a "does/doesn't" and a (list of) literal chars from CGI, fill in
+ * retCft, retVals and retInv to make a filter. */
+
+void cgiToStringFilter(char *dd, char *pat, enum stringFilterType *retSft,
+ char ***retVals, boolean *retInv);
+/* Given a "does/doesn't" and a (list of) regexps from CGI, fill in
+ * retCft, retVals and retInv to make a filter. */
+
+void cgiToDoubleFilter(char *cmp, char *pat, enum numericFilterType *retNft,
+ double **retVals);
+/* Given a comparison operator and a (pair of) integers from CGI, fill in
+ * retNft and retVals to make a filter. */
+
+void cgiToLongFilter(char *cmp, char *pat, enum numericFilterType *retNft,
+ long long **retVals);
+/* Given a comparison operator and a (pair of) integers from CGI, fill in
+ * retNft and retVals to make a filter. */
+
+void cgiToIntFilter(char *cmp, char *pat, enum numericFilterType *retNft,
+ int **retVals);
+/* Given a comparison operator and a (pair of) integers from CGI, fill in
+ * retNft and retVals to make a filter. */
+
+
+/* ----------- ChromGraph stuff in chromGraph.c. --------- */
boolean isChromGraph(struct trackDb *track);
/* Return TRUE if it's a chromGraph track */
void doOutChromGraphDataCt(struct trackDb *track, char *table);
@@ -738,9 +766,9 @@
struct sqlFieldType *bigBedListFieldsAndTypes(char *table, struct sqlConnection *conn);
/* Get fields of bigBed as list of sqlFieldType. */
-void bigBedTabOut(char *table, struct sqlConnection *conn, char *fields, FILE *f);
+void bigBedTabOut(char *db, char *table, struct sqlConnection *conn, char *fields, FILE *f);
/* Print out selected fields from Big Bed. If fields is NULL, then print out all fields. */
void showSchemaBigBed(char *table);
/* Show schema on bigBed. */