Skip to content

Commit

Permalink
ncbi-virus-url: Add updated as an output column
Browse files Browse the repository at this point in the history
Useful for knowing when the record was last updated in NCBI, which
@j23414 noted to be the "Modification date".¹

This will ultimately add a new field to the NDJSON output from
fetch-from-ncbi-virus, but it should not affect the final metadata
output of the ingest pipelines. Ingest pipelines usually define the
final metadata output columns in the config and would need to be updated
separately.

¹ nextstrain/mpox#104 (comment)
  • Loading branch information
joverlee521 committed Aug 24, 2023
1 parent ec2a692 commit c5ad366
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ncbi-virus-url
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ def build_query_url(ncbi_taxon_id: str,
('location', 'CountryFull_s'),
('collected', 'CollectionDate_s'),
('submitted', 'CreateDate_dt'),
('updated', 'UpdateDate_dt'),
('length', 'SLen_i'),
('host', 'Host_s'),
('isolation_source', 'Isolation_csv'),
Expand Down

0 comments on commit c5ad366

Please # to comment.