05e67c59a20a5d00b810a981aef3b00c5bef82e1
max
  Fri Sep 20 06:03:18 2024 -0700
more features to hubtools: search in both parent and subdirs, better docs

diff --git src/utils/bigWigToWig/bigWigToWig.c src/utils/bigWigToWig/bigWigToWig.c
index 566d5db..4cfe8d4 100644
--- src/utils/bigWigToWig/bigWigToWig.c
+++ src/utils/bigWigToWig/bigWigToWig.c
@@ -1,29 +1,29 @@
 /* bigWigToWig - Convert bigWig to wig.  This will keep more of the same structure of the 
  * original wig than bigWigToBedGraph does, but still will break up large stepped sections into 
  * smaller ones. */
 
 /* Copyright (C) 2011 The Regents of the University of California 
  * See kent/LICENSE or http://genome.ucsc.edu/license/ for licensing information. */
 #include "common.h"
 #include "linefile.h"
 #include "hash.h"
 #include "options.h"
 #include "udc.h"
 #include "bigWig.h"
 #include "obscure.h"
-
+#include "hgConfig.h"
 
 char *clChrom = NULL;
 int clStart = -1;
 int clEnd = -1;
 
 void usage()
 /* Explain usage and exit. */
 {
 errAbort(
   "bigWigToWig - Convert bigWig to wig.  This will keep more of the same structure of the\n"
   "original wig than bigWigToBedGraph does, but still will break up large stepped sections\n"
   "into smaller ones.\n"
   "usage:\n"
   "   bigWigToWig in.bigWig out.wig\n"
   "options:\n"
@@ -65,20 +65,27 @@
 bbiChromInfoFreeList(&chromList);
 carefulClose(&f);
 bbiFileClose(&bwf);
 }
 
 int main(int argc, char *argv[])
 /* Process command line. */
 {
 optionInit(&argc, argv, options);
 if (argc != 3)
     usage();
 clChrom = optionVal("chrom", clChrom);
 clStart = optionInt("start", clStart);
 clEnd = optionInt("end", clEnd);
 udcSetDefaultDir(optionVal("udcDir", udcDefaultDir()));
+
+char *prots = cfgOption("resolvProts");
+char *prefix = cfgOption("resolvPrefix");
+char *cmd = cfgOption("resolvCmd");
+if (prots && cmd)
+    udcSetResolver(prots, prefix, cmd);
+
 bigWigToWig(argv[1], argv[2]);
 if (verboseLevel() > 1)
     printVmPeak();
 return 0;
 }