Closed cvanderaa closed 3 years ago
As pointed out by Harrison, readSCP breaks when channel annotation is a factor:
readSCP
data("mqScpData") data("sampleAnnotation") sampleAnnotation$Channel <- as.factor(sampleAnnotation$Channel) readSCP(featureData = mqScpData, colData = sampleAnnotation, batchCol = "Raw.file", channelCol = "Channel")
Loading data as a 'SingleCellExperiment' object Error in `[.data.frame`(xx, , -ecol, drop = FALSE) : undefined columns selected In addition: Warning message: In Ops.factor(ecol) : ‘-’ not meaningful for factors
This is being tackled in QFeatures (see PR https://github.com/rformassspectrometry/QFeatures/pull/132)
QFeatures
As pointed out by Harrison,
readSCP
breaks when channel annotation is a factor: