hmmer-3.3/src/p7_hmm.c
/* Function:  p7_hmm_Create()
 * Synopsis:  Allocate a new <P7_HMM>.
 *
 * Purpose:   Allocate a <P7_HMM> of <M> nodes, for symbol
 *            alphabet <abc>, and return a pointer to it.
 *            
 *            The HMM only keeps a copy of the <abc> alphabet
 *            pointer. The caller is responsible for providing the
 *            alphabet, keeping it around while the HMM is in use,
 *            and (eventually) free'ing the alphabet when it's
 *            not needed any more. (Basically, just a step removed
 *            from keeping the alphabet as a global.)
 *
 * Throws:    <NULL> on allocation failure.
 */
p7_hmm_Create()
Synopsis:  Allocate a new .

Allocate a  of  nodes, for symbol
alphabet , and return a pointer to it.

The HMM only keeps a copy of the  alphabet
pointer. The caller is responsible for providing the
alphabet, keeping it around while the HMM is in use,
and (eventually) free'ing the alphabet when it's
not needed any more. (Basically, just a step removed
from keeping the alphabet as a global.)

 on allocation failure.
p7_hmm_Create () Synopsis : Allocate a new . Allocate a of nodes for symbol alphabet and return a pointer to it . The HMM only keeps a copy of the alphabet pointer . The caller is responsible for providing the alphabet keeping it around while the HMM is in use and ( eventually ) free ' ing the alphabet when it ' s not needed any more . ( Basically just a step removed from keeping the alphabet as a global . ) on allocation failure .
P7_HMM *
p7_hmm_Create(int M, const ESL_ALPHABET *abc) 
{
  P7_HMM *hmm = NULL;
  if ((hmm = p7_hmm_CreateShell()) == NULL) return NULL;
  p7_hmm_CreateBody(hmm, M, abc);
  return hmm;
}
P7_HMM * p7_hmm_Create ( int M , const ESL_ALPHABET * abc ) { P7_HMM * hmm = NULL ; if ( ( hmm = p7_hmm_CreateShell ( ) ) == NULL ) return NULL ; p7_hmm_CreateBody ( hmm , M , abc ) ; return hmm ; }
Function:  p7_hmm_Create()
 Synopsis:  Allocate a new <P7_HMM>.
Function : p7_hmm_Create () Synopsis : Allocate a new <P7_HMM > .