Skip to content
This repository has been archived by the owner on Dec 29, 2023. It is now read-only.

WIP: ILR transform on tensors #75

Closed
wants to merge 25 commits into from
Closed

Conversation

mortonjt
Copy link
Collaborator

@mortonjt mortonjt commented Apr 13, 2021

This addresses #74

The idea here we want to be able to apply the ILR transform directly to the outputs of Bayesian differential abundance tools such as Birdman. Doing so will allow for robust hypothesis testing, uncertainty estimation of balances in addition to providing an additional link between differential abundance tools and Empress.

Of course, this all depends on finalizing the upcoming tensor types https://github.com/gibsramen/BIRDMAn/issues/26
In the most ideal scenario, this would be included in the August qiime2 release, since we are aiming to include this functionality in upcoming manuscripts / plugins.

@mortonjt mortonjt requested review from thermokarst and ebolyen and removed request for thermokarst April 13, 2021 20:02
@thermokarst
Copy link
Contributor

Hey @mortonjt - the PR submission cutoff for the 2021.4 release was last week - I don't think we'll be able to squeeze this into this release. The next release is slated for August.

@mortonjt
Copy link
Collaborator Author

@thermokarst the August release timeline sounds perfect :)

trimmed_tree = rename_clades(trimmed_tree)
# TODO: watch out for this indexing with diff. The ordering of the dims
# could mess things up here.
posterior_data = np.array(dataset['diff'].values)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

we should replace this with a pandas pivot so that the dimension order doesn't matter.

@mortonjt
Copy link
Collaborator Author

Just raised a PR here on the tensor types: qiime2/q2-types#261
The pull request here depends on getting those tensor types in.

@mortonjt
Copy link
Collaborator Author

mortonjt commented Jul 8, 2021

@thermokarst just a heads up on this. After talking to @ebolyen and @nbokulich, I think the most reasonable approach is to address qiime2/q2-types#261 by first creating a separate q2-bayes-types repository with the appropriate tensor types in place. That repository still needs to be fleshed out, so I don't think that can be done before the next release.

@thermokarst thermokarst removed their request for review June 24, 2022 17:06
@lizgehret
Copy link
Member

Hey @mortonjt - we are doing some PR triage and review right now, and I looked over this PR along with the one from q2-types you linked above (#261). Are you still building that custom repo for the types you discussed with @nbokulich? And if so, are the changes in this PR still current?

@mortonjt
Copy link
Collaborator Author

Hi @lizgehret thank you for following up on this. I had some q2type work on mortonjt/q2-types@060acfe

But the effort was proving to be too much for me to work on at this point -- I would like to revisit it at a later date; but it will require me to either reprioritize projects or have someone else lead.

@ebolyen
Copy link
Member

ebolyen commented Sep 21, 2022

No worries @mortonjt! I'm going to close this, but feel free to re-open if the situation changes.

@ebolyen ebolyen closed this Sep 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants