src/utils/wigToBigWig/wigToBigWig.c 1.9

1.9 2009/11/16 18:12:04 kent
Making compression the default for the bigBed and bigWig creators.
Index: src/utils/wigToBigWig/wigToBigWig.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/utils/wigToBigWig/wigToBigWig.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -b -B -U 4 -r1.8 -r1.9
--- src/utils/wigToBigWig/wigToBigWig.c	12 Nov 2009 23:15:52 -0000	1.8
+++ src/utils/wigToBigWig/wigToBigWig.c	16 Nov 2009 18:12:04 -0000	1.9
@@ -30,18 +30,18 @@
   "   -blockSize=N - Number of items to bundle in r-tree.  Default %d\n"
   "   -itemsPerSlot=N - Number of data points bundled at lowest level. Default %d\n"
   "   -clip - If set just issue warning messages rather than dying if wig\n"
   "                  file contains items off end of chromosome.\n"
-  "   -compress - If set use zlib compression."
+  "   -unc - If set, do not use compression."
   , bbiCurrentVersion, blockSize, itemsPerSlot
   );
 }
 
 static struct optionSpec options[] = {
    {"blockSize", OPTION_INT},
    {"itemsPerSlot", OPTION_INT},
    {"clip", OPTION_BOOLEAN},
-   {"compress", OPTION_BOOLEAN},
+   {"unc", OPTION_BOOLEAN},
    {NULL, 0},
 };
 
 void wigToBigWig(char *inName, char *chromSizes, char *outName)
@@ -57,9 +57,9 @@
 optionInit(&argc, argv, options);
 blockSize = optionInt("blockSize", blockSize);
 itemsPerSlot = optionInt("itemsPerSlot", itemsPerSlot);
 clipDontDie = optionExists("clip");
-doCompress = optionExists("compress");
+doCompress = !optionExists("unc");
 if (argc != 4)
     usage();
 wigToBigWig(argv[1], argv[2], argv[3]);
 return 0;