-
When e.g. you try to simplify a tree sequence from Relate, you get:
E.g. see #3057. How do you solve this? |
Beta Was this translation helpful? Give feedback.
Answered by
hyanwong
Nov 21, 2024
Replies: 1 comment
-
Some software, such as Relate, adds metadata to the edges of tree sequence. If you don't need this metadata, the easiest thing is to remove it. As of tskit 0.6.0 and higher, the easiest way is to use the ts = tskit.load("relate_ts.trees")
tables = ts.dump_tables()
tables.edges.drop_metadata()
ts = tables.tree_sequence()
# Do whatever you want with the new `ts`
ts.simplify(range(10)) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
hyanwong
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Some software, such as Relate, adds metadata to the edges of tree sequence. If you don't need this metadata, the easiest thing is to remove it. As of tskit 0.6.0 and higher, the easiest way is to use the
drop_metadata
method: