cf848a6f3c75bdb85e7030779e193fe837020566
braney
  Mon Mar 16 08:47:34 2020 -0700
Add version numbers to wigToBig and bedGraphToBigWig, and increment the
version number for bedToBigBed since we've made some changes without
incrementing it. refs #25163

diff --git src/utils/wigToBigWig/wigToBigWig.c src/utils/wigToBigWig/wigToBigWig.c
index 3402af8..4e3ddf1 100644
--- src/utils/wigToBigWig/wigToBigWig.c
+++ src/utils/wigToBigWig/wigToBigWig.c
@@ -1,63 +1,67 @@
 /* wigToBigWig - Convert ascii format wig file (in fixedStep, variableStep or bedGraph format) 
  * to binary big wig format.. */
 
 /* Copyright (C) 2014 The Regents of the University of California 
  * See README in this or parent directory for licensing information. */
 #include "common.h"
 #include "obscure.h"
 #include "linefile.h"
 #include "hash.h"
 #include "options.h"
 #include "bigWig.h"
 #include "bwgInternal.h"
 #include "zlibFace.h"
 
+char *version = "2.8";   // when changing, change in bedToBigBed, bedGraphToBigWig, and wigToBigWig
+/* Version history from 2.8 on at least -
+ * 2.8  sync up version numbers with bedToBigBed 
+ */
 
 static int blockSize = 256;
 static int itemsPerSlot = 1024;
 static boolean clipDontDie = FALSE;
 static boolean doCompress = FALSE;
 static boolean fixedSummaries = FALSE;
 static boolean keepAllChromosomes = FALSE;
 
 void usage()
 /* Explain usage and exit. */
 {
 errAbort(
-  "wigToBigWig v %d - Convert ascii format wig file (in fixedStep, variableStep\n"
-  "or bedGraph format) to binary big wig format.\n"
+  "wigToBigWig v %s - Convert ascii format wig file (in fixedStep, variableStep\n"
+  "or bedGraph format) to binary big wig format (bbi version: %d).\n"
   "usage:\n"
   "   wigToBigWig in.wig chrom.sizes out.bw\n"
   "Where in.wig is in one of the ascii wiggle formats, but not including track lines\n"
   "and chrom.sizes is a two-column file/URL: <chromosome name> <size in bases>\n"
   "and out.bw is the output indexed big wig file.\n"
   "If the assembly <db> is hosted by UCSC, chrom.sizes can be a URL like\n"
   "  http://hgdownload.soe.ucsc.edu/goldenPath/<db>/bigZips/<db>.chrom.sizes\n"
   "or you may use the script fetchChromSizes to download the chrom.sizes file.\n"
   "If not hosted by UCSC, a chrom.sizes file can be generated by running\n"
   "twoBitInfo on the assembly .2bit file.\n"
   "options:\n"
   "   -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 or chromosomes\n"
   "                  that are not in the chrom.sizes file.\n"
   "   -unc - If set, do not use compression.\n"
   "   -fixedSummaries - If set, use a predefined sequence of summary levels.\n"
   "   -keepAllChromosomes - If set, store all chromosomes in b-tree."
-  , bbiCurrentVersion, blockSize, itemsPerSlot
+  , version, bbiCurrentVersion, blockSize, itemsPerSlot
   );
 }
 
 static struct optionSpec options[] = {
    {"blockSize", OPTION_INT},
    {"itemsPerSlot", OPTION_INT},
    {"clip", OPTION_BOOLEAN},
    {"unc", OPTION_BOOLEAN},
    {"fixedSummaries", OPTION_BOOLEAN},
    {"keepAllChromosomes", OPTION_BOOLEAN},
    {NULL, 0},
 };
 
 void wigToBigWig(char *inName, char *chromSizes, char *outName)
 /* wigToBigWig - Convert ascii format wig file (in fixedStep, variableStep or bedGraph format)