src/hg/inc/hui.h 1.119
1.119 2009/02/27 19:06:22 tdreszer
Added dyAddFilterAsInt and dyAddFilterAsDouble for encodePeak support
Index: src/hg/inc/hui.h
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/inc/hui.h,v
retrieving revision 1.118
retrieving revision 1.119
diff -b -B -U 4 -r1.118 -r1.119
--- src/hg/inc/hui.h 9 Feb 2009 19:40:43 -0000 1.118
+++ src/hg/inc/hui.h 27 Feb 2009 19:06:22 -0000 1.119
@@ -849,8 +849,27 @@
void scoreGrayLevelCfgUi(struct cart *cart, struct trackDb *tdb, char *prefix, int scoreMax);
/* If scoreMin has been set, let user select the shade of gray for that score, in case
* the default is too light to see or darker than necessary. */
+struct dyString *dyAddFilterAsInt(struct cart *cart, struct trackDb *tdb,
+ struct dyString *extraWhere,char *filter,char *defaultVal, char*field, boolean *and);
+/* creates the where clause condition to support numeric int filter range.
+ Filters are expected to follow
+ {fiterName}: trackDb min:max values
+ {filterName}Min: cart variable
+ {filterName}Max: cart variable Optional (and considered non-existent if -99)
+ {filterName}Limits: trackDb allowed range "0:1000" Optional
+ The and param allows stringing multiple where clauses together */
+
+struct dyString *dyAddFilterAsDouble(struct cart *cart, struct trackDb *tdb,
+ struct dyString *extraWhere,char *filter,char *defaultVal, char*field, boolean *and);
+/* creates the where clause condition to support numeric double filters.
+ Filters are expected to follow
+ {fiterName}: trackDb min value;
+ {filterName}Min: cart variable;
+ {filterName}Limits: trackDb allowed range "0.0:10.0" Optional
+ The and param allows stringing multiple where clauses together */
+
void encodePeakCfgUi(struct cart *cart, struct trackDb *tdb, char *name, char *title, boolean boxed);
/* Put up UI for filtering wgEnocde peaks based on score, Pval and Qval */
void genePredCfgUi(struct cart *cart, struct trackDb *tdb, char *name, char *title, boolean boxed);