deps/kb_meme/meme-5.0.1/src/momo-modl.c
/**
 * Returns the resulting DL if the motif an index 'number' is removed. 
 * Modifies the list of motifs only if update is true.
 */
Returns the resulting DL if the motif an index 'number' is removed.
Modifies the list of motifs only if update is true.
Returns the resulting DL if the motif an index ' number ' is removed . Modifies the list of motifs only if update is true .
double remove_motif(ARRAYLST_T* regexmotifs,
                    MATRIX_T* bg_freqs,
                    int max_motifs,
                    int number,
                    MOMO_OPTIONS_T* options,
                    SUMMARY_T* summary,
                    MOD_INFO_T* mod_info,
                    bool update) {
  REGEX_MOTIF_T* regexmotif = arraylst_remove(number, regexmotifs);
  double dl = compute_MDL(regexmotifs, bg_freqs, max_motifs, options, summary, mod_info);
  if (!update) {
    arraylst_put(number, regexmotif, regexmotifs);
  }
  return dl;
}
double remove_motif ( ARRAYLST_T * regexmotifs , MATRIX_T * bg_freqs , int max_motifs , int number , MOMO_OPTIONS_T * options , SUMMARY_T * summary , MOD_INFO_T * mod_info , bool update ) { REGEX_MOTIF_T * regexmotif = arraylst_remove ( number , regexmotifs ) ; double dl = compute_MDL ( regexmotifs , bg_freqs , max_motifs , options , summary , mod_info ) ; if ( ! update ) { arraylst_put ( number , regexmotif , regexmotifs ) ; } return dl ; }
Returns the resulting DL if the motif an index 'number' is removed.
Returns the resulting DL if the motif an index ' number ' is removed .