deps/kb_meme/meme-5.0.1/src/motif-in.c
/*
 * Loads all the currently buffered motifs into a list.
 * If the file is set then this will read all the motifs in the
 * file into the list. If a list is not passed then
 * it will create a new one. 
 * returns the list.
 */
Loads all the currently buffered motifs into a list.
If the file is set then this will read all the motifs in the
file into the list. If a list is not passed then
it will create a new one.
returns the list.
Loads all the currently buffered motifs into a list . If the file is set then this will read all the motifs in the file into the list . If a list is not passed then it will create a new one . returns the list .
ARRAYLST_T* mread_load(MREAD_T *mread, ARRAYLST_T *motifs) {
  MOTIF_T *motif;
  if (motifs == NULL) motifs = arraylst_create();
  while ((motif = mread_next_motif(mread)) != NULL) {
    arraylst_add(motif, motifs);
  }
  return motifs;
}
ARRAYLST_T * mread_load ( MREAD_T * mread , ARRAYLST_T * motifs ) { MOTIF_T * motif ; if ( motifs == NULL ) motifs = arraylst_create ( ) ; while ( ( motif = mread_next_motif ( mread ) ) != NULL ) { arraylst_add ( motif , motifs ) ; } return motifs ; }
Loads all the currently buffered motifs into a list.
Loads all the currently buffered motifs into a list .