src/hg/hgTables/microarrayTables.c 1.3

1.3 2009/04/10 23:52:18 aamp
Added error Ann suggested when intersection is turned on.
Index: src/hg/hgTables/microarrayTables.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgTables/microarrayTables.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -b -B -U 4 -r1.2 -r1.3
--- src/hg/hgTables/microarrayTables.c	10 Apr 2009 20:04:29 -0000	1.2
+++ src/hg/hgTables/microarrayTables.c	10 Apr 2009 23:52:18 -0000	1.3
@@ -18,9 +18,13 @@
 
 void doOutMicroarrayNames(struct trackDb *tdb)
 /* Show the microarray names from .ra file */
 {
-struct microarrayGroups *allGroups = maGetTrackGroupings(database, tdb);
+struct microarrayGroups *allGroups;
+if (anyIntersection())
+    errAbort("Can't do all fields output when intersection is on. "
+    "Please go back and select another output type (BED or custom track is good), or clear the intersection.");
+allGroups = maGetTrackGroupings(database, tdb);
 if (allGroups)
     {
     struct maGrouping *allArrays = allGroups->allArrays;
     int i;