5391f8f822dd0c18704b57e3e455ae83bcfa8aca fanhsu Mon Jan 3 15:04:35 2011 -0800 Corrected a bug, reversing the display values of Minimum span and maximum span. diff --git src/hg/hgc/wiggleClick.c src/hg/hgc/wiggleClick.c index 8dd3dbf..9ea4379 100644 --- src/hg/hgc/wiggleClick.c +++ src/hg/hgc/wiggleClick.c @@ -186,32 +186,32 @@ if (minVal > val) minVal = val; if (maxVal < val) maxVal = val; } char num1Buf[64], num2Buf[64]; /* big enough for 2^64 (and then some) */ sprintLongWithCommas(num1Buf, iCount); sprintLongWithCommas(num2Buf, iTotalSize); bits32 winSize = end-start; printf("<B>Statistics on:</B> %s <B>items covering</B> %s bases (%4.2f%% coverage)<BR>\n", num1Buf, num2Buf, 100.0*iTotalSize/winSize); printf("<B>Average item spans</B> %4.2f <B>bases.</B> ", (double)iTotalSize/iCount); if (biggestSize != smallestSize) { - sprintLongWithCommas(num1Buf, biggestSize); - sprintLongWithCommas(num2Buf, smallestSize); + sprintLongWithCommas(num1Buf, smallestSize); + sprintLongWithCommas(num2Buf, biggestSize); printf("<B>Minimum span</B> %s <B>maximum span</B> %s", num1Buf, num2Buf); } printf("<BR>\n"); printf("<B>Average value</B> %g <B>min</B> %g <B>max</B> %g <B> standard deviation </B> %g<BR>\n", sum/iCount, minVal, maxVal, calcStdFromSums(sum, sumSquares, iCount)); } static void bigWigClick(struct trackDb *tdb, char *fileName) /* Display details for BigWig data tracks. */ { char *chrom = cartString(cart, "c"); /* Open BigWig file and get interval list. */ struct bbiFile *bbi = NULL;