deps/kb_meme/meme-5.0.1/src/spamo.c
/**************************************************************************
 * Gets the alphabet from the primary motif
 **************************************************************************/
Gets the alphabet from the primary motif
Gets the alphabet from the primary motif
ALPH_T *read_primary_alphabet(char *primary_file) {
  ALPH_T *alph;
  MREAD_T *mread;
  alph = NULL;
  mread = mread_create(primary_file, OPEN_MFILE, true);
  if (mread_has_motif(mread)) {
    alph = alph_hold(mread_get_alphabet(mread));
  } else {
    die("\"%s\" does not contain any motifs.\n", primary_file);
  }
  mread_destroy(mread);
  return alph;
}
ALPH_T * read_primary_alphabet ( char * primary_file ) { ALPH_T * alph ; MREAD_T * mread ; alph = NULL ; mread = mread_create ( primary_file , OPEN_MFILE , true ) ; if ( mread_has_motif ( mread ) ) { alph = alph_hold ( mread_get_alphabet ( mread ) ) ; } else { die ( " \" \" \n " , primary_file ) ; } mread_destroy ( mread ) ; return alph ; }
Gets the alphabet from the primary motif
Gets the alphabet from the primary motif
// get the alphabet from the motif file