deps/kb_meme/meme-5.0.1/src/meme2alph.c
/**************************************************************************
 * Print the alphabet to the output file
 **************************************************************************/
Print the alphabet to the output file
Print the alphabet to the output file
void output_alphabet(OPTIONS_T *options, ALPH_T *alph) {
  FILE *fh;
  if (strcmp("-", options->alphabet_file) == 0) {
    fh = stdout;
  } else {
    fh = fopen(options->alphabet_file, "w");
    if (fh == NULL) {
      die("Unable to open alphabet file \"%s\" for writing", options->alphabet_file);
    }
  }
  alph_print(alph, true, fh);
  if (fh != stdout) fclose(fh);
}
void output_alphabet ( OPTIONS_T * options , ALPH_T * alph ) { FILE * fh ; if ( strcmp ( " " , options -> alphabet_file ) == 0 ) { fh = stdout ; } else { fh = fopen ( options -> alphabet_file , " " ) ; if ( fh == NULL ) { die ( " \" \" " , options -> alphabet_file ) ; } } alph_print ( alph , true , fh ) ; if ( fh != stdout ) fclose ( fh ) ; }
Print the alphabet to the output file
Print the alphabet to the output file