Coder Social home page Coder Social logo

Comments (2)

PeteHaitch avatar PeteHaitch commented on August 27, 2024 1

That all makes sense, thanks for the explanation.
I'll just tweak DelayedMatrixStats tests in RELEASE_3_17 to accommodate that.

from delayedarray.

hpages avatar hpages commented on August 27, 2024

This was a concious decision I made a long time ago, that all row/col summarization methods defined in DelayedArray would follow the lead of rowSums/colSums and rowMeans/colMeans in base R by propagating the rownames/colnames, independently of what matrixStats was doing. So at the time I chose consistency with base R over consistency with matrixStats.

Note that I made the same choice for SparseMatrix objects (but those are much more recent). With BioC 3.17:

library(SparseArray)
rowMaxs(SparseArray(x))
# R1 R2 R3 
#  4  5  6 

I'm not too keen to change this just in BioC 3.17. rowMaxs/colMaxs and rowMins/colMins have propagated the rownames/colnames forever on a DelayedMatrix object, and, starting with BioC 3.18, this behavior is now consistent with matrixStats and MatrixGenerics. So making an exception for BioC 3.17 doesn't sound like a good idea. Plus this would mean changing the behavior of code that was released more than 3 months ago.

Hope that makes sense?

H.

from delayedarray.

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.