Giter Site home page Giter Site logo

Comments (6)

msmicker avatar msmicker commented on August 9, 2024

Hello, I am also interested in this. I am dealing with very large datasets. While it is possible to create a dense matrix I am curious about the limitations for cellphonedb to analyze even with subsampling. Is there experience with very large datasets? e.g. more than 100k cell? While I am able to export all of my datasets in dense matrix it is time consuming and also failing with any datasets larger than ~150k cells.

from cellphonedb.

Dzhan4 avatar Dzhan4 commented on August 9, 2024

Also curious about this. I was going to try to save sparse matrix as.data.frame(as.matrix(sparsematrix)) into a .txt file. I imagine this will take a long time. Anyone else have any ideas?

from cellphonedb.

rrydbirk avatar rrydbirk commented on August 9, 2024

I'm also listening in on this. It doesn't seem reasonable to write to .txt from a sparse matrix, in my case with ~3.4 billion fields...

from cellphonedb.

bjstewart1 avatar bjstewart1 commented on August 9, 2024

ideally both sparse matrix and anndata input rather than needing to store as .txt

from cellphonedb.

J-Keding avatar J-Keding commented on August 9, 2024

I had the same issue with my sparse matrix that I extracted from a seurat object. I can reccomend looking at the write_dgCMatrix_csv function from the scrattch.io package, which writes the dgCMatrix to a CSV in chunks, thus saving time and memory.

from cellphonedb.

onahman avatar onahman commented on August 9, 2024

+1 from me. It would be great to if you allow direct transfer of dataframe / matrices !
I tried to change the code myself but the FLASK API is a bit over my head

-- update--
I was able to run without the command line interface and it spared me the time of writing/reading of files. Still had a memory problem because my initial data was from R (Seurat) and I couldn't find a way to transfer it to python without converting it to a full matrix

from cellphonedb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.