Skip to content

Commit

Permalink
consider empty fasta lines
Browse files Browse the repository at this point in the history
  • Loading branch information
bernt-matthias committed Feb 14, 2024
1 parent 6b52d6d commit 24950a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/galaxy/datatypes/sequence.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,9 @@ def set_meta(self, dataset: DatasetProtocol, overwrite: bool = True, **kwd) -> N
sequences = 0
with compression_utils.get_fileobj(dataset.get_file_name()) as fh:
for line in fh:
if line.startswith(">"):
if not line:
continue
elif line[0] == ">":
sequences += 1
data_lines += 1
else:
Expand Down

0 comments on commit 24950a7

Please sign in to comment.