src/hg/inc/microarray.h 1.11
1.11 2010/01/22 22:51:49 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/inc/microarray.h
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/inc/microarray.h,v
retrieving revision 1.10
retrieving revision 1.11
diff -b -B -U 4 -r1.10 -r1.11
--- src/hg/inc/microarray.h 26 Feb 2008 17:16:21 -0000 1.10
+++ src/hg/inc/microarray.h 22 Jan 2010 22:51:49 -0000 1.11
@@ -34,8 +34,18 @@
useMedian = 0,
useMean = 1,
};
+/* Enum to use list the types of ways to color the microarray */
+enum expColorType
+ {
+ redGreen = 0,
+ redBlue = 1,
+ yellowBlue = 2,
+ redBlueOnWhite = 3,
+ redBlueOnYellow = 4,
+ };
+
double maDoubleMeanHandleNA(int count, double *array);
/* Calculate the mean value of an array, skipping the NA vals. */
double maDoubleMedianHandleNA(int count, double *array);
@@ -165,5 +175,8 @@
struct maGrouping *maHashToMaGrouping(struct hash *oneGroup);
/* This converts a single "stanza" of the microarrayGroups.ra file to a
maGrouping struct. */
+enum expColorType getExpColorType(char *colorScheme);
+/* From a color type return the respective enum. */
+
#endif