deps/kb_meme/meme-5.0.1/src/motif-in.c
/*
 * Get the background used to assign pseudo-counts. 
 * If the background has not yet been determined it will return null.
 */
Get the background used to assign pseudo-counts.
If the background has not yet been determined it will return null.
Get the background used to assign pseudo - counts . If the background has not yet been determined it will return null .
ARRAY_T *mread_get_background(MREAD_T *mread) {
  ARRAY_T *bg;
  ALPH_T *alph;
  alph = mread_get_alphabet(mread);
  if (mread->pseudo_bg) {
    bg = allocate_array(get_array_length(mread->pseudo_bg));
    copy_array(mread->pseudo_bg, bg);
    if (mread->options & CALC_AMBIGS) calc_ambigs(alph, false, bg);
    return bg;
  }
  return NULL;
}
ARRAY_T * mread_get_background ( MREAD_T * mread ) { ARRAY_T * bg ; ALPH_T * alph ; alph = mread_get_alphabet ( mread ) ; if ( mread -> pseudo_bg ) { bg = allocate_array ( get_array_length ( mread -> pseudo_bg ) ) ; copy_array ( mread -> pseudo_bg , bg ) ; if ( mread -> options & CALC_AMBIGS ) calc_ambigs ( alph , false , bg ) ; return bg ; } return NULL ; }
Get the background used to assign pseudo-counts.
Get the background used to assign pseudo - counts .