deps/kb_meme/meme-5.0.1/src/scanned-sequence.c
/*
 * Create a scanned sequence structure.
 * The seq_id is used (not copied). The length is initially set to
 * zero as are the number of allocated sites. This is intended
 * to be used with the sseq_add_site and sseq_add_spacer methods
 * to build up the correct length and sites
 */
Create a scanned sequence structure.
The seq_id is used (not copied). The length is initially set to
zero as are the number of allocated sites. This is intended
to be used with the sseq_add_site and sseq_add_spacer methods
to build up the correct length and sites
Create a scanned sequence structure . The seq_id is used ( not copied ) . The length is initially set to zero as are the number of allocated sites . This is intended to be used with the sseq_add_site and sseq_add_spacer methods to build up the correct length and sites
SCANNED_SEQ_T* sseq_create2(char *seq_id, double log10pvalue) {
  SCANNED_SEQ_T *sseq;
  sseq = mm_malloc(sizeof(SCANNED_SEQ_T));
  memset(sseq, 0, sizeof(SCANNED_SEQ_T));
  sseq->seq_id = seq_id;
  sseq->pvalue = pow(10.0, log10pvalue);
  return sseq;
}
SCANNED_SEQ_T * sseq_create2 ( char * seq_id , double log10pvalue ) { SCANNED_SEQ_T * sseq ; sseq = mm_malloc ( sizeof ( SCANNED_SEQ_T ) ) ; memset ( sseq , 0 , sizeof ( SCANNED_SEQ_T ) ) ; sseq -> seq_id = seq_id ; sseq -> pvalue = pow ( 10.0 , log10pvalue ) ; return sseq ; }
Create a scanned sequence structure.
Create a scanned sequence structure .