Skip to content

Commit

Permalink
cherry pick #637 latin encoding hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
atc3 committed Jan 27, 2024
1 parent e86c1d6 commit b1d56e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workflow_flu_gisaid_ingest/scripts/chunk_sequences.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def process_fasta_file(fasta_file, metadata, output_path, chunk_size=10_000):
# Get the date from the fasta file name, as a string
# file_date = Path(fasta_file).name.replace(".fa.gz", "")

with open(fasta_file, "rt") as fp:
with open(fasta_file, "rt", encoding="latin-1") as fp:
lines = fp.readlines()
for i, line in enumerate(lines):
# Strip whitespace
Expand Down

0 comments on commit b1d56e9

Please sign in to comment.