src/hg/hgc/hgc.c 1.1544
1.1544 2009/05/15 09:25:54 mikep
Could not get DNA from bigBed because bigBed table has only a single column 'fileName' and it cannot be range queried (Easier solution than doign custom code for range query)
Index: src/hg/hgc/hgc.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgc/hgc.c,v
retrieving revision 1.1543
retrieving revision 1.1544
diff -b -B -U 4 -r1.1543 -r1.1544
--- src/hg/hgc/hgc.c 14 May 2009 23:31:25 -0000 1.1543
+++ src/hg/hgc/hgc.c 15 May 2009 09:25:54 -0000 1.1544
@@ -4180,13 +4180,14 @@
start = cartInt(cart, "o");
end = cartInt(cart, "t");
}
- /* Table might be a custom track; if it's not in the database,
- * just get DNA as if no table were given. */
+ /* Table might be a custom track if it's not in the database,
+ * or bigBed if it is in the database but has only one column called 'fileName';
+ * in which case, just get DNA as if no table were given. */
hParseTableName(database, tbl, rootName, parsedChrom);
hti = hFindTableInfo(database, seqName, rootName);
- if (hti == NULL)
+ if (hti == NULL || hti->startField[0] == 0)
{
itemCount = 1;
hgSeqRange(database, seqName, start, end, '?', tbl);
}