Good day,

Subsetting a MultiAssayExperiment object fails if the column data has one 
column but not 2 or more columns. Perhaps drop = FALSE is missing for the 
DataFrame subsetting. A minimal example is:

rowColNames <- list(paste0("Gene", 1:10), paste0("Person", 1:10))
aTable <- matrix(rnorm(100), ncol = 10, dimnames = rowColNames)
classes <- data.frame(row.names = paste0("Person", 1:10),
                      class = rep(c("Non-Responder", "Recovery"), each = 5))
measurementsSet <- MultiAssayExperiment(list(RNA = aTable), classes)
measurementsSet[1, 1, ]

other attached packages:
[1] S4Vectors_0.15.7            BiocGenerics_0.23.1         
MultiAssayExperiment_1.3.34

--------------------------------------
Dario Strbenac
University of Sydney
Camperdown NSW 2050
Australia

_______________________________________________
Bioc-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/bioc-devel

Reply via email to