Skip to content
Browse files

Small tweaks made when removing HMMER3 dummy implementation.

  • Loading branch information...
cryptogenomicon committed Jun 4, 2018
1 parent b166d24 commit fd94007d66a0de9f7c58bbad411c8d7cfdf8668c
Showing with 2 additions and 3 deletions.
  1. +1 −1 esl_sqio_ncbi.c
  2. +1 −2 esl_ssi.c
@@ -1185,7 +1185,7 @@ sqncbi_ReadBlock(ESL_SQFILE *sqfp, ESL_SQ_BLOCK *sqBlock, int max_residues, int
{ /* DNA, not an alignment. Might be really long sequences */

/*this variable is used instead of the MAX_RESIDUE_COUNT macro because impl_dummy may require shorter sequences to fit in memory*/
/*this variable was used instead of the MAX_RESIDUE_COUNT macro because old H3 impl_dummy could've required shorter sequences to fit in memory*/
if (max_residues < 0)
max_residues = MAX_RESIDUE_COUNT;

@@ -1029,7 +1029,6 @@ esl_newssi_Write(ESL_NEWSSI *ns)
if (ns->ssifp == NULL)
ESL_EXCEPTION(eslEINVAL, "SSI data were already written.");

/* We need fixed-width buffers to get our keys fwrite()'ten in their
* full binary lengths; pkey->key (for instance) is not guaranteed
* to be allocated for the final maximum plen. We use strncpy(), not
@@ -1038,7 +1037,7 @@ esl_newssi_Write(ESL_NEWSSI *ns)
* write uninitialized bytes from these buffers.
ESL_ALLOC(fk, sizeof(char) * ns->flen);
ESL_ALLOC(pk, sizeof(char) * ns->plen);
ESL_ALLOC(pk, ESL_MAX(1, sizeof(char) * ns->plen));
if (ns->nsecondary > 0) ESL_ALLOC(sk, sizeof(char) * ns->slen);

/* How big is the index? If it's going to be > 2GB, we better have

0 comments on commit fd94007

Please sign in to comment.
You can’t perform that action at this time.