Skip to content

Commit

Permalink
Add deprecation warning for export v1
Browse files Browse the repository at this point in the history
  • Loading branch information
victorlin committed Jul 26, 2023
1 parent da6a9f2 commit bd91f61
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions augur/export_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,10 @@ def register_parser(parent_subparsers):


def run(args):
print("""DEPRECATION WARNING: augur export v1 will be removed in a future release.
Read more on how to migrate to export v2: <https://docs.nextstrain.org/projects/augur/en/22.1.0/releases/migrating-v5-v6.html>""",
file=sys.stderr)

T = Phylo.read(args.tree, 'newick')
node_data = read_node_data(args.node_data) # args.node_data is an array of multiple files (or a single file)
nodes = node_data["nodes"] # this is the per-node metadata produced by various augur modules
Expand Down
2 changes: 2 additions & 0 deletions tests/builds/zika.t
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,8 @@ Export JSON files as v1 auspice outputs.
> --output-tree "$TMP/out/v1_zika_tree.json" \
> --output-meta "$TMP/out/v1_zika_meta.json" \
> --output-sequence "$TMP/out/v1_zika_seq.json" > /dev/null
DEPRECATION WARNING: augur export v1 will be removed in a future release.
Read more on how to migrate to export v2: <https://docs.nextstrain.org/projects/augur/en/22.1.0/releases/migrating-v5-v6.html>

$ ${AUGUR} validate export-v1 "$TMP/out/v1_zika_meta.json" "$TMP/out/v1_zika_tree.json" > /dev/null

Expand Down

0 comments on commit bd91f61

Please sign in to comment.