The setter method intensityData(object) <- value seems to be broken. I first noticed this on a real dataset I was working with and have reproduced the error below using a simulated dataset.
Error in h(simpleError(msg, call)) :
error in evaluating the argument 'i' in selecting a method for function '[[<-': argument "i" is missing, with no default
Looking at the source code for intensityData(), it seems like the bug might be in matter::atomdata() or Cardinal::iData(). [source code]
setReplaceMethod("intensityData", "MSProcessedImagingExperiment",
function(object, ..., value) {
atomdata(iData(object))[["values"]] <- value
if ( validObject(object) )
object
})
The setter method
intensityData(object) <- value
seems to be broken. I first noticed this on a real dataset I was working with and have reproduced the error below using a simulated dataset.Minimum reproducible example
Error message
Looking at the source code for
intensityData()
, it seems like the bug might be inmatter::atomdata()
orCardinal::iData()
. [source code]