read a tree sequence into msprime ? #2274
|
hi all, I am working on individual-based simulations that generate ancestral trees in two ways, and would like to a simple example - for a single non-recombining locus I have an output (in compact form) meaning that I label the sampled leaves as 0,1,2; after (say) r generations the ancestors of leaves 0 and 1 merge, and after further (say) s so was wondering if it is possible to read tree sequences generated outside msprime into msprime ? best |
Replies: 2 comments
|
update: was viewing tskit and msprime as one and the same thing - |
|
Hi @eldonb, Good starting points might be editing tables and building simulator with tskit. Especially the first link will highlight how you can modify/build the tables that underlie any tree sequence yourself. Once you get to grips with the fundamental building blocks it is relatively easy to code up your own example tree sequences and plot them. |
Hi @eldonb,
Good starting points might be editing tables and building simulator with tskit. Especially the first link will highlight how you can modify/build the tables that underlie any tree sequence yourself. Once you get to grips with the fundamental building blocks it is relatively easy to code up your own example tree sequences and plot them.