Skip to content

Commit

Permalink
Fix quoting typo
Browse files Browse the repository at this point in the history
'q' is not a valid formatting type for python (it's a snakemake feature)
  • Loading branch information
jameshadfield committed Mar 19, 2024
1 parent 7c99559 commit 54bde7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions augur/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,7 @@ def _parse(feat):
for segment in feat.location.parts # segment: SimpleLocation
]
else:
raise AugurError(f"Encountered a genome feature with an unknown location type {type(feat.location):q}")
raise AugurError(f"Encountered a genome feature with an unknown location type '{type(feat.location)}'")
a['strand'] = {+1:'+', -1:'-', 0:'?', None:None}[feat.location.strand]
a['type'] = feat.type # (unused by auspice)
if ref_seq_name:
Expand All @@ -883,6 +883,6 @@ def _parse(feat):
if fname=='nuc':
assert annotations['nuc']['strand'] == '+', "Nuc feature must be +ve strand"
elif annotations[fname]['strand'] not in ['+', '-']:
print("WARNING: Feature {fname:q} uses a strand which auspice cannot display")
print(f"WARNING: Feature '{fname}' uses a strand which auspice cannot display")

return annotations

0 comments on commit 54bde7f

Please sign in to comment.