-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NCBI Dataset field name transformations
Originally the field map was created to keep mpox NDJSON backward compatible with field names used from NCBI Virus. However, this constraint is not applicable to dengue. This commit organizes field renaming into two parts. 1. Rename the NCBI output columns to match the NCBI mnemonics (see `source-data/ncbi-dataset-field-map.tsv`) 2. Where necessary, rename the NCBI mnemonics to match Nextstrain expected column names (see "transform: fieldmap:" in `config/config.yaml`) For context and discussion, see #13 (comment)
- Loading branch information
Showing
3 changed files
with
38 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,20 @@ | ||
# Maps the NCBI output TSV column names back to the NCBI mnemonics. | ||
# This list should match the list in | ||
# ingest/workflow/snakemake_rules/fetch_sequences.smk _get_ncbi_dataset_field_mnemonics | ||
key value | ||
Accession genbank_accession_rev | ||
Source database database | ||
Isolate Lineage strain | ||
Geographic Region region | ||
Geographic Location location | ||
Isolate Collection date collected | ||
Release date released | ||
Update date updated | ||
Accession accession-rev | ||
Source database sourcedb | ||
Isolate Lineage isolate-lineage | ||
Geographic Region geo-region | ||
Geographic Location geo-location | ||
Isolate Collection date isolate-collection-date | ||
Release date release-date | ||
Update date update-date | ||
Length length | ||
Host Name host | ||
Isolate Lineage source isolation_source | ||
BioProjects bioproject_accession | ||
BioSample accession biosample_accession | ||
SRA Accessions sra_accession | ||
Submitter Names authors | ||
Submitter Affiliation submitting_organization | ||
Host Name host-name | ||
Isolate Lineage source isolate-lineage-source | ||
BioProjects bioprojects | ||
BioSample accession biosample-acc | ||
SRA Accessions sra-accs | ||
Submitter Names submitter-names | ||
Submitter Affiliation submitter-affiliation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters