-
Notifications
You must be signed in to change notification settings - Fork 76
Add possibility to simplify but keep nodes that are partially unary + partially coalescent #2127
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Some options:
|
Here is a plot to show the effect of running that versus the normal simplify. It looks like I was wrong when chatting to @petrelharp : on standard tree sequences we nearly always get compression when leaving the "unary-when-on-coalescent_nodes" in. Unless I've made some error here:
|
Thanks, @hyanwong - interesting that it's nearly always, not strictly always. (I guess we know why, though?) |
See also discussion here: #2089 (reply in thread) |
As discussed in #2089 and with some code providing a workaround in tskit-dev/what-is-an-arg-paper#80.
Also note that issue #1120 discusses how we might avoid a large increase in the number of parameters to simplify, when focussing on particular nodes. I'm not sure if that is relevant to the current case: the semantics of the parameters passed to simplify requires some thought, I reckon.
The text was updated successfully, but these errors were encountered: