Replies: 6 comments
-
I wonder if we should export a derivative class for |
Beta Was this translation helpful? Give feedback.
-
@LiNk-NY, thoughts? Another option is to write some functionality for |
Beta Was this translation helpful? Give feedback.
-
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_
}))
} |
Beta Was this translation helpful? Give feedback.
-
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, |
Beta Was this translation helpful? Give feedback.
-
Any thoughts Martin? @mtmorgan |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
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 berowVarLabels
orrowDataNames
to 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
eSet
cases.Beta Was this translation helpful? Give feedback.
All reactions