d45f20285f046c893863653230b6e8548a4a49d7 hiram Mon Mar 2 10:52:00 2020 -0800 correct one line header message in usage() no redmine diff --git src/hg/genePredToMafFrames/genePredToMafFrames.c src/hg/genePredToMafFrames/genePredToMafFrames.c index 9bf3765..03bcbe6 100644 --- src/hg/genePredToMafFrames/genePredToMafFrames.c +++ src/hg/genePredToMafFrames/genePredToMafFrames.c @@ -103,68 +103,66 @@ if (verboseLevel() >= 4) dumpGeneInfo("after load", orgs); for (genes = orgs; genes != NULL; genes = genes->next) splitMultiMappings(genes); if (verboseLevel() >= 5) dumpGeneInfo("after split", orgs); for (genes = orgs; genes != NULL; genes = genes->next) finishMafFrames(genes); if (verboseLevel() >= 5) dumpGeneInfo("after finish", orgs); outputFrames(orgs, mafFramesFile, bedFile); orgGenesFree(&genes); } -void usage(char *msg) +void usage() /* Explain usage and exit. */ { -errAbort("%s\n" - "\n" - "genePredToMafFrames - create mafFrames tables from a genePreds\n" - "\n" +errAbort("genePredToMafFrames - create mafFrames tables from a genePreds\n" + "usage:\n" " genePredToMafFrames [options] targetDb maf mafFrames geneDb1 genePred1 [geneDb2 genePred2...] \n" "\n" "Create frame annotations for one or more components of a MAF.\n" "It is significantly faster to process multiple gene sets in the same\"" "run, as 95%% of the CPU time is spent reading the MAF\n" "\n" "Arguments:\n" " o targetDb - db of target genome\n" " o maf - input MAF file\n" " o mafFrames - output file\n" " o geneDb1 - db in MAF that corresponds to genePred's organism.\n" " o genePred1 - genePred file. Overlapping annotations ahould have\n" " be removed. This file may optionally include frame annotations\n" "Options:\n" " -bed=file - output a bed of for each mafFrame region, useful for debugging.\n" " -verbose=level - enable verbose tracing, the following levels are implemented:\n" " 3 - print information about data used to compute each record.\n" " 4 - dump information about the gene mappings that were constructed\n" " 5 - dump information about the gene mappings after split processing\n" " 6 - dump information about the gene mappings after frame linking\n" - "\n", msg); + "\n"); } int main(int argc, char *argv[]) /* Process command line. */ { int numGeneDbs, i, j; char **geneDbs, **genePreds; optionInit(&argc, argv, optionSpecs); if ((argc < 6) || ((argc % 2) != 0)) - usage("wrong # args"); + usage(); numGeneDbs = (argc - 4) / 2; AllocArray(geneDbs, numGeneDbs); AllocArray(genePreds, numGeneDbs); for (i = 0, j = 4; j < argc; i++, j += 2) { geneDbs[i] = argv[j]; genePreds[i] = argv[j+1]; } /* try to detect old command line arguments, and warn user of change: * genePredToMafFrames geneDb targetDb genePred mafFrames maf1 [maf2..]\n" * 0 1 2 3 4 5 "genePredToMafFrames targetDb maf mafFrames geneDb1 genePred1 [geneDb2 genePred2...] \n" */