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

ExpressionMatrix methods #1411

Closed
pdichiaro opened this issue Jun 18, 2019 · 2 comments · Fixed by #1413
Closed

ExpressionMatrix methods #1411

pdichiaro opened this issue Jun 18, 2019 · 2 comments · Fixed by #1413

Comments

@pdichiaro
Copy link

After target assignment I created an expression matrix (a 2-dimensional cells x genes tensor).

Screenshot 2019-06-18 at 19 23 41

I need to save it for the following usage with single-cell analysis software packages but ExpressionMatrix methods return these kinds of errors.

matrix.save('expression_matrix')

DataArray.name or Dataset key must be either a string or None for serialization to netCDF files

matrix.save_loom('expression_matrix1')

invalid indexer array, does not have integer dtype: array(<Axes.X: 'x'>, dtype=object)

matrix.save_anndata('expression_matrix2')

invalid indexer array, does not have integer dtype: array(<Axes.X: 'x'>, dtype=object)

@shanaxel42
Copy link
Collaborator

Sorry about this @pdichiaro I've opened a PR to fix these issues. Another thing to note is that when saving as a anndata file the filename must end in ".h5" so matrix.save_anndata('expression_matrix2.h5') will work after my changes land.

@pdichiaro
Copy link
Author

please let me know when these issues will be fixed. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants