deps/kb_meme/meme-5.0.1/src/spamo.c
/**************************************************************************
 * Compares two secondary motifs by best pvalue
 **************************************************************************/
Compares two secondary motifs by best pvalue
Compares two secondary motifs by best pvalue
int secondary_motif_pvalue_comparator(void *v1, void *v2) {
  SECONDARY_MOTIF_T* smotif1 = (SECONDARY_MOTIF_T*)v1;
  SECONDARY_MOTIF_T* smotif2 = (SECONDARY_MOTIF_T*)v2;
  if (smotif1->min_pvalue < smotif2->min_pvalue) {
    return -1;
  } else if (smotif1->min_pvalue == smotif2->min_pvalue) {
    return 0;
  } else {
    return 1;
  }
}
int secondary_motif_pvalue_comparator ( void * v1 , void * v2 ) { SECONDARY_MOTIF_T * smotif1 = ( SECONDARY_MOTIF_T * ) v1 ; SECONDARY_MOTIF_T * smotif2 = ( SECONDARY_MOTIF_T * ) v2 ; if ( smotif1 -> min_pvalue < smotif2 -> min_pvalue ) { return -1 ; } else if ( smotif1 -> min_pvalue == smotif2 -> min_pvalue ) { return 0 ; } else { return 1 ; } }
Compares two secondary motifs by best pvalue
Compares two secondary motifs by best pvalue
//if (smotif1->sigs->pvalue < smotif2->sigs->pvalue) { //} else if (smotif1->sigs->pvalue == smotif2->sigs->pvalue) {