[Bioc-devel] MultiAssayExperiment Subsetting Fails if Column Data Has One Column
Dario Strbenac
dstr7320 at uni.sydney.edu.au
Wed Sep 13 05:00:03 CEST 2017
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
More information about the Bioc-devel
mailing list