0f82da7969da1610cbaa96808797f4458c2d13a6 max Tue Sep 5 07:27:44 2023 -0700 switching to LC_ALL in usage help, refs #20910 diff --git src/utils/bedGraphToBigWig/bedGraphToBigWig.c src/utils/bedGraphToBigWig/bedGraphToBigWig.c index 5452415..0474881 100644 --- src/utils/bedGraphToBigWig/bedGraphToBigWig.c +++ src/utils/bedGraphToBigWig/bedGraphToBigWig.c @@ -40,31 +40,32 @@ { errAbort( "bedGraphToBigWig v %s - Convert a bedGraph file to bigWig format (bbi version: %d).\n" "usage:\n" " bedGraphToBigWig in.bedGraph chrom.sizes out.bw\n" "where in.bedGraph is a four column file in the format:\n" " <chrom> <start> <end> <value>\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" "If the assembly <db> is hosted by UCSC, chrom.sizes can be a URL like\n" " http://hgdownload.soe.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" "The input bedGraph file must be sorted, use the unix sort command:\n" - " sort -k1,1 -k2,2n unsorted.bedGraph > sorted.bedGraph\n" + " LC_ALL=C sort -k1,1 -k2,2n unsorted.bedGraph > sorted.bedGraph\n" + "The LC_ALL=C variable activates case-sensitive sorting.\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" " -sizesIsBb -- If set, the chrom.sizes file is assumed to be a bigBed file.\n" " -unc - If set, do not use compression." , version, bbiCurrentVersion, blockSize, itemsPerSlot ); } static struct optionSpec options[] = { {"blockSize", OPTION_INT}, {"itemsPerSlot", OPTION_INT}, {"sizesIsBb", OPTION_BOOLEAN}, {"unc", OPTION_BOOLEAN}, {"maxGigs", OPTION_INT},