src/hg/hgTables/wiggle.c 1.70
1.70 2009/03/13 21:40:33 kent
Making a sweep to make sure that bigWig is addressed everywhere bedGraph is addressed.
Index: src/hg/hgTables/wiggle.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgTables/wiggle.c,v
retrieving revision 1.69
retrieving revision 1.70
diff -b -B -U 4 -r1.69 -r1.70
--- src/hg/hgTables/wiggle.c 12 Mar 2009 19:44:21 -0000 1.69
+++ src/hg/hgTables/wiggle.c 13 Mar 2009 21:40:33 -0000 1.70
@@ -331,9 +331,9 @@
/* If table is type wig (not bedGraph), then intersection has already been
* performed on each input (other selected subtracks must be the same type
* as table).
* Otherwise, handle intersection here. */
-if (anyIntersection() && !isWiggle(database, table))
+if (anyIntersection() && !isWiggle(database, table) && !isBigWig(table))
{
char *track2 = cartString(cart, hgtaIntersectTrack);
char *table2 = cartString(cart, hgtaIntersectTable);
if (table2 && differentWord(table2, table))
@@ -342,9 +342,9 @@
struct trackTable *tt2 = trackTableNew(tdb2, table2, conn);
struct dataVector *dataVector2 = dataVectorFetchOneRegion(tt2, region,
conn);
char *op = cartString(cart, hgtaIntersectOp);
- boolean dv2IsWiggle = (isWiggle(database, table2) ||
+ boolean dv2IsWiggle = (isWiggle(database, table2) || isBigWig(table2) ||
isBedGraph(table2));
dataVectorIntersect(dataVector1, dataVector2,
dv2IsWiggle, sameString(op, "none"));
dataVectorFree(&dataVector2);