1f163a84db47d2732e0b2d36d51a86a6308b2c34
tdreszer
Mon Jul 23 11:52:04 2012 -0700
Another round of checkins as dictated by Jim. Required to add a space between 'for' and '('. Can this really be justified?
diff --git src/hg/hgTracks/expRatioTracks.c src/hg/hgTracks/expRatioTracks.c
index 853afdf..c0831b5 100644
--- src/hg/hgTracks/expRatioTracks.c
+++ src/hg/hgTracks/expRatioTracks.c
@@ -1022,31 +1022,32 @@
maxDeviation = fullMax;
else
maxDeviation = denseMax;
/* cap the value to be less than or equal to maxDeviation */
if(val > 5000)maxDeviation=3;
if(absVal > maxDeviation)
absVal = maxDeviation;
/* project the value into the number of colors we have.
* i.e. if val = 1.0 and max is 2.0 and number of shades is 16 then index would be
* 1 * 15 /2.0 = 7.5 = 7
*/
colorIndex = (int)(absVal * maxRGBShade/maxDeviation);
if (val > 0)
- if(val == addednumber+1){
+ if (val == addednumber+1)
+ {
return shadesOfLowe1[9];
}
else if(val == addednumber+2){
return shadesOfLowe2[9];
}
else if(val == addednumber+3){
return shadesOfLowe3[9];
}
else{
return shadesOfRed[colorIndex];
}
else
{
if(colorSchemeFlag == 0)
return shadesOfGreen[colorIndex];