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/bedToBigBed/bedToBigBed.c src/utils/bedToBigBed/bedToBigBed.c index 7896bec..6324cb3 100644 --- src/utils/bedToBigBed/bedToBigBed.c +++ src/utils/bedToBigBed/bedToBigBed.c @@ -30,34 +30,37 @@ int bedN = 0; /* number of standard bed fields */ int bedP = 0; /* number of bed plus fields */ char *asFile = NULL; char *asText = NULL; static boolean doCompress = FALSE; static boolean tabSep = FALSE; void usage() /* Explain usage and exit. */ { errAbort( "bedToBigBed v. %s - Convert bed file to bigBed. (BigBed version: %d)\n" "usage:\n" " bedToBigBed in.bed chrom.sizes out.bb\n" "Where in.bed is in one of the ascii bed formats, but not including track lines\n" - "and chrom.sizes is two column: \n" + "and chrom.sizes is a two-column file/URL: \n" "and out.bb is the output indexed big bed 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 is hosted by UCSC, chrom.sizes can be a URL like\n" + " http://hgdownload.cse.ucsc.edu/goldenPath//bigZips/.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" "The in.bed file must be sorted by chromosome,start,\n" " to sort a bed file, use the unix sort command:\n" " sort -k1,1 -k2,2n unsorted.bed > sorted.bed\n" "\n" "options:\n" " -type=bedN[+[P]] : \n" " N is between 3 and 15, \n" " optional (+) if extra \"bedPlus\" fields, \n" " optional P specifies the number of extra fields. Not required, but preferred.\n" " Examples: -type=bed6 or -type=bed6+ or -type=bed6+3 \n" " (see http://genome.ucsc.edu/FAQ/FAQformat.html#format1)\n" " -as=fields.as - If you have non-standard \"bedPlus\" fields, it's great to put a definition\n" " of each field in a row in AutoSql format here.\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"