src/hg/hgTracks/encode.c 1.21

1.21 2009/04/01 23:45:00 angie
In lfFromEncodePeak, pass scoreMin and scoreMax to grayInRange too, not just to adjustBedScoreGrayLevel.
Index: src/hg/hgTracks/encode.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgTracks/encode.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -b -B -U 4 -r1.20 -r1.21
--- src/hg/hgTracks/encode.c	3 Mar 2009 21:11:25 -0000	1.20
+++ src/hg/hgTracks/encode.c	1 Apr 2009 23:45:00 -0000	1.21
@@ -127,9 +127,9 @@
     }
 lf->filterColor = -1;
 lf->orientation = orientFromChar(peak->strand[0]);
 adjustBedScoreGrayLevel(tdb, (struct bed *)peak, scoreMin, scoreMax);
-lf->grayIx = grayInRange((int)peak->score, 0, 1000);
+lf->grayIx = grayInRange((int)peak->score, scoreMin, scoreMax);
 safecpy(lf->name, sizeof(lf->name), peak->name);
 if (peak->blockCount > 0)
     {
     int i;