waldronlab / MultiAssayExperiment

Bioconductor package for management of multi-assay data
https://waldronlab.io/MultiAssayExperiment/
69 stars 32 forks source link

sampleMap doesn't coerces a data.frame to DataFrame #275

Closed llrs closed 4 years ago

llrs commented 4 years ago

While the sampleMap argument of MultiAssayExperiment automatically coerces a data.frame to a DataFrame it does not happen when one uses the setter:

library("MultiAssayExperiment")
example(MultiAssayExperiment)
df <- as(sampleMap(mae), "data.frame")
sampleMap(mae) <- df
#> Error in (function (classes, fdef, mtable) : unable to find an inherited method for function 'sampleMap<-' for signature '"MultiAssayExperiment", "data.frame"'

It would be nice if it would coerce it too to a DataFrame (or the corresponding method for a data.frame)

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had any recent activity. It will be closed if no further activity occurs. Thank you for your contributions.