third_party_software/hmmer-3.0-linux-intel-x86_64/src/p7_profile.c
/* Function:  p7_profile_SetNullEmissions()
 * Synopsis:  Set all emission scores to zero (experimental).
 * Incept:    SRE, Mon Jun 25 08:12:06 2007 [Janelia]
 *
 * Purpose:   Set all emission scores in profile <gm> to zero.
 *            This makes the profile a null model, with all the same
 *            length distributions as the original model, but
 *            the emission probabilities of the background.
 *            
 *            Written to test the idea that score statistics will be
 *            even better behaved when using a null model with the
 *            same length distribution as the search model.
 *
 * Returns:   <eslOK> on success.
 */
p7_profile_SetNullEmissions()
Synopsis:  Set all emission scores to zero (experimental).

Set all emission scores in profile  to zero.
This makes the profile a null model, with all the same
length distributions as the original model, but
the emission probabilities of the background.

Written to test the idea that score statistics will be
even better behaved when using a null model with the
same length distribution as the search model.

 on success.
p7_profile_SetNullEmissions () Synopsis : Set all emission scores to zero ( experimental ) . Set all emission scores in profile to zero . This makes the profile a null model with all the same length distributions as the original model but the emission probabilities of the background . Written to test the idea that score statistics will be even better behaved when using a null model with the same length distribution as the search model . on success .
int
p7_profile_SetNullEmissions(P7_PROFILE *gm)
{
  int x;
  for (x = 0; x <= gm->abc->K; x++)                esl_vec_FSet(gm->rsc[x], (gm->M+1)*p7P_NR, 0.0);   
  for (x = gm->abc->K+1; x <= gm->abc->Kp-3; x++)  esl_vec_FSet(gm->rsc[x], (gm->M+1)*p7P_NR, 0.0);   
  return eslOK;
}
int p7_profile_SetNullEmissions ( P7_PROFILE * gm ) { int x ; for ( x = 0 ; x <= gm -> abc -> K ; x ++ ) esl_vec_FSet ( gm -> rsc [ x ] , ( gm -> M + 1 ) * p7P_NR , 0.0 ) ; for ( x = gm -> abc -> K + 1 ; x <= gm -> abc -> Kp - 3 ; x ++ ) esl_vec_FSet ( gm -> rsc [ x ] , ( gm -> M + 1 ) * p7P_NR , 0.0 ) ; return eslOK ; }
Function:  p7_profile_SetNullEmissions()
 Synopsis:  Set all emission scores to zero (experimental).
Function : p7_profile_SetNullEmissions () Synopsis : Set all emission scores to zero ( experimental ) .
/* canonicals    */ /* noncanonicals */