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)
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.
While the sampleMap argument of
MultiAssayExperiment
automatically coerces adata.frame
to aDataFrame
it does not happen when one uses the setter:It would be nice if it would coerce it too to a DataFrame (or the corresponding method for a data.frame)