From d304c915952dfcb8ada1f3d38697575581822b54 Mon Sep 17 00:00:00 2001 From: Jover Date: Tue, 22 Aug 2023 16:56:55 -0700 Subject: [PATCH] ncbi-virus-url: Add `updated` as an output column MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. ¹ https://github.com/nextstrain/monkeypox/issues/104#issuecomment-1320342545 --- ncbi-virus-url | 1 + 1 file changed, 1 insertion(+) diff --git a/ncbi-virus-url b/ncbi-virus-url index 29db4a5..0dd116b 100755 --- a/ncbi-virus-url +++ b/ncbi-virus-url @@ -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'),