|
1 | 1 | # |
2 | 2 | # MIT License |
3 | 3 | # |
4 | | -# Copyright (c) 2018-2024 Tskit Developers |
| 4 | +# Copyright (c) 2018-2025 Tskit Developers |
5 | 5 | # Copyright (c) 2015-2018 University of Oxford |
6 | 6 | # |
7 | 7 | # Permission is hereby granted, free of charge, to any person obtaining a copy |
@@ -68,19 +68,6 @@ def run_trees(args): |
68 | 68 | print(tree.draw(format="unicode")) |
69 | 69 |
|
70 | 70 |
|
71 | | -def run_upgrade(args): |
72 | | - try: |
73 | | - tree_sequence = tskit.load_legacy(args.source, args.remove_duplicate_positions) |
74 | | - tree_sequence.dump(args.destination) |
75 | | - except tskit.DuplicatePositionsError: |
76 | | - sys_exit( |
77 | | - "Error: Duplicate mutation positions in the source file detected.\n\n" |
78 | | - 'This is not supported in the current file format. Running "upgrade -d" ' |
79 | | - "will remove these duplicate positions. However, this will result in loss " |
80 | | - "of data from the original file!" |
81 | | - ) |
82 | | - |
83 | | - |
84 | 71 | def run_individuals(args): |
85 | 72 | tree_sequence = load_tree_sequence(args.tree_sequence) |
86 | 73 | tree_sequence.dump_text(individuals=sys.stdout, precision=args.precision) |
@@ -197,7 +184,6 @@ def get_tskit_parser(): |
197 | 184 | default=False, |
198 | 185 | help="Remove any duplicated mutation positions in the source file. ", |
199 | 186 | ) |
200 | | - parser.set_defaults(runner=run_upgrade) |
201 | 187 | # suppress fasta visibility until we have a reference sequence |
202 | 188 | # See https://github.com/tskit-dev/tskit/issues/1888 |
203 | 189 | # parser = subparsers.add_parser( |
|
0 commit comments