src/utils/bigWigSummary/bigWigSummary.c 1.11
1.11 2009/09/08 19:50:24 kent
Adding udcDir to the command line as an option.
Index: src/utils/bigWigSummary/bigWigSummary.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/utils/bigWigSummary/bigWigSummary.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -b -B -U 4 -r1.10 -r1.11
--- src/utils/bigWigSummary/bigWigSummary.c 9 Jun 2009 17:42:33 -0000 1.10
+++ src/utils/bigWigSummary/bigWigSummary.c 8 Sep 2009 19:50:24 -0000 1.11
@@ -3,8 +3,9 @@
#include "linefile.h"
#include "hash.h"
#include "options.h"
#include "sqlNum.h"
+#include "udc.h"
#include "bigWig.h"
static char const rcsid[] = "$Id$";
@@ -25,13 +26,15 @@
" mean - average value in region (default)\n"
" min - minimum value in region\n"
" max - maximum value in region\n"
" coverage - %% of region that is covered\n"
+ " -udcDir=/dir/to/cache - place to put cache for remote bigBed/bigWigs\n"
);
}
static struct optionSpec options[] = {
{"type", OPTION_STRING},
+ {"udcDir", OPTION_STRING},
{NULL, 0},
};
void bigWigSummary(char *bigWigFile, char *chrom, int start, int end, int dataPoints)
@@ -71,7 +74,8 @@
optionInit(&argc, argv, options);
if (argc != 6)
usage();
summaryType = optionVal("type", summaryType);
+udcSetDefaultDir(optionVal("udcDir", udcDefaultDir()));
bigWigSummary(argv[1], argv[2], sqlUnsigned(argv[3]), sqlUnsigned(argv[4]), sqlUnsigned(argv[5]));
return 0;
}