Giter Site home page Giter Site logo

Comments (3)

plger avatar plger commented on July 20, 2024

Do you want me to do it or you do?
This makes me think that I still have to make the scDblFinder method compatible with DelayedArray (i.e. without conversion to a sparseMatrix)...

from scdblfinder.

LTLA avatar LTLA commented on July 20, 2024

Do you want me to do it or you do?

Could you do it? Would save me having to create a PR. I always forget whether I have write access to this repo.

This makes me think that I still have to make the scDblFinder method compatible with DelayedArray (i.e. without conversion to a sparseMatrix)...

There's a couple of lessons learnt from scran and DropletUtils and friends:

  • If you're doing multiple passes over the input matrix, it's better to (by default) convert any input delayed array into a more convenient format (e.g., dgCMatrix) up front, otherwise you'll be wasting a lot of time in block processing.
  • However, this also comes at the obvious cost of increasing memory usage. So the ideal situation is when you only need a subset of features (e.g., HVGs) or cells, in which case you can subset and convert without blowing up your RAM.
  • Of course, if you're just doing one pass over the matrix, the cost of block processing is about equal to the cost of the conversion anyway, so you might as well just keep it in the delayed array format.

There are exceptions to this rule for the fancier DelayedMatrices that have specialized operators (e.g., ResidualMatrix and ScaledMatrix for efficient matrix multiplication) that are more efficient than what you could get from a converted matrix.

from scdblfinder.

plger avatar plger commented on July 20, 2024

done for sweep... will push to bioc after the auto check.
Thanks for the tips. I think I'll do it right after the subsetting then.

from scdblfinder.

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.