deps/kb_meme/meme-5.0.1/src/dreme-sax.c
/*****************************************************************************
 * dreme > motifs > motif > match
 *
 *  seq               word which matches motif
 *  p                 number of positive sequences which contain this word
 *  n                 number of negative sequences which contain this word
 *  pvalue            the pvalue of this word (returned as log10)
 *  evalue            the evalue of this word (returned as log10)
 ****************************************************************************/
dreme > motifs > motif > match
seq               word which matches motif
p                 number of positive sequences which contain this word
n                 number of negative sequences which contain this word
pvalue            the pvalue of this word (returned as log10)
evalue            the evalue of this word (returned as log10)
dreme > motifs > motif > match seq word which matches motif p number of positive sequences which contain this word n number of negative sequences which contain this word pvalue the pvalue of this word ( returned as log10 ) evalue the evalue of this word ( returned as log10 )
static void start_ele_match(PS_T *ps, const xmlChar **attrs) {
  char *seq;
  long p_hits, n_hits;
  double log10pvalue, log10evalue;
  char* names[5] = {"evalue", "n", "p", "pvalue", "seq"};
  int (*parsers[5])(char*, void*) = {ld_log10_ev, ld_long, ld_long, 
    ld_log10_pv, ld_str};
  void *data[5] = {&log10evalue, &n_hits, &p_hits, &log10pvalue, &seq};
  bool required[5] = {true, true, true, true, true};
  bool done[5];
  parse_attributes(dreme_attr_parse_error, ps, "match", attrs, 5, names, 
      parsers, data, required, done);
  if (ps->callbacks->handle_match && ps->state != PS_ERROR) {
    ps->callbacks->handle_match(ps->user_data, seq, p_hits, n_hits, log10pvalue,
        log10evalue);
  }
}
static void start_ele_match ( PS_T * ps , const xmlChar * * attrs ) { char * seq ; long p_hits , n_hits ; double log10pvalue , log10evalue ; char * names [ 5 ] = { " " , " " , " " , " " , " " } ; int ( * parsers [ 5 ] ) ( char * , void * ) = { ld_log10_ev , ld_long , ld_long , ld_log10_pv , ld_str } ; void * data [ 5 ] = { & log10evalue , & n_hits , & p_hits , & log10pvalue , & seq } ; bool required [ 5 ] = { true , true , true , true , true } ; bool done [ 5 ] ; parse_attributes ( dreme_attr_parse_error , ps , " " , attrs , 5 , names , parsers , data , required , done ) ; if ( ps -> callbacks -> handle_match && ps -> state != PS_ERROR ) { ps -> callbacks -> handle_match ( ps -> user_data , seq , p_hits , n_hits , log10pvalue , log10evalue ) ; } }
dreme > motifs > motif > match
  seq               word which matches motif
  p                 number of positive sequences which contain this word
  n                 number of negative sequences which contain this word
  pvalue            the pvalue of this word (returned as log10)
  evalue            the evalue of this word (returned as log10)
dreme > motifs > motif > match seq word which matches motif p number of positive sequences which contain this word n number of negative sequences which contain this word pvalue the pvalue of this word ( returned as log10 ) evalue the evalue of this word ( returned as log10 )