Selective censoring of a tree sequence #2142
-
The ancestry documentation provides an example of how to remove the pedigree information from an output tree sequence as follows:
I would like to remove the Does it make more sense to selectively delete all instances of
[edit: the good news is that I figured out how to add the geographic coordinates to each individual!] |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 10 replies
-
This is a tskit problem isn't it, rather than an msprime one? There's an example of editing one field of the metadata here: https://tskit.dev/tutorials/tables_and_editing.html#minor-edits |
Beta Was this translation helpful? Give feedback.
-
Yep - that documentation says how to do this sort of thing. Let us know if you run into problems! (And - I might transfer this to a tskit discussion.) |
Beta Was this translation helpful? Give feedback.
-
Just reading through the docs now, this is exactly what I was looking for. Thanks for the quick reply @hyanwong ! I'll post a brief follow up once I've implemented the changes in case anyone else finds this thread in the future. (Apologies for placing this issue in the wrong channel) |
Beta Was this translation helpful? Give feedback.
-
Thanks for all the help! The docs show a clear example for modifying metadata. I've done essentially the same thing, but just for the sake of pasting an answer to the initial problem:
Two questions:
|
Beta Was this translation helpful? Give feedback.
This is a tskit problem isn't it, rather than an msprime one?
There's an example of editing one field of the metadata here:
https://tskit.dev/tutorials/tables_and_editing.html#minor-edits