Skip to content

Running into a new error due to mismatch between Expected root time and Observed root times #341

Answered by petrelharp
elissasoroj asked this question in Q&A
Discussion options

You must be logged in to vote

Hello! Thanks for the easy-to-run code.
Let's see - if you really just want to only remove that entry in the population table, you can just do like this:

tables = tree_sequence.dump_tables()
#change the population to p0 for everyone
nnodes = tables.nodes.num_rows
tables.nodes.population = np.zeros(nnodes, dtype=np.int32)
tables.populations.clear()
tables.populations.append(tree_sequence.population(0))
# turn it back into a treesequence
new_ts = tables.tree_sequence()

pyslim.recapitate(new_ts, ancestral_Ne=10)

That works (for me).

Why are you getting that error? Something weird is happening with your simplify-but-mark-everyone-as-samples-first call. I haven't dug into why exactly this ha…

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
6 replies
@petrelharp
Comment options

@bhaller
Comment options

@elissasoroj
Comment options

@bhaller
Comment options

@elissasoroj
Comment options

Answer selected by elissasoroj
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants