deps/kb_meme/meme-5.0.1/src/motif-in.c
/*
 * When the parser has been selected do some processing
 */
When the parser has been selected do some processing
When the parser has been selected do some processing
static void parser_selected(
  MREAD_T *mread
) {
  ALPH_T* alph;
  MFORMAT_T* format;
  format = mread->formats;
  alph = format->get_alphabet(mread->formats->data);
  if (format->get_bg(format->data, &(mread->motif_bg))) {
    normalize_subarray(0, alph_size_core(alph), 0.0, mread->motif_bg);
  } else {
    mread->motif_bg = get_uniform_frequencies(alph, mread->motif_bg);
  }
  set_pseudo_bg(mread, alph);
}
static void parser_selected ( MREAD_T * mread ) { ALPH_T * alph ; MFORMAT_T * format ; format = mread -> formats ; alph = format -> get_alphabet ( mread -> formats -> data ) ; if ( format -> get_bg ( format -> data , & ( mread -> motif_bg ) ) ) { normalize_subarray ( 0 , alph_size_core ( alph ) , 0.0 , mread -> motif_bg ) ; } else { mread -> motif_bg = get_uniform_frequencies ( alph , mread -> motif_bg ) ; } set_pseudo_bg ( mread , alph ) ; }
When the parser has been selected do some processing
When the parser has been selected do some processing
// get the alphabet // get the background