hmmer-3.3/src/p7_spensemble.c
/* Function:  p7_spensemble_GetClusterCoords()
 * Synopsis:  Retrieve consensus coords of one significant segment pair cluster.
 * Incept:    SRE, Wed Jan  9 11:39:27 2008 [Janelia]
 *
 * Purpose:   Retrieve the consensus coords of significant segment pair cluster <which>
 *            from the ensemble <sp>, which has already been clustered with
 *            <p7_spensemble_Cluster()>.
 *
 * Returns:   <eslOK> on success, and the consensus coords are in <*opt_i>, <*opt_j>,
 *            <*opt_k>, and <*opt_m>; the (sampled) posterior probability of the 
 *            cluster is in <*opt_p>. All of these returned values are optional;
 *            the caller can pass a <NULL> for any value it's not interested in
 *            retrieving.
 */
p7_spensemble_GetClusterCoords()
Synopsis:  Retrieve consensus coords of one significant segment pair cluster.

Retrieve the consensus coords of significant segment pair cluster 
from the ensemble , which has already been clustered with
.


p7_spensemble_GetClusterCoords () Synopsis : Retrieve consensus coords of one significant segment pair cluster . Retrieve the consensus coords of significant segment pair cluster from the ensemble which has already been clustered with .
int
p7_spensemble_GetClusterCoords(P7_SPENSEMBLE *sp, int which, int *opt_i, int *opt_j, int *opt_k, int *opt_m, float *opt_p)
{
  if (opt_i != NULL) *opt_i = sp->sigc[which].i;
  if (opt_j != NULL) *opt_j = sp->sigc[which].j;
  if (opt_k != NULL) *opt_k = sp->sigc[which].k;
  if (opt_m != NULL) *opt_m = sp->sigc[which].m;
  if (opt_p != NULL) *opt_p = sp->sigc[which].prob;
  return eslOK;
}
int p7_spensemble_GetClusterCoords ( P7_SPENSEMBLE * sp , int which , int * opt_i , int * opt_j , int * opt_k , int * opt_m , float * opt_p ) { if ( opt_i != NULL ) * opt_i = sp -> sigc [ which ] . i ; if ( opt_j != NULL ) * opt_j = sp -> sigc [ which ] . j ; if ( opt_k != NULL ) * opt_k = sp -> sigc [ which ] . k ; if ( opt_m != NULL ) * opt_m = sp -> sigc [ which ] . m ; if ( opt_p != NULL ) * opt_p = sp -> sigc [ which ] . prob ; return eslOK ; }
Function:  p7_spensemble_GetClusterCoords()
 Synopsis:  Retrieve consensus coords of one significant segment pair cluster.
Function : p7_spensemble_GetClusterCoords () Synopsis : Retrieve consensus coords of one significant segment pair cluster .