-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds a rule to fetch GISAID and GenBank accession links from UCSC and uses the output in the `transform_genbank` and `transform_gisaid` rules. The UCSC file is modified to keep the headers and format exactly the same as the current `source-data/accessions.tsv.gz` file so that it can be directly replaced.
- Loading branch information
1 parent
4d06220
commit a4089e7
Showing
2 changed files
with
28 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
curl "https://hgwdev.gi.ucsc.edu/~angie/epiToPublicAndDate.latest" \ | ||
--fail --silent --show-error \ | ||
--header 'User-Agent: https://github.com/nextstrain/ncov-ingest ([email protected])' \ | ||
| csvtk -t add-header --names gisaid_epi_isl,genbank_accession,strain,date \ | ||
| csvtk -t cut --fields genbank_accession,gisaid_epi_isl \ | ||
| gzip -c |
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