Skip to content

Commit

Permalink
Move the ncbi field map to config
Browse files Browse the repository at this point in the history
To be consistent with the nextclade-field-map.tsv, move the ncbi-field-map.tsv
to config.
  • Loading branch information
j23414 committed Oct 31, 2023
1 parent 9ff822f commit 66a45df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ingest/config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
sources: ['genbank']
# Pathogen NCBI Taxonomy ID
ncbi_taxon_id: '10244'
# Renames the NCBI dataset headers
ncbi_field_map: 'source-data/ncbi-dataset-field-map.tsv'

# Params for the transform rule
transform:
Expand Down
2 changes: 1 addition & 1 deletion ingest/workflow/snakemake_rules/fetch_sequences.smk
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ rule format_ncbi_dataset_report:
# The only fields we do not have equivalents for are "title" and "publications"
input:
dataset_package="data/ncbi_dataset.zip",
ncbi_field_map="source-data/ncbi-dataset-field-map.tsv",
ncbi_field_map=config["ncbi_field_map"],
output:
ncbi_dataset_tsv=temp("data/ncbi_dataset_report.tsv"),
params:
Expand Down

0 comments on commit 66a45df

Please sign in to comment.