Skip to content

Commit

Permalink
Merge pull request #850 from nextstrain/parse_typo_fix
Browse files Browse the repository at this point in the history
Fix 'Forbidden characters' typo
  • Loading branch information
huddlej authored Feb 14, 2022
2 parents bdfbe82 + 082bb3e commit 521022d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions augur/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from .io import open_file, read_sequences, write_sequences

forbidden_chactacters = str.maketrans(
forbidden_characters = str.maketrans(
{' ': None,
'(': '_',
')': '_',
Expand Down Expand Up @@ -103,7 +103,7 @@ def parse_sequence(sequence, fields, strain_key="strain", separator="|", prettif
sequence_fields = map(str.strip, sequence.description.split(separator))
metadata = dict(zip(fields, sequence_fields))

tmp_name = metadata[strain_key].translate(forbidden_chactacters)
tmp_name = metadata[strain_key].translate(forbidden_characters)
sequence.name = sequence.id = tmp_name
sequence.description = ''

Expand Down

0 comments on commit 521022d

Please sign in to comment.