Closed gabrielodom closed 2 years ago
I've tracked down the issue:
In R 3.6, the "assays" slot of a RangedSummarizedExperiment
has the following structure:
str(slot(airway, "assays"))
Reference class 'ShallowSimpleListAssays' [package "GenomicRanges"] with 1 field
$ data: NULL
and 12 methods.
In R 3.7 (devel), the "assays" slot of a RangedSummarizedExperiment
has the following structure:
str(slot(airway, "assays"))
Reference class 'ShallowSimpleListAssays' [package "GenomicRanges"] with 1 field
$ data:Formal class 'SimpleList' [package "IRanges"] with 4 slots
.. ..@ listData :List of 1
.. .. ..$ counts: int [1:64102, 1:8] 679 0 467 260 60 0 3251 1433 519 394 ...
.. ..@ elementType : chr "ANY"
.. ..@ elementMetadata: NULL
.. ..@ metadata : list()
and 12 methods.
I understand that I'm not supposed to use "direct slot access", but it means that I don't have to depend on SummarizedExperiment and the litany of packages it depends on.
In both cases, the field is named "data", so I will subset the "assays" slot with $data
first.
The build report passed.
They changed something again, so we're going back to this solution. old code:
assay_mat <- slot(
slot(
summExperiment,
"assays"
),
"data"
)[[whichAssay]]
new code:
assay_mat <- slot(summExperiment, "assays")[["data"]][[whichAssay]]
Email from Lori:
I will need to read through the documentation to identify the problem and push out a bug fix: http://bioconductor.org/developers/how-to/git/bug-fix-in-release-and-devel/