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

Save / load DeseqDataSet states and write anndata to disk as h5ad #330

Open
BorisMuzellec opened this issue Oct 31, 2024 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@BorisMuzellec
Copy link
Collaborator

BorisMuzellec commented Oct 31, 2024

Is your feature request related to a problem? Please describe.
#328 makes the DeseqDataSet class unpicklable due to decorated methods. This makes it harder to save results on disk.

Describe the solution you'd like
As suggested by @grst:

implement a .save() and (static) .load() method that saves the anndata as h5ad and the state of the model as pickle or any other > suited format.

The .load() should be able to restore the full state of the dds object, including the formulaic metadata ideally

Describe alternatives you've considered

Use the to_picklable_anndata() method introduced in #328, but this loses the dds state.

@BorisMuzellec BorisMuzellec added the enhancement New feature or request label Oct 31, 2024
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

No branches or pull requests

1 participant