406740c2dc67f2bb8e217627dcbbe00a204fd594
kate
  Mon Dec 4 15:37:32 2017 -0800
Add support for item color, using Ensembl extension (RGB instead of value).  http://www.ensembl.org/info/website/upload/pairwise.html

diff --git src/hg/inc/longRange.h src/hg/inc/longRange.h
index eccf246..0e0a557 100644
--- src/hg/inc/longRange.h
+++ src/hg/inc/longRange.h
@@ -1,47 +1,50 @@
 /* longRange - Long Range Interaction Format functions */
 
 /* Copyright (C) 2013 The Regents of the University of California 
  * See README in this or parent directory for licensing information. */
 #ifndef LONGRANGE_H
 #define LONGRANGE_H
 
 #include "common.h"
 #include "cheapcgi.h"
 #include "cart.h"
 #include "trackDb.h"
 #include "bed.h"
 
 #define LONG_HEIGHT "heightPer"
 #define LONG_MINHEIGHT 20
 #define LONG_MAXHEIGHT 300
 #define LONG_DEFHEIGHT "200"
 #define LONG_MINSCORE "minScore"
 #define LONG_DEFMINSCORE "0"
 
 struct longRange
 {
 struct longRange *next;
 char *name;
 unsigned s;
 unsigned sw;
 int sOrient;
 char *sChrom;
 unsigned e;
 unsigned ew;
 int eOrient;
 char *eChrom;
 unsigned height;
 double score;
 unsigned id;
+// Ensembl extension -- RGB color can be supplied instead of score
+boolean hasColor;
+unsigned rgb;
 };
 
 void longRangeCfgUi(struct cart *cart, struct trackDb *tdb, char *name, char *title, boolean boxed);
 /* Complete track controls for long range interaction. */
 
 struct longRange *parseLongTabix(struct bed *beds, unsigned *maxWidth, double minScore);
 /* Parse longTabix format into longRange structures */
 
 struct asObject *longTabixAsObj();
 /* Return asObject describing fields of longTabix file. */
 
 #endif//def LONGRANGE_H