You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
C APIIssue is about the C APIPython APIIssue is about the Python APIenhancementNew feature or requestfutureIssues that are closed as they are not planned in the medium-term, but which are still desirable.statistics
This is just a suggestion that i would assume is easy to implement -- is it possible to include methods for rmatrix() in addition to r2matrix()?
(Why do I care about this? r rather than r2 is the relevant statistic if you are trying to calculate marginal effect sizes for a linked locus with multiple causal effects.)
Thanks for the suggestion @35ajstern. Presumably, this is np.sqrt(r2_matrix), so seems like it's hardly worth the API duplication? (Perhaps I'm missing something though?)
This is obviously easy enough to calculate directly from the genotype matrix, but i'm guessing you guys have some secret sauce for how to optimize this calculation using the treeSeq -- hence my suggestion
Well, it's actually pretty involved coding the LD methods up at the moment, but we're hoping to get a more general framework in place soon (with @apragsdale), so we'll definitely include this when we do. Unfortunately, I don't think it'll happen before that unless you'd like to volunteer some time.
Hi Aaron, Jerome - yes, I've been (slowly) plugging away locally on getting a more general framework for two locus statistics implemented, tested, and working, but it's not quite ready to send in a pull request I think (Jerome, unless you think it's helpful to have open pull request that are actively in development and a ways away from being integrated - not entirely sure what the preferred approach is for that).
@35ajstern if you have some time soon and do want to help out, let's chat! I've also been a bit slow getting around to this, so more people working on it would be motivating..
two locus statistics implemented, tested, and working, but it's not quite ready to send in a pull request I think (Jerome, unless you think it's helpful to have open pull request that are actively in development and a ways away from being integrated - not entirely sure what the preferred approach is for that).
It depends on when you'd like to get feedback basically @apragsdale --- feel free to open a PR whenever you like.
Let's keep this issue open anyway, as a reminder that we want to implement r as well as r2.
C APIIssue is about the C APIPython APIIssue is about the Python APIenhancementNew feature or requestfutureIssues that are closed as they are not planned in the medium-term, but which are still desirable.statistics
Activity
jeromekelleher commentedon Nov 19, 2019
Thanks for the suggestion @35ajstern. Presumably, this is
np.sqrt(r2_matrix), so seems like it's hardly worth the API duplication? (Perhaps I'm missing something though?)standard-aaron commentedon Nov 19, 2019
What if r is negative?
standard-aaron commentedon Nov 19, 2019
This is obviously easy enough to calculate directly from the genotype matrix, but i'm guessing you guys have some secret sauce for how to optimize this calculation using the treeSeq -- hence my suggestion
jeromekelleher commentedon Nov 19, 2019
Ah yes, of course.
Well, it's actually pretty involved coding the LD methods up at the moment, but we're hoping to get a more general framework in place soon (with @apragsdale), so we'll definitely include this when we do. Unfortunately, I don't think it'll happen before that unless you'd like to volunteer some time.
[-]LdCalculator method[/-][+]Calculate r LD coefficient[/+]standard-aaron commentedon Nov 19, 2019
Sounds good -- might try to help with this if I have time soon. Feel free to close the issue!
apragsdale commentedon Nov 19, 2019
Hi Aaron, Jerome - yes, I've been (slowly) plugging away locally on getting a more general framework for two locus statistics implemented, tested, and working, but it's not quite ready to send in a pull request I think (Jerome, unless you think it's helpful to have open pull request that are actively in development and a ways away from being integrated - not entirely sure what the preferred approach is for that).
@35ajstern if you have some time soon and do want to help out, let's chat! I've also been a bit slow getting around to this, so more people working on it would be motivating..
jeromekelleher commentedon Nov 20, 2019
It depends on when you'd like to get feedback basically @apragsdale --- feel free to open a PR whenever you like.
Let's keep this issue open anyway, as a reminder that we want to implement r as well as r2.
benjeffery commentedon Jun 11, 2025
Closing for inactivity and labelling "future", please re-open if you plan to work on this.