f2049f3064f288aeebed2d88a0123e48389eda4c angie Wed Apr 1 15:31:40 2015 -0700 Updating usage message in utils that now accept a URL for chrom.sizes. resolves #14857 diff --git src/utils/wigToBigWig/wigToBigWig.c src/utils/wigToBigWig/wigToBigWig.c index 4aa691e..6f3b6d1 100644 --- src/utils/wigToBigWig/wigToBigWig.c +++ src/utils/wigToBigWig/wigToBigWig.c @@ -17,34 +17,37 @@ static int itemsPerSlot = 1024; static boolean clipDontDie = FALSE; static boolean doCompress = FALSE; static boolean fixedSummaries = FALSE; static boolean keepAllChromosomes = FALSE; void usage() /* Explain usage and exit. */ { errAbort( "wigToBigWig v %d - Convert ascii format wig file (in fixedStep, variableStep\n" "or bedGraph format) to binary big wig format.\n" "usage:\n" " wigToBigWig in.wig chrom.sizes out.bw\n" "Where in.wig is in one of the ascii wiggle formats, but not including track lines\n" - "and chrom.sizes is two column: <chromosome name> <size in bases>\n" + "and chrom.sizes is a two-column file/URL: <chromosome name> <size in bases>\n" "and out.bw is the output indexed big wig file.\n" - "Use the script: fetchChromSizes to obtain the actual chrom.sizes information\n" - "from UCSC, please do not make up a chrom sizes from your own information.\n" + "If the assembly <db> is hosted by UCSC, chrom.sizes can be a URL like\n" + " http://hgdownload.cse.ucsc.edu/goldenPath/<db>/bigZips/<db>.chrom.sizes\n" + "or you may use the script fetchChromSizes to download the chrom.sizes file.\n" + "If not hosted by UCSC, a chrom.sizes file can be generated by running\n" + "twoBitInfo on the assembly .2bit file.\n" "options:\n" " -blockSize=N - Number of items to bundle in r-tree. Default %d\n" " -itemsPerSlot=N - Number of data points bundled at lowest level. Default %d\n" " -clip - If set just issue warning messages rather than dying if wig\n" " file contains items off end of chromosome.\n" " -unc - If set, do not use compression.\n" " -fixedSummaries - If set, use a predefined sequence of summary levels.\n" " -keepAllChromosomes - If set, store all chromosomes in b-tree." , bbiCurrentVersion, blockSize, itemsPerSlot ); } static struct optionSpec options[] = { {"blockSize", OPTION_INT}, {"itemsPerSlot", OPTION_INT},