WIP: Ingest from NCBI Datasets + Entrez #39
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of proposed changes
Documenting my WIP for ingesting data from NCBI Datasets + Entrez in case we ever need it again. I was going down this route when NCBI Virus downloads were broken for H5N1, so I purposely avoided touching the NCBI Virus
vvsearch2
API in this work.The NCBI Virus vvsearch2 API seems more straight-forward, so I will be pivoting to focus on that route in a separate PR.
Usage
The workflow can be run with
The workflow runs in ~14 minutes, with 10 minutes of it being spent on fetching data with Entrez.
It produces a single metadata.tsv and sequences.fasta that includes many serotypes and all segments.
Outstanding tasks if I want to pick up this workflow again
serotype = H5N1
recordssegment
values to segment namesRelated issue(s)
Related to #37