deps/kb_meme/meme-5.0.1/src/motif-in-dreme-xml.c
/*****************************************************************************
 * DREME > model > /alphabet
 * Read in the number of symbols in the alphabet and if it is nucleotide or 
 * amino-acid (RNA is apparently classed as nucleotide).
 ****************************************************************************/
DREME > model > /alphabet
Read in the number of symbols in the alphabet and if it is nucleotide or
amino-acid (RNA is apparently classed as nucleotide).
DREME > model > / alphabet Read in the number of symbols in the alphabet and if it is nucleotide or amino - acid ( RNA is apparently classed as nucleotide ) .
void dxml_end_alphabet(void *ctx) {
  PARMSG_T *message;
  CTX_T *data;
  RBNODE_T *node;
  char *id, symbol;
  bool *exists;
  int i;
  data = (CTX_T*)ctx;
  alph_reader_done(data->alph_rdr);
  while (alph_reader_has_message(data->alph_rdr)) {
    message = alph_reader_next_message(data->alph_rdr);
    if (message->severity == SEVERITY_ERROR) {
      local_error(data, "Alphabet error: %s.\n", message->message);
    } else {
      local_warning(data, "Alphabet warning: %s.\n", message->message);
    }
    parmsg_destroy(message);
  }
  data->fscope.alphabet = alph_reader_alphabet(data->alph_rdr);
  alph_reader_destroy(data->alph_rdr);
  data->alph_rdr = NULL;
}
void dxml_end_alphabet ( void * ctx ) { PARMSG_T * message ; CTX_T * data ; RBNODE_T * node ; char * id , symbol ; bool * exists ; int i ; data = ( CTX_T * ) ctx ; alph_reader_done ( data -> alph_rdr ) ; while ( alph_reader_has_message ( data -> alph_rdr ) ) { message = alph_reader_next_message ( data -> alph_rdr ) ; if ( message -> severity == SEVERITY_ERROR ) { local_error ( data , " \n " , message -> message ) ; } else { local_warning ( data , " \n " , message -> message ) ; } parmsg_destroy ( message ) ; } data -> fscope . alphabet = alph_reader_alphabet ( data -> alph_rdr ) ; alph_reader_destroy ( data -> alph_rdr ) ; data -> alph_rdr = NULL ; }
DREME > model > /alphabet
 Read in the number of symbols in the alphabet and if it is nucleotide or
 amino-acid (RNA is apparently classed as nucleotide).
DREME > model > / alphabet Read in the number of symbols in the alphabet and if it is nucleotide or amino - acid ( RNA is apparently classed as nucleotide ) .
// report any errors that the alphabet reader found // try to get an alphabet