Skip to content
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

ENH Anndata integration #66

Merged
merged 44 commits into from
Feb 16, 2023
Merged

ENH Anndata integration #66

merged 44 commits into from
Feb 16, 2023

Conversation

BorisMuzellec
Copy link
Collaborator

@BorisMuzellec BorisMuzellec commented Jan 26, 2023

This PR aims to support the AnnData data structure towards the integration of pydeseq2 to scverse (#15).

More precisely:

  • The DeseqDataSet class now extends the AnnData class. As such, it inherits from all methods and attributes of AnnData, and parameters (such as size_factors and LFCs) are now stored in the relevant AnnData fields (e.g. obsm and varm),
  • DeseqStats was updated accordingly,
  • Pytests were updated,
  • The sphinx documentation was adapted to handle the AnnData class inheritance,
  • The "Getting Started" notebooks from the sphinx-gallery were updated.

@BorisMuzellec BorisMuzellec marked this pull request as ready for review January 30, 2023 16:15
@BorisMuzellec BorisMuzellec marked this pull request as draft January 31, 2023 15:59
@BorisMuzellec BorisMuzellec marked this pull request as ready for review February 1, 2023 16:13
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

Congrats for the big refactoring work @BorisMuzellec ! The code seems correct to me. I have many cosmetic remarks that we can discuss in the comments. I think we'll be able to merge at the second pass.

docs/source/api/docstrings/pydeseq2.utils.rst Show resolved Hide resolved
pydeseq2/dds.py Outdated Show resolved Hide resolved
pydeseq2/dds.py Show resolved Hide resolved
pydeseq2/dds.py Outdated Show resolved Hide resolved
pydeseq2/dds.py Outdated Show resolved Hide resolved
pydeseq2/dds.py Outdated Show resolved Hide resolved
@ghost ghost added the enhancement New feature or request label Feb 10, 2023
@BorisMuzellec BorisMuzellec changed the title Anndata integration ENH Anndata integration Feb 13, 2023
@BorisMuzellec BorisMuzellec requested a review from a user February 13, 2023 16:24
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

🎉 Let's merge! Thanks for all the changes @BorisMuzellec

@BorisMuzellec BorisMuzellec merged commit f9653d2 into main Feb 16, 2023
@BorisMuzellec BorisMuzellec deleted the anndata branch February 16, 2023 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant