deps/kb_meme/meme-5.0.1/src/meme2meme.c
/**************************************************************************
 * Prints a usage message and exits. 
 * If given an error message it prints that first and will exit with
 * return code of EXIT_FAILURE.
 **************************************************************************/
Prints a usage message and exits.
If given an error message it prints that first and will exit with
return code of EXIT_FAILURE.
Prints a usage message and exits . If given an error message it prints that first and will exit with return code of EXIT_FAILURE .
static void usage(char *format, ...) {
  va_list argp;
  char *usage = 
    "Usage:\n" 
    "    meme2meme [options] <meme file>+\n"
    "Options:\n"
    "    -consensus     numeric names are swapped for an IUPAC\n"
    "                     consensus; default: use existing names\n"
    "    -numbers       use numbers instead of strings for motif names;\n"
    "                     default: use existing ID\n"
    "    -bg <file>     file with background frequencies of letters;\n"
    "                     default: use first file background\n"
    "    -logodds       print log-odds matrix as well as frequency matrix;\n"
    "                     default: frequency matrix only\n"
    "    -url <website> website for the motif if it doesn't have one\n"
    "                     already; The motif name is substituted for\n"
    "                     MOTIF_NAME; default: use existing url\n"
    "    -forceurl      Existing urls are ignored\n"
    "    -xalph         Convert all motifs to use the same alphabet as\n"
    "                     specified in the first file which must be a superset;\n"
    "                     default: all alphabets must be identical\n"
    "Description:\n"
    "    Takes meme motifs in many forms and writes out a single database in\n"
    "    minimal meme format to standard output.\n";
  if (format) {
    va_start(argp, format);
    vfprintf(stderr, format, argp);
    va_end(argp);
    fprintf(stderr, "\n");
    fputs(usage, stderr);
    fflush(stderr);
  } else {
    puts(usage);
  }
  if (format) exit(EXIT_FAILURE);
  exit(EXIT_SUCCESS);
}
static void usage ( char * format , ... ) { va_list argp ; char * usage = " \n " " \n " " \n " " \n " " \n " " \n " " \n " " \n " " \n " " \n " " \n " " \n " " \n " " \n " " \n " " \n " " \n " " \n " " \n " " \n " " \n " ; if ( format ) { va_start ( argp , format ) ; vfprintf ( stderr , format , argp ) ; va_end ( argp ) ; fprintf ( stderr , " \n " ) ; fputs ( usage , stderr ) ; fflush ( stderr ) ; } else { puts ( usage ) ; } if ( format ) exit ( EXIT_FAILURE ) ; exit ( EXIT_SUCCESS ) ; }
Prints a usage message and exits.
Prints a usage message and exits .