Skip to content

Commit

Permalink
Merge pull request #29 from haowenz/fix_trim
Browse files Browse the repository at this point in the history
Actually trim sequences and quality scores.
  • Loading branch information
haowenz authored Sep 20, 2021
2 parents ab051c3 + 38bf5ef commit 388650d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/sequence_batch.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ class SequenceBatch {
negative_sequence_batch_[sequence_index].begin() + sequence->seq.l -
length_after_trim);
sequence->seq.l = length_after_trim;
sequence->seq.s[sequence->seq.l] = '\0';
sequence->qual.l = length_after_trim;
sequence->qual.s[sequence->qual.l] = '\0';
}
inline void SwapSequenceBatch(SequenceBatch &batch) {
sequence_batch_.swap(batch.GetSequenceBatch());
Expand Down

0 comments on commit 388650d

Please sign in to comment.