src/hg/inc/hdb.h 1.168
1.168 2009/08/14 07:16:08 aamp
Change to hGetBedRange() for custom tracks. The problem was that hParseTableName expected a database to be passed to it that included a chromInfo table. customTrash isn't one of those databases, so instead we're also including the name of the database being browsed.
Index: src/hg/inc/hdb.h
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/inc/hdb.h,v
retrieving revision 1.167
retrieving revision 1.168
diff -b -B -U 4 -r1.167 -r1.168
--- src/hg/inc/hdb.h 20 May 2009 20:59:55 -0000 1.167
+++ src/hg/inc/hdb.h 14 Aug 2009 07:16:08 -0000 1.168
@@ -343,8 +343,14 @@
* attempt is made to get a more compact description that doesn't include
* species name. Acc may optionally include the version. NULL is returned if
* a description isn't available. Free string when done. */
+struct bed *hGetCtBedRange(char *db, char *browserDb, char *table, char *chrom, int chromStart,
+ int chromEnd, char *sqlConstraints);
+/* Return a bed list of all items (that match sqlConstraints, if nonNULL)
+ * in the given range in table. If chromEnd is 0, omit the range (whole chrom).
+ * WARNING: this does not use the bin column and maybe slower than you would like. */
+
struct bed *hGetBedRange(char *db, char *table, char *chrom, int chromStart,
int chromEnd, char *sqlConstraints);
/* Return a bed list of all items (that match sqlConstraints, if nonNULL)
* in the given range in table. If chromEnd is 0, omit the range (whole chrom).