-
Notifications
You must be signed in to change notification settings - Fork 79
Clarify non-span-normalised pca #3359
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 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
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
6ed6989 to
9cb5224
Compare
9cb5224 to
d9e4158
Compare
|
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| 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"``, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| 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., |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Factors are normalized to have L2 norm 1, i.e., | |
| Factors are normalized to have norm 1, i.e., |
petrelharp
left a comment
There was a problem hiding this 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.
|
Whoops - I don't think you applied the suggested changes. |
Fixes #3358