Skip to content

Commit

Permalink
Merge pull request #148 from nextstrain/fix-gisaid-epi
Browse files Browse the repository at this point in the history
Fix GISAID flu accessions
  • Loading branch information
joverlee521 authored Nov 22, 2023
2 parents 14c500b + ab32ebd commit ec1feb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vdb/flu_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def fix_casing(self, doc):
for field in ['gender', 'host', 'locus']:
if field in doc and doc[field] is not None:
doc[field] = self.camelcase_to_snakecase(doc[field])
if 'accession' in doc and doc['accession'] is not None:
if doc.get('accession') is not None and not doc['accession'].startswith('EPI'):
doc['accession'] = 'EPI' + doc['accession']

def fix_age(self, doc):
Expand Down

0 comments on commit ec1feb6

Please sign in to comment.