Index: src/hg/lib/microarray.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/lib/microarray.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -b -B -U 4 -r1.10 -r1.11
--- src/hg/lib/microarray.c	30 Sep 2008 18:03:48 -0000	1.10
+++ src/hg/lib/microarray.c	22 Jan 2010 22:52:02 -0000	1.11
@@ -971,4 +971,18 @@
 	bed->expIds[i] = i;
     }
 expDataFreeList(&clumpedExps);
 }
+
+enum expColorType getExpColorType(char *colorScheme)
+/* From a color type return the respective enum. */
+{
+if (sameString(colorScheme, "redBlue"))
+    return redBlue;
+if (sameString(colorScheme, "yellowBlue"))
+    return yellowBlue;
+if (sameString(colorScheme, "redBlueOnWhite"))
+    return redBlueOnWhite;
+if (sameString(colorScheme, "redBlueOnYellow"))
+    return redBlueOnYellow;
+return redGreen;
+}

