Skip to content

Commit

Permalink
Fixed issue that fasta_iter did not yield the last sequence in the file
Browse files Browse the repository at this point in the history
  • Loading branch information
ekmolloy committed Feb 1, 2021
1 parent 5a3cc5d commit 747f94e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sepp/metagenomics.py
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,10 @@ def fasta_iter(fasta_name):
else:
nextseq.append(line.strip())

header = nextheader[1:]
seq = "".join(nextseq)
yield header, seq


def fastq_iter(fastq_name):
"""
Expand Down

0 comments on commit 747f94e

Please sign in to comment.