Skip to content

Commit 52fd0bb

Browse files
authored
Merge pull request #156 from sarahet/fix_bam_header
[Fix] Get correct number of header entries for subject sequences
2 parents 0f36e93 + d48cc93 commit 52fd0bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/search_output.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ myWriteHeader(TGH & globalHolder, TLambdaOptions const & options)
330330
if (sIsTranslated(TGH::blastProgram))
331331
{
332332
//TODO can we get around a copy?
333-
subjSeqLengths = globalHolder.untransSubjSeqLengths;
333+
subjSeqLengths = prefix(globalHolder.untransSubjSeqLengths, length(globalHolder.untransSubjSeqLengths) - 1);
334334
} else
335335
{
336336
// compute lengths ultra-fast

0 commit comments

Comments
 (0)