8dedff1fa1cebac92b4a66ae13a3f94a2ed3e709 hiram Fri Feb 11 14:41:51 2011 -0800 adding printVmPeak() debug call to each of the big* commands diff --git src/utils/bigWigSummary/bigWigSummary.c src/utils/bigWigSummary/bigWigSummary.c index 3f3051a..4f9bc0f 100644 --- src/utils/bigWigSummary/bigWigSummary.c +++ src/utils/bigWigSummary/bigWigSummary.c @@ -1,23 +1,24 @@ /* bigWigSummary - Extract summary information from a bigWig file.. */ #include "common.h" #include "linefile.h" #include "hash.h" #include "options.h" #include "sqlNum.h" #include "udc.h" #include "bigWig.h" +#include "obscure.h" static char const rcsid[] = "$Id: bigWigSummary.c,v 1.13 2009/11/20 17:12:17 kent Exp $"; char *summaryType = "mean"; void usage() /* Explain usage and exit. */ { errAbort( "bigWigSummary - Extract summary information from a bigWig file.\n" "usage:\n" " bigWigSummary file.bigWig chrom start end dataPoints\n" "Get summary data from bigWig for indicated region, broken into\n" "dataPoints equal parts. (Use dataPoints=1 for simple summary.)\n" @@ -69,17 +70,19 @@ { errAbort("no data in region %s:%d-%d in %s\n", chrom, start, end, bigWigFile); } bigWigFileClose(&bwf); } int main(int argc, char *argv[]) /* Process command line. */ { 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])); +if (verboseLevel() > 1) + printVmPeak(); return 0; }