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

[BUG] Errors saving DeseqDataSet to H5AD #254

Open
jpintar opened this issue Mar 14, 2024 · 0 comments
Open

[BUG] Errors saving DeseqDataSet to H5AD #254

jpintar opened this issue Mar 14, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@jpintar
Copy link

jpintar commented Mar 14, 2024

When I attempt to save my DeseqDataSet AnnData object to H5AD, errors are thrown becuase

  1. dds.varm['replaced']
  2. dds.uns['trend_coeffs']

are stored as a pandas.core.series.Series, which cannot be written to H5AD in those positions. Calling

  1. dds.varm['replaced'] = dds.varm['replaced'].values
  2. dds.uns['trend_coeffs'] = dds.uns['trend_coeffs'].to_dict()

before dds.write_h5ad(<path>) resolved the issue without loss of functionality.

PyDESeq2 version 0.4.7 on CentOS 7.

@jpintar jpintar added the bug Something isn't working label Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant