Skip to content

Commit

Permalink
only check count every 4th line as sequence
Browse files Browse the repository at this point in the history
because @ can be in the qualities (like # .. which was handled wrong
previously)
  • Loading branch information
bernt-matthias committed Feb 13, 2024
1 parent fcb6fd2 commit 0dc23a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/datatypes/sequence.py
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ def set_meta(self, dataset: DatasetProtocol, overwrite: bool = True, **kwd) -> N
sequences = 0
with compression_utils.get_fileobj(dataset.get_file_name()) as in_file:
for line in in_file:
if line.startswith("@"):
if line.startswith("@") and data_lines % 4 == 0:
sequences += 1
data_lines += 1
dataset.metadata.data_lines = data_lines
Expand Down

0 comments on commit 0dc23a6

Please sign in to comment.