nextstrain / augur

Pipeline components for real-time phylodynamic analysis
https://docs.nextstrain.org/projects/augur/
GNU Affero General Public License v3.0
268 stars 128 forks source link

augur curate rename #1484

Open joverlee521 opened 1 week ago

joverlee521 commented 1 week ago

Context

A common task in metadata wrangling is renaming the columns to match expectations. This will be especially important for the forthcoming augur join/merge command that would expect input metadata to share the same column names.

I originally thought we could avoid creating our own rename command and just use csvtk rename, but discussion in https://github.com/nextstrain/augur/issues/1475 has pushed for doing it ourselves.

Description

augur curate rename can start from transform-field-names from ingest.

I think it'd be simple to implement some variation of the config option suggested by @jameshadfield in https://github.com/nextstrain/augur/issues/1475, but it can also be left as a future TODO.