Replies: 6 comments
|
I wonder if we should export a derivative class for |
|
@LiNk-NY, thoughts? Another option is to write some functionality for |
|
I wouldn't mind having an SE-only class (at the moment, at least), but this shouldn't become too restrictive in the future. If there are only SE, eSet and matrix objects to deal with, this could be enough in a first instance, with improvements only if required by relevant use-cases. rowDataNames <- function(object) {
stopifnot(inherits(object, "MultiAssayExperiment"))
CharacterList(lapply(experiments(object),
function(x) {
if (inherits(x, "SummarizedExperiment"))
colnames(rowData(x))
else if (inherits(x, "eSet"))
colnames(Biobase::fData(x))
else NA_character_
}))
} |
|
Hi Levi and Laurent, @lwaldron @lgatto I think it would be good to have a derivative class that ensures that all elements in the Best, |
|
I don't know what the problem being addressed is. The 'lesson' from SummarizedExperiment seemed to be that it was better to define the 'api' required (anything with a dim() / dimnames() / [,]) rather than class ('must be a matrix') provided more flexibility. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I hope I haven't missed this functionality, but wouldn't it be useful to have an accessor that returns a list of rowData colnames, similar to
colnames(mae)andrownames(mae). I personally find it useful to easily find out what these assay's rowData contain.In
Biobase, this function is calledfvarLabels. Other possible names would berowVarLabelsorrowDataNamesto stick with the new naming conventions.It this is deemed of interest, I am happy to contribute such a generic and the method for the MultiAssayExperiment class. Something along the lines of
but that also handles the
eSetcases.All reactions