src/hg/lib/microarray.c 1.11
1.11 2010/01/22 22:52:02 aamp
Microarray tracks and custom microarray tracks now support the "expColor" trackDb setting which can be "redGreen" (default), "redBlue", "redBlueOnWhite", "yellowBlue", or "redBlueOnYellow". Some things wre changed around so that adding more color options in the future is a cinch.
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;
+}