Skip to content

Commit

Permalink
Fix a bug when gene name contain a number
Browse files Browse the repository at this point in the history
  • Loading branch information
EnzoAndree committed Feb 3, 2021
1 parent 5c49b34 commit aa416bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/fastmlst
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ if __name__ == '__main__':
# Verbose?
formatter = logging.Formatter('[%(asctime)s] %(levelname)s@%(name)s: %(message)s')
ch = logging.StreamHandler()
split_namefromcode = compile(r'(?P<gene>[a-zA-Z]+)(?P<novel>~?)(?P<number>\d+)(?P<partial>\??)')
split_namefromcode = compile(r'(?P<gene>[a-zA-Z0-9]+)(?P<novel>~?)(?P<number>\d+)(?P<partial>\??)') # OMG genename can be alphanumeric

if args.verbose == 0:
logging.basicConfig(level=logging.WARNING,
Expand Down

0 comments on commit aa416bb

Please sign in to comment.