deps/kb_meme/meme-5.0.1/src/mhmm.c
/***********************************************************************
 * Should the given motif be kept for the model?
 * Select the requested motifs
 ***********************************************************************/
Should the given motif be kept for the model.
Select the requested motifs
Should the given motif be kept for the model . Select the requested motifs
static int select_requested(void *context, int motif_i, MOTIF_T *motif) {
  REQMOT_T *requested;
  RBNODE_T *node;
  int which;
  requested = (REQMOT_T *)context;
  which = 0;
  if ((node = rbtree_find(requested->nums, &motif_i)) != NULL) {
    which |= *((int*)rbtree_value(node));
  }
  if ((node = rbtree_find(requested->ids, get_motif_id(motif))) != NULL) {
    which |= *((int*)rbtree_value(node));
  }
  return which;
}
static int select_requested ( void * context , int motif_i , MOTIF_T * motif ) { REQMOT_T * requested ; RBNODE_T * node ; int which ; requested = ( REQMOT_T * ) context ; which = 0 ; if ( ( node = rbtree_find ( requested -> nums , & motif_i ) ) != NULL ) { which |= * ( ( int * ) rbtree_value ( node ) ) ; } if ( ( node = rbtree_find ( requested -> ids , get_motif_id ( motif ) ) ) != NULL ) { which |= * ( ( int * ) rbtree_value ( node ) ) ; } return which ; }
Should the given motif be kept for the model?
Should the given motif be kept for the model?