Comments (7)
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
hdata.X = hdata.X.todense()
didnt work.
from solo.
Funnily, saving the hdata
object with force_dense = True
(as_dense = True
in scanpy >=1.5.1) and reloading the object seems to do the trick.
Nevertheless, can hashsolo be easily written to take sparse matrices as well?
from solo.
Any update? Maybe a workaround? :-)
from solo.
@jenzopr I merged a fix just now let me know if it works.
Some of the indexing I do in hashsolo
doesn't work with a dense matrix so the code needs to be:
if issparse(cell_hashing_adata.X):
cell_hashing_adata.X = np.array(cell_hashing_adata.X.todense())
from solo.
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
from solo.
Thats great! Thanks a lot for your support
from solo.
Same error still appears to happen in the newest version. Saving the .h5ad file using as_dense='X'
option, followed by reading it back in again seems to solve the issue, while
adata.X = adata.X.todense()
does not work.
from solo.
Related Issues (20)
- Running solo on a sample as a batch job HOT 4
- Problem with loom file HOT 11
- 2c.h5ad doesn't contain gene names HOT 1
- moving to scvi-tools
- Difference between is_doublet and preds HOT 2
- h5ad for HashSolo & solo .pdf plots output HOT 2
- Running error: "Resource temporarily unavailable" HOT 2
- Finding solo installed version HOT 2
- Error on new solo version HOT 8
- Solo on 10x genomics scRNA data HOT 3
- Allow user to change interval at which validation loss is checked
- python 3.6 incompatibility HOT 5
- Solo encountering Nan values with 10x data HOT 7
- Newbie questions: warning message, model parameters, and outputs HOT 5
- Problem with hashsolo HOT 10
- Problem with solo - PyTorch Lightning HOT 4
- Solo in line? HOT 3
- Hashsolo failing when only two HTOs are present? HOT 5
- Error using h5ad file HOT 2
- Issues with hashsolo
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from solo.