Skip to content
Prev 20128 / 21318 Next

[Bioc-devel] [question about class extension]

There aren't strict standards imposed on many of the packages in
Bioconductor introducing classes, but many other packages extend and impose
standards and constraints for given areas/fields/subjects.

If you are considering this route, something like the following could work
to determine if introducing metadata features and restrictions is the route
to take:

libraryVector <-
  c("MultiAssayExperiment", "SummarizedExperiment",
    "SingleCellExperiment", "SpatialExperiment")

# Try something like this to test your candidate data classes:

testClass <- function(libraryName, functionString){
  # libraryName : valid class library
  eval(parse(text = paste0(functionString,"(",libraryName,")")))
}

for(libraryName in libraryVector){
  testClass(libraryName, "library")
  testClass(libraryName, "new <- ")

  metadata(new) #

  testClass("new", "rm")
  testClass(libraryName, "detach")
}

There may be better ways to harmonize and share the data with collaborators
as a flat table.

MAE has extensive documentation and there is also a cheatsheet provided to
help out with tasking.

See also: DOI: 10.18129/B9.bioc.MultiAssayExperiment

Sean

On Tue, Jan 23, 2024 at 5:45?AM Delphine Charif <delphine.charif at inrae.fr>
wrote: