src/utils/bigBedSummary/bigBedSummary.c 1.7
1.7 2009/09/08 19:50:24 kent
Adding udcDir to the command line as an option.
Index: src/utils/bigBedSummary/bigBedSummary.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/utils/bigBedSummary/bigBedSummary.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -b -B -U 4 -r1.6 -r1.7
--- src/utils/bigBedSummary/bigBedSummary.c 9 Jun 2009 17:41:28 -0000 1.6
+++ src/utils/bigBedSummary/bigBedSummary.c 8 Sep 2009 19:50:24 -0000 1.7
@@ -5,8 +5,9 @@
#include "options.h"
#include "sqlNum.h"
#include "bigBed.h"
#include "asParse.h"
+#include "udc.h"
static char const rcsid[] = "$Id$";
char *summaryType = "coverage";
@@ -28,14 +29,16 @@
" max - maximum depth of covered regions\n"
" -fields - print out information on fields in file.\n"
" If fields option is used, the chrom, start, end, dataPoints\n"
" parameters may be omitted\n"
+ " -udcDir=/dir/to/cache - place to put cache for remote bigBed/bigWigs\n"
);
}
static struct optionSpec options[] = {
{"type", OPTION_STRING},
{"fields", OPTION_BOOLEAN},
+ {"udcDir", OPTION_STRING},
{NULL, 0},
};
void bigBedSummary(char *fileName, char *chrom, int start, int end, int dataPoints)
@@ -95,8 +98,9 @@
int main(int argc, char *argv[])
/* Process command line. */
{
optionInit(&argc, argv, options);
+udcSetDefaultDir(optionVal("udcDir", udcDefaultDir()));
if (optionExists("fields"))
{
if (argc < 2)
usage();