deps/kb_meme/meme-5.0.1/src/glam2_glam2.c
/* Calculate the score of an alignment */
Calculate the score of an alignment
Calculate the score of an alignment
double aln_score(glam2_scorer *s, const glam2_aln *aln) {
  double score = 0;
  int i;
  for (i = 0; i < aln->width; ++i)
    score += column_score(s, &aln->cols[i]);
  for (i = 1; i < aln->width; ++i)
    score += insertion_score(s, aln->insert_counts[i-1], aln->aligned_seq);
  return score;
}
double aln_score ( glam2_scorer * s , const glam2_aln * aln ) { double score = 0 ; int i ; for ( i = 0 ; i < aln -> width ; ++ i ) score += column_score ( s , & aln -> cols [ i ] ) ; for ( i = 1 ; i < aln -> width ; ++ i ) score += insertion_score ( s , aln -> insert_counts [ i - 1 ] , aln -> aligned_seq ) ; return score ; }
Calculate the score of an alignment
Calculate the score of an alignment