hmmer-3.3/easel/esl_msaweight.c
/* GSC weighting test on text-mode alignment <msa>, where we expect
 * the weights to be <expect[0]..expect[nseq-1]>. 
 * 
 * If <abc> is non-NULL, digitize alignment and run test again in
 * digital alignment mode.
 * 
 * On failure, caller utest provides <msg> as the error msg to print.
 */
GSC weighting test on text-mode alignment , where we expect
the weights to be .

If  is non-NULL, digitize alignment and run test again in
digital alignment mode.

On failure, caller utest provides  as the error msg to print.
GSC weighting test on text - mode alignment where we expect the weights to be . If is non - NULL digitize alignment and run test again in digital alignment mode . On failure caller utest provides as the error msg to print .
static void
do_GSC(ESL_ALPHABET *abc, ESL_MSA *msa, double *expect, char *msg)
{
  if (esl_msaweight_GSC(msa)                               != eslOK) esl_fatal(msg);
  if (esl_vec_DCompare(msa->wgt, expect, msa->nseq, 0.001) != eslOK) esl_fatal(msg);
  if (abc)
    {
      if (esl_msa_Digitize(abc, msa, NULL)                     != eslOK) esl_fatal(msg);
      if (esl_msaweight_GSC(msa)                               != eslOK) esl_fatal(msg);
      if (esl_vec_DCompare(msa->wgt, expect, msa->nseq, 0.001) != eslOK) esl_fatal(msg);
      if (esl_msa_Textize(msa)                                 != eslOK) esl_fatal(msg);
    }
}
static void do_GSC ( ESL_ALPHABET * abc , ESL_MSA * msa , double * expect , char * msg ) { if ( esl_msaweight_GSC ( msa ) != eslOK ) esl_fatal ( msg ) ; if ( esl_vec_DCompare ( msa -> wgt , expect , msa -> nseq , 0.001 ) != eslOK ) esl_fatal ( msg ) ; if ( abc ) { if ( esl_msa_Digitize ( abc , msa , NULL ) != eslOK ) esl_fatal ( msg ) ; if ( esl_msaweight_GSC ( msa ) != eslOK ) esl_fatal ( msg ) ; if ( esl_vec_DCompare ( msa -> wgt , expect , msa -> nseq , 0.001 ) != eslOK ) esl_fatal ( msg ) ; if ( esl_msa_Textize ( msa ) != eslOK ) esl_fatal ( msg ) ; } }
GSC weighting test on text-mode alignment <msa>, where we expect
 the weights to be <expect[0]..expect[nseq-1]>.
GSC weighting test on text - mode alignment <msa > where we expect the weights to be <expect [ 0 ] .. expect [ nseq - 1 ] > .
/* text mode */ /* digital mode */