Skip to content

Conversation

@hyanwong
Copy link
Member

@hyanwong hyanwong commented Jan 7, 2026

Hi @benjeffery - the basic tskit workbook was looking sparse, so I prettified it up a bit. Do you think (a) this is the right approach (it's quite plot-heavy, targetted at end-users rather than programmers) and (b) there's the right amount of content there?

@hyanwong hyanwong requested a review from Copilot January 7, 2026 11:27
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@hyanwong
Copy link
Member Author

hyanwong commented Jan 7, 2026

So that I could get a nice PCA plot, I made a new tree sequence, generated from a simple island model:

import msprime

demography = msprime.Demography.island_model([1000, 1000, 1000, 1000], migration_rate=2e-5)
ts = msprime.sim_ancestry(samples={"pop_0": 25, "pop_1": 25, "pop_2": 25, "pop_3": 25},
                          recombination_rate=1e-8, sequence_length=1e6, demography=demography, random_seed=123)
ts = msprime.sim_mutations(ts, rate=1e-8, random_seed=123)

@benjeffery
Copy link
Member

Looks great @hyanwong - I think the targeted audience is right, this is a showcase of using tskit.

@benjeffery benjeffery merged commit b042c0e into tskit-dev:main Jan 7, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants