nextstrain / seasonal-flu

Scripts. config, and snakefiles for seasonal-flu nextstrain builds
44 stars 26 forks source link

Assign clades to nodes via tabular metadata #91

Open uee9 opened 1 year ago

uee9 commented 1 year ago

Context

I am working on using Nextstrain for global surveillance of Influenza. As part of our bioinformatics workflow, we already assign each sequenced virus to a clade (e.g., 3C.2a1b.2a.2) and we can pull this as part of the tabular metadata for a build. Currently augur clades recomputes this for each node using the definitions file.

Description

I would like to write to a clades.json directly from tabular metadata instead of recomputing the clade based on augur clades.

Examples

Possible solution

1) Function in the API to write an augur formatted json based on tabular data. 2) Logic within augur clades to write the json from strain and clade columns.