-
Notifications
You must be signed in to change notification settings - Fork 13
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
Error in inline usage #33
Comments
Funnily, saving the Nevertheless, can hashsolo be easily written to take sparse matrices as well? |
Hi Jens, Let me take a look. It will probably just convert the sparse matrix under the hood into a dense matrix because I don't think cell hashing matrices should cause memory issues. Its interesting the
didnt work. |
Any update? Maybe a workaround? :-) |
@jenzopr I merged a fix just now let me know if it works. Some of the indexing I do in
|
If you need this fix released to pypi let me know otherwise you can install the fix from cloning the master branch and pip installing from there |
Thats great! Thanks a lot for your support 🎉 |
Same error still appears to happen in the newest version. Saving the .h5ad file using
does not work. |
Hi!
I'm trying to use Solo inline on an Anndata object with 4 hashtag features. My code looks roughly like this:
Initially, the error from solo was
NotImplementedError: adding a nonzero scalar to a sparse matrix is not supported
- I assume becausehdata.X
is a sparse matrix. Then I tried to doprior to the hashsolo call, but now I'm getting a
IndexError: boolean index did not match indexed array along dimension 1; dimension is 4 but corresponding boolean dimension is 1
. Any ideas how to proceed?Thanks,
Jens
The text was updated successfully, but these errors were encountered: