Skip to content

Commit

Permalink
Ingest: Derive URL column during ingest
Browse files Browse the repository at this point in the history
  • Loading branch information
j23414 committed Dec 11, 2024
1 parent a443038 commit 58a9a99
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions ingest/defaults/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,4 +121,5 @@ curate:
"authors",
"full_authors",
"institution",
"url",
]
2 changes: 2 additions & 0 deletions ingest/rules/curate.smk
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ rule curate:
--abbr-authors-field {params.abbr_authors_field} \
| augur curate apply-geolocation-rules \
--geolocation-rules {input.all_geolocation_rules} \
| jq -c --arg GENBANK "{params.id_field}" \
'. |= (.url="https://www.ncbi.nlm.nih.gov/nuccore/" + .[$GENBANK])' \
| augur curate apply-record-annotations \
--annotations {input.annotations} \
--id-field {params.annotations_id} \
Expand Down

0 comments on commit 58a9a99

Please sign in to comment.