third_party_software/hmmer-3.0-linux-intel-x86_64/easel/esl_sq.c
/* Function:  esl_sq_CreateDigitalBlock()
 * Synopsis:  Create a new block of empty <ESL_SQ> in digital mode.
 * Incept:    
 *
 * Purpose:   Same as <esl_sq_CreateBlock()>, 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.
 *            
 * Returns:   a pointer to the new <ESL_SQ_BLOCK>. Caller frees this with
 *            <esl_sq_DestroyBlock()>.
 * 
 * Throws:    <NULL> if an allocation fails.
 *
 * Xref:      
 */
esl_sq_CreateDigitalBlock()
Synopsis:  Create a new block of empty  in digital mode.
Incept.

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.

a pointer to the new . Caller frees this with
.

 if an allocation fails.


esl_sq_CreateDigitalBlock () Synopsis : Create a new block of empty in digital mode . Incept . 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 . a pointer to the new . Caller frees this with . if an allocation fails .
ESL_SQ_BLOCK *
esl_sq_CreateDigitalBlock(int count, const ESL_ALPHABET *abc)
{
  int i;
  ESL_SQ_BLOCK *block;
  if ((block = sq_createblock(count, TRUE)) == NULL) return NULL;
  for (i = 0; i < count; ++i)
    {
      block->list[i].abc = abc;
    }
  return block;
}
ESL_SQ_BLOCK * esl_sq_CreateDigitalBlock ( int count , const ESL_ALPHABET * abc ) { int i ; ESL_SQ_BLOCK * block ; if ( ( block = sq_createblock ( count , TRUE ) ) == NULL ) return NULL ; for ( i = 0 ; i < count ; ++ i ) { block -> list [ i ] . abc = abc ; } return block ; }
Function:  esl_sq_CreateDigitalBlock()
 Synopsis:  Create a new block of empty <ESL_SQ> in digital mode.
Function : esl_sq_CreateDigitalBlock () Synopsis : Create a new block of empty <ESL_SQ > in digital mode .