How may I change the row names of an assay to make it more compatible with other R analysis?
> class(cancerAssays)
[1] "MultiAssayExperiment"
> assay(cancerAssays, "microRNA")[1:5, 1:5]
1 5 6 13 16
hsa-let-7a 11.95 12.26 12.93 12.85 11.29
hsa-let-7a* 6.09 6.12 6.16 6.12 6.05
hsa-let-7b 9.15 11.14 11.51 10.99 9.55
hsa-let-7b* 6.16 6.15 6.03 6.12 6.04
hsa-let-7c 8.38 10.14 10.49 9.77 8.43
> problematicNames <- rownames(assays(melanomaAssays)[["microRNA"]])
> rownames(assay(cancerAssays, "microRNA")) <- gsub('*', 'star', problematicNames, fixed = TRUE)
Error in (function (classes, fdef, mtable) :
unable to find an inherited method for function 'assay<-' for signature '"MultiAssayExperiment", "character"'
It seems to me that the assay data is not overwriteable.