src/hg/inc/bed.h 1.53

1.53 2009/03/18 01:34:07 kent
Adding bedFilter family of functions.
Index: src/hg/inc/bed.h
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/inc/bed.h,v
retrieving revision 1.52
retrieving revision 1.53
diff -b -B -U 4 -r1.52 -r1.53
--- src/hg/inc/bed.h	16 Mar 2009 18:23:06 -0000	1.52
+++ src/hg/inc/bed.h	18 Mar 2009 01:34:07 -0000	1.53
@@ -311,8 +311,27 @@
 struct bed *bedFilterByWildNames(struct bed *bedList, struct slName *wildNames);
 /* Given a bed list and a list of names that may include wildcard characters,
  * return the list of bed items whose name matches at least one wildName. */
 
+boolean bedFilterInt(int value, enum numericFilterType nft, int *filterValues);
+/* Return TRUE if value passes the filter. */
+/* This could probably be turned into a macro if performance is bad. */
+
+boolean bedFilterLong(long long value, enum numericFilterType nft, long long *filterValues);
+/* Return TRUE if value passes the filter. */
+/* This could probably be turned into a macro if performance is bad. */
+
+boolean bedFilterDouble(double value, enum numericFilterType nft, double *filterValues);
+/* Return TRUE if value passes the filter. */
+/* This could probably be turned into a macro if performance is bad. */
+
+boolean bedFilterString(char *value, enum stringFilterType sft, char **filterValues, 
+	boolean invert);
+/* Return TRUE if value passes the filter. */
+
+boolean bedFilterChar(char value, enum charFilterType cft,
+			  char *filterValues, boolean invert);
+/* Return TRUE if value passes the filter. */
 
 struct bed *bedCommaInN(char **pS, struct bed *ret, int fieldCount);
 /* Create a bed out of a comma separated string looking for fieldCount
  * fields. This will fill in ret if non-null, otherwise will return a