-
Notifications
You must be signed in to change notification settings - Fork 94
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
Align methods for #858 #859
Conversation
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.
Thanks! There are a few suggestions to make the code more direct. If this is based on an existing implementation, it may be worth verifying the sorting works as expected as the prior use of sort_f
I don't believe would produce a correct table
Inner is fine. Tests would be good :) Possible to address the failure items (looks like lint), and to also include a changelog note? |
@wasade thank you for the thorough review - still a little struck how the tree alignment could have been off this whole time. EDIT : there are some failing tests that don't appear to be relevant to this PR, for instance.
|
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.
Thanks! As written, the skbio tests would never have ran btw. Can CI be updated as well to install skbio? I would like CI to pass for at least some of the builds in the matrix before merge, and I can adjust later some builds fail
Co-authored-by: Daniel McDonald <d3mcdonald@eng.ucsd.edu>
Co-authored-by: Daniel McDonald <d3mcdonald@eng.ucsd.edu>
Co-authored-by: Daniel McDonald <d3mcdonald@eng.ucsd.edu>
…sample ids readable
Just added in doctests - I believe the outstanding comments have been addressed. |
Wonderful, thank you @mortonjt!! |
Thank you!
…On Wed, Jul 28, 2021 at 10:42 AM Daniel McDonald ***@***.***> wrote:
Merged #859 <#859> into master.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#859 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA75VXLPNLGDQFSF6RFCOETT2AXQNANCNFSM5BBBK7MQ>
.
|
This pull request adds alignment functionality, to allow the biom table to be aligned against metadata (represented as
pd.DataFrame
) and trees (represented asskbio.TreeNode
).I have made this a little more general, allowing these alignment methods to be performed on both axes (sample and observations).
Once we have agreed on the basic user interface, I will push in the remaining unittests.
Outstanding questions
how
orjoin
flag, specifying if this is going to be an inner, outer, left or right join? Right now, I'm only implementing an inner flag since those are my only use cases. But if there is a compelling use case, I am open for discussion.