Index: src/hg/bedItemOverlapCount/bedItemOverlapCount.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/bedItemOverlapCount/bedItemOverlapCount.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -b -B -U 4 -r1.20 -r1.21
--- src/hg/bedItemOverlapCount/bedItemOverlapCount.c	30 Oct 2009 21:03:23 -0000	1.20
+++ src/hg/bedItemOverlapCount/bedItemOverlapCount.c	6 Apr 2010 04:30:44 -0000	1.21
@@ -55,17 +55,21 @@
   "bedItemOverlapCount - count number of times a base is overlapped by the\n"
   "\titems in a bed file.  Output is bedGraph 4 to stdout.\n"
   "usage:\n"
   " sort bedFile.bed | bedItemOverlapCount [options] <database> stdin\n"
-  "or all the way to wiggle track data:\n"
+  "To create a bigWig file from this data to use in a custom track:\n"
   " sort bedFile.bed | bedItemOverlapCount [options] <database> stdin \\\n"
-  "         | wigEncode stdin data.wig data.wib\n"
+  "         > bedFile.bedGraph\n"
+  " bedGraphToBigWig bedFile.bedGraph chrom.sizes bedFile.bw\n"
+  "   where the chrom.sizes is obtained with the script: fetchChromSizes\n"
+  "   See also:\n"
+  " http://genome-test.cse.ucsc.edu/~kent/src/unzipped/utils/userApps/fetchChromSizes\n"
   "options:\n"
   "   -zero      add blocks with zero count, normally these are ommitted\n"
   "   -bed12     expect bed12 and count based on blocks\n"
   "              normally only first three fields are used.\n"
   "   -max       if counts per base overflows set to max (%lu) instead of exiting\n"
-  "   -outBounds ouput min/max to stderr\n"
+  "   -outBounds output min/max to stderr\n"
   "   -chromSize=sizefile\tRead chrom sizes from file instead of database\n"
   "             sizefile contains two white space separated fields per line:\n"
   "		chrom name and size\n"
   "   -host=hostname\tmysql host used to get chrom sizes\n"
@@ -75,11 +79,12 @@
   " * You may want to separate your + and - strand\n"
   "   items before sending into this program as it only looks at\n"
   "   the chrom, start and end columns of the bed file.\n"
   " * Program requires a <database> connection to lookup chrom sizes for a sanity\n"
-  "   check of the incoming data (unless you use -chromSize argument).\n\n"
+  "   check of the incoming data.  Even when the -chromSize argument is used\n"
+  "   the <database> must be present, but it will not be used.\n\n"
   " * The bed file *must* be sorted by chrom\n"
-  " * Maximum count per base is %lu. Recompile with new unitSize to increase this\n",(unsigned long)MAXCOUNT, (unsigned long)MAXCOUNT
+  " * Maximum count per base is %lu. Recompile with new unitSize to increase this",(unsigned long)MAXCOUNT, (unsigned long)MAXCOUNT
   );
 }
 
 static struct hash *loadAllChromInfo(char *database, unsigned *largest)
@@ -302,9 +307,9 @@
 /* Process command line. */
 {
 optionInit(&argc, argv, optionSpecs);
 
-if (argc < 2)
+if (argc < 3)
     usage();
 host = optionVal("host", NULL);
 user = optionVal("user", NULL);
 password = optionVal("password", NULL);

