294da47729cfc7a001aae0b530f10280114ffcff
angie
  Mon Dec 17 14:58:45 2012 -0800
annoFormatTab: use %g instead of %f for floats, for consistency with bigWig output.
diff --git src/lib/annoFormatTab.c src/lib/annoFormatTab.c
index 8961d28..af47fda 100644
--- src/lib/annoFormatTab.c
+++ src/lib/annoFormatTab.c
@@ -79,31 +79,31 @@
 AllocArray(words, 1);
 char avgStr[32];
 safef(avgStr, sizeof(avgStr), "%lf", avg);
 words[0] = cloneString(avgStr);
 return words;
 }
 
 static char **wordsFromWigRowVals(struct annoRow *row)
 /* Return an array of strings with a single string containing comma-sep per-base wiggle values. */
 {
 float *vector = row->data;
 int len = row->end - row->start;
 struct dyString *dy = dyStringNew(10*len);
 int i;
 for (i = 0;  i < len;  i++)
-    dyStringPrintf(dy, "%f,", vector[i]);
+    dyStringPrintf(dy, "%g,", vector[i]);
 char **words;
 AllocArray(words, 1);
 words[0] = dyStringCannibalize(&dy);
 return words;
 }
 
 static char **wordsFromRow(struct annoRow *row, struct annoStreamer *source,
 			   boolean *retFreeWhenDone)
 /* If source->rowType is arWords, return its words.  Otherwise translate row->data into words. */
 {
 if (row == NULL)
     return NULL;
 boolean freeWhenDone = FALSE;
 char **words = NULL;
 if (source->rowType == arWords || source->rowType == arVcf)