deps/kb_meme/meme-5.0.1/src/scanned-sequence.c
/*
 * Add a scanned site. Intended to be used with sseq_create2
 */
Add a scanned site. Intended to be used with sseq_create2
Add a scanned site . Intended to be used with sseq_create2
void sseq_add_site(SCANNED_SEQ_T *sseq, int motif_num, int motif_len, 
    char strand, double log10pvalue) {
  SCANNED_SITE_T *ssite;
  sseq->site_count += 1;
  sseq->sites = mm_realloc(sseq->sites, sseq->site_count * sizeof(SCANNED_SEQ_T));
  ssite = sseq->sites+(sseq->site_count - 1);
  ssite->m_num = motif_num;
  ssite->position = sseq->length;
  ssite->strand = strand;
  ssite->pvalue = pow(10.0, log10pvalue);
  sseq->length += motif_len;
}
void sseq_add_site ( SCANNED_SEQ_T * sseq , int motif_num , int motif_len , char strand , double log10pvalue ) { SCANNED_SITE_T * ssite ; sseq -> site_count += 1 ; sseq -> sites = mm_realloc ( sseq -> sites , sseq -> site_count * sizeof ( SCANNED_SEQ_T ) ) ; ssite = sseq -> sites + ( sseq -> site_count - 1 ) ; ssite -> m_num = motif_num ; ssite -> position = sseq -> length ; ssite -> strand = strand ; ssite -> pvalue = pow ( 10.0 , log10pvalue ) ; sseq -> length += motif_len ; }
Add a scanned site.
Add a scanned site .