Git Product home page Git Product logo

Comments (7)

hpages avatar hpages commented on July 24, 2024 2

@TuomasBorman, @LiNk-NY,

I can think of 2 ways to deal with this:

  1. The rows/cols of the supplied assay (or assays) get reordered to align with the rownames/colnames of the SE object (the rownames/colnames of the SE are inferred from the rownames of the rowData/colData).
  2. We raise an error if one of the supplied assays has rownames and/or colnames that don't match those of the SE object.

The second option (2.) is consistent with the assay()/assays() setters so that's my preference. The first option (1.) is more complicated than it sounds e.g. it's not clear what to do if the rownames/colnames of the user-supplied assay are completely different from those of the SE object or if only a subset of them match those of the SE object.

I've a patch ready for (2.) that I'm going to commit today. It might break a few packages on the devel builds, we'll see. Hopefully it won't be too bad. In any case they should be easy to fix.

H.

from summarizedexperiment.

LiNk-NY avatar LiNk-NY commented on July 24, 2024 1

Hi Tuomas, @TuomasBorman

Thank you for providing a detailed report.
It appears that the colData and rowData orderings take precedence over the ordering of the assay.
Perhaps it should be the other way around.
We will investigate and get back to you.

Best regards,
Marcel

from summarizedexperiment.

hpages avatar hpages commented on July 24, 2024 1

Done in SummarizedExperiment 1.23.2 (see commit 1e1da5b).

I've manually run R CMD check on a few selected reverse deps: SingleCellExperiment, TreeSummarizedExperiment, zinbwave, VariantAnnotation, xcms, iSEE, velociraptor, and tximeta. All went fine except for a failed test in SingleCellExperiment that I will fix ASAP.

Now SummarizedExperiment has 422 direct reverse deps so I will let the daily builds run all the checks for me. Fingers crossed that we don't see a blood bath on Monday's report (I committed my change too late for Saturday's report and we don't have reports on Sundays).

from summarizedexperiment.

hpages avatar hpages commented on July 24, 2024 1

SingleCellExperiment fixed (commit b96ffaff, version 1.15.2)

@LiNk-NY Hey Marcel, this change to the SummarizedExperiment() constructor function causes some of the unit tests in MultiAssayExperiment to fail. Sorry for that. Do you think you can take a look? The easy fix is to remove the offending rownames and/or colnames from the supplied assays (naked assays are always accepted). Thanks!

from summarizedexperiment.

TuomasBorman avatar TuomasBorman commented on July 24, 2024
> sessionInfo()
R version 4.1.0 (2021-05-18)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19042)

Matrix products: default

locale:
[1] LC_COLLATE=English_Finland.1252  LC_CTYPE=English_Finland.1252    LC_MONETARY=English_Finland.1252 LC_NUMERIC=C                    
[5] LC_TIME=English_Finland.1252    

attached base packages:
[1] parallel  stats4    stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] SummarizedExperiment_1.22.0 Biobase_2.52.0              GenomicRanges_1.44.0        GenomeInfoDb_1.28.0         IRanges_2.26.0             
[6] MatrixGenerics_1.4.0        matrixStats_0.59.0          S4Vectors_0.30.0            BiocGenerics_0.38.0        

loaded via a namespace (and not attached):
 [1] lattice_0.20-44        bitops_1.0-7           grid_4.1.0             zlibbioc_1.38.0        XVector_0.32.0         Matrix_1.3-4          
 [7] tools_4.1.0            RCurl_1.98-1.3         DelayedArray_0.18.0    compiler_4.1.0         GenomeInfoDbData_1.2.6

from summarizedexperiment.

TuomasBorman avatar TuomasBorman commented on July 24, 2024

@hpages

Sounds good. In my opinion, option 1 would be a nice feature for some users, I guess. However, in addition of being simpler, option 2 fits better to the nature of SE of being just a data container, so no too fancy things should be going on

-Tuomas

from summarizedexperiment.

hpages avatar hpages commented on July 24, 2024

Other randomly picked up reverse deps that went thru a manual R CMD check on my laptop: AllelicImbalance, batchelor, BiocSklearn, bsseq, CATALYST, ChIPpeakAnno, TCGAutils, and zellkonverter. They all passed successfully.

from summarizedexperiment.

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.