Skip to content

Conversation

@hyanwong
Copy link
Member

@hyanwong hyanwong commented Jan 4, 2026

Fixes #3358

@codecov
Copy link

codecov bot commented Jan 4, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.76%. Comparing base (648a595) to head (d9e4158).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3359   +/-   ##
=======================================
  Coverage   89.76%   89.76%           
=======================================
  Files          29       29           
  Lines       31292    31292           
  Branches     5738     5738           
=======================================
  Hits        28089    28089           
  Misses       1794     1794           
  Partials     1409     1409           
Flag Coverage Δ
c-tests 86.77% <ø> (ø)
lwt-tests 80.38% <ø> (ø)
python-c-tests 87.12% <ø> (ø)
python-tests 98.85% <ø> (ø)
python-tests-no-jit 33.51% <ø> (ø)
python-tests-numpy1 50.28% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
python/tskit/trees.py 98.89% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@hyanwong hyanwong enabled auto-merge January 6, 2026 08:23
@hyanwong
Copy link
Member Author

hyanwong commented Jan 6, 2026

Comments resolved, ready to merge if you tick as "approved", @petrelharp. Thanks!

between sample :math:`i` and sample :math:`j`, then by default this returns
the top ``num_components`` eigenvectors of :math:`M`, so that
Concretely, take :math:`M` as the matrix of non-span-normalised
branch-based genetic relatedness values, for instance obtained by
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
branch-based genetic relatedness values, for instance obtained by
genetic relatedness values, for instance obtained by

Concretely, take :math:`M` as the matrix of non-span-normalised
branch-based genetic relatedness values, for instance obtained by
setting :math:`M_{ij}` to be the :meth:`~.TreeSequence.genetic_relatedness`
between sample :math:`i` and sample :math:`j` with ``mode="branch"``,
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
between sample :math:`i` and sample :math:`j` with ``mode="branch"``,
between sample :math:`i` and sample :math:`j` with the specified ``mode``,

thing, except with :math:`M_{ij}` either the relatedness between
``samples[i]`` and ``samples[j]`` or the average relatedness between the
nodes of ``individuals[i]`` and ``individuals[j]``, respectively.
Factors are normalized to have L2 norm 1, i.e.,
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Factors are normalized to have L2 norm 1, i.e.,
Factors are normalized to have norm 1, i.e.,

Copy link
Contributor

@petrelharp petrelharp left a comment

Choose a reason for hiding this comment

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

With these comments, I approve.

@hyanwong hyanwong added this pull request to the merge queue Jan 6, 2026
Merged via the queue into tskit-dev:main with commit f6bc49e Jan 6, 2026
18 checks passed
@petrelharp
Copy link
Contributor

Whoops - I don't think you applied the suggested changes.

petrelharp added a commit to petrelharp/tskit that referenced this pull request Jan 6, 2026
github-merge-queue bot pushed a commit that referenced this pull request Jan 7, 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.

Clarify the GRM used in ts.pca

2 participants