vdb/download: Add --prioritized_seqs_file
option
#176
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
Allow users to define prioritized sequence accessions for a strain when the duplicate resolve method is
split_passage
. This flag could be extended for other resolve methods, but we are not actively using them in seasonal flu workflows so punting for now.The file is expected to be a TSV file with a
strain
andaccession
column where thestrain
column only contains unique strain names. With the seasonal flu's pattern of downloading each segment separately,¹ the file should contain sequence accessions for a single segment.¹ https://github.com/nextstrain/seasonal-flu/blob/73b8294906da99a6abd26f543edd68dfd6e63d0e/workflow/snakemake_rules/download_from_fauna.smk#L69
Related issue(s)
Part of #174
Checklist