Skip to content

PCA tutorial#301

Open
hannesbecher wants to merge 6 commits intotskit-dev:mainfrom
hannesbecher:main
Open

PCA tutorial#301
hannesbecher wants to merge 6 commits intotskit-dev:mainfrom
hannesbecher:main

Conversation

@hannesbecher
Copy link

Hi,
here is my proposed PCA tutorial. This covers:

  • PCA on genotypes vs branches
  • haplotypes vs diploid genotypes
  • simulated data only

Looking forward to opinions/comments/requests!

HELP please: for some reason the cell outputs of this tutorial don't render when I run make on my system (but they do for all other existing python tutorials). What I might be going on? I had written this as an ipynb and then converted to md.

Cheers,
Hannes

Added tutorial on comparing branch and SNP-based PCA using msprime and tskit, including code examples for simulating ARGs and performing PCA.
Updated R package installation command to specify CRAN repository.
Updated kernel specifications and code formatting for clarity. Added comments and organized code cells for better readability.
@hannesbecher hannesbecher marked this pull request as draft March 25, 2026 14:08
@hannesbecher hannesbecher marked this pull request as ready for review March 25, 2026 15:54
@hannesbecher
Copy link
Author

OK, have figured it out. format_name in the md file has to be format_name: myst, it seems.

@hannesbecher hannesbecher mentioned this pull request Mar 25, 2026
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.

1 participant