Include year_letter_clade & more in metadata #373
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.
We currently output only composite clade names, e.g.
21L (Omicron)
Nextclade now produces also atomic clades,
that are Nextstrain and WHO only:
21L
andOmicron
.Nextclade will at some point switch "clade" from
legacy
toNextstrain
This commit insulates ingest-metadata from this upcoming change
by using
clade_legacy
in place ofclade
in the column_map assource of
Nextstrain_clade
.At some point we may drop/deprecate the complex
Nextstrain_clade
- or keep it for backwards compatibility.For new scripts, one should use
year_letter_clade
from now on, this is the best unique cladekey
for the Nextstrain clade schema.This commit also adds:
year_letter_clade
sourced fromclade_nextstrain
who_variant
sourced fromclade_who
clade_display_name
: calculated as21L (Omicron)
/20C
Tested using
config/debug_sample_genbank.yaml
and it worked thereTest runs:
3864fece-2ed7-496a-88cf-603f47bcf708
a7ded173-ade8-43aa-91fd-0b24d273aa31