41e57934a6f26738f82525f40c323e3c7b13a451 hiram Wed Oct 17 10:13:08 2012 -0700 standardize usage message to place into the build diff --git src/utils/faRandomize/faRandomize.c src/utils/faRandomize/faRandomize.c index 38512e7..5dd58dd 100644 --- src/utils/faRandomize/faRandomize.c +++ src/utils/faRandomize/faRandomize.c @@ -5,36 +5,36 @@ #include "dnaseq.h" #include "fa.h" #include "obscure.h" #include "options.h" static struct optionSpec optionSpecs[] = /* Our acceptable options to be called with. */ { {"seed", OPTION_INT}, {NULL, 0} }; void usage() /* Report usage and quit. */ { -errAbort("faRandomize - Program to create random fasta records using\n" - "same base frequency as seen in original fasta records.\n" - "Use optional -seed flag to specify seed for random number\n" - "generator.\n" +errAbort("faRandomize - Program to create random fasta records\n" "usage:\n " - "faRandomize in.fa randomized.fa\n"); + " faRandomize [-seed=N] in.fa randomized.fa\n" + " Use optional -seed argument to specify seed (integer) for random\n" + " number generator (rand). Generated sequence has the\n" + " same base frequency as seen in original fasta records."); } struct dnaSeq *randomizedSequence(struct dnaSeq *seq) /* Create a randomized version of the sequence in seq and return it. */ { struct dnaSeq *randSeq = NULL; int dnaCounts[4]; double dnaFreqs[4]; int i = 0, j = 0;; double r = 0; double last = 0; /* Set up background to draw sequences from. */ dnaBaseHistogram(seq->dna, seq->size, dnaCounts);