hmmer-3.3/easel/esl_sq.c
/* Function:  esl_sq_CreateDigital()
 * Synopsis:  Create a new, empty <ESL_SQ> in digital mode.
 * Incept:    SRE, Tue Jan  9 16:42:35 2007 [Janelia]
 *
 * Purpose:   Same as <esl_sq_Create()>, except the returned <sq> is
 *            configured for a digital sequence using internal
 *            alphabet <abc>, rather than a text sequence. Creates an
 *            empty digital <ESL_SQ> sequence object, with internal
 *            fields allocated to reasonable initial sizes.
 *            
 * Args:      abc      - pointer to internal alphabet
 * 
 * Returns:   a pointer to the new <ESL_SQ>. Caller frees this with
 *            <esl_sq_Destroy()>.
 * 
 * Throws:    <NULL> if an allocation fails.
 *
 * Xref:      STL11/124
 */
esl_sq_CreateDigital()
Synopsis:  Create a new, empty  in digital mode.

Same as , except the returned  is
configured for a digital sequence using internal
alphabet , rather than a text sequence. Creates an
empty digital  sequence object, with internal
fields allocated to reasonable initial sizes.

abc      - pointer to internal alphabet

a pointer to the new . Caller frees this with
.

 if an allocation fails.


esl_sq_CreateDigital () Synopsis : Create a new empty in digital mode . Same as except the returned is configured for a digital sequence using internal alphabet rather than a text sequence . Creates an empty digital sequence object with internal fields allocated to reasonable initial sizes . abc - pointer to internal alphabet a pointer to the new . Caller frees this with . if an allocation fails .
ESL_SQ *
esl_sq_CreateDigital(const ESL_ALPHABET *abc)
{
  ESL_SQ *s;
  if ((s = sq_create(TRUE)) == NULL) return NULL;
  s->abc    = abc;
  return s;
}
ESL_SQ * esl_sq_CreateDigital ( const ESL_ALPHABET * abc ) { ESL_SQ * s ; if ( ( s = sq_create ( TRUE ) ) == NULL ) return NULL ; s -> abc = abc ; return s ; }
Function:  esl_sq_CreateDigital()
 Synopsis:  Create a new, empty <ESL_SQ> in digital mode.
Function : esl_sq_CreateDigital () Synopsis : Create a new empty <ESL_SQ > in digital mode .