Closed LiNk-NY closed 2 years ago
Wow! Thanks for the explanation! Shouldn't this be corrected?
ooh, and if the NAs are in the colnames then we run into a different problem:
> SummarizedExperiment::SummarizedExperiment(t(m))
Error in DataFrame(x = seq_len(ncol(a1)), row.names = nms) :
missing values in 'row.names'
Thanks for the report. Working on a fix...
Fixed (sort of) in SummarizedExperiment 1.27.2. BUT...
NAs in the dimnames of a SummarizedExperiment derivative should be avoided as they will cause problems. See IMPORTANT NOTES in commit message 71872cc03b7c0195fb80d1d09409243f049ebb3f.
Cheers, H.
Hi Hervé, @hpages
When there are missing (
NA
) row names, the dim names check inassays_have_expected_dimnames
returnsNA
whereasidentical
returnsTRUE
when row names are missing in both comparisons. Perhaps it should useall.equal
? It less strict thanidentical
.https://github.com/Bioconductor/SummarizedExperiment/blob/dd615ee820975bfbf6fae71da29e9c7fb976fe60/R/SummarizedExperiment-class.R#L267-L274
Reproducible example:
Created on 2022-05-13 by the reprex package (v2.0.1)