Hi all,
trying to plot the result of ssc but I get a warning (see code below) and the function image(ssc) does not print (see attachment).
Has anyone seen this before? thanks!
here is the code I am using:
setCardinalBPPARAM(BPPARAM = MulticoreParam(progressbar=TRUE))
mydata <- readMSIData(test_50um.imzML, attach.only = T)
#convert to cont
mydata_cont <- as(mydata, "MSContinuousImagingExperiment")
set.seed(1)
ssc <- spatialShrunkenCentroids(mydata_cont,
r = 1,
s = 1,
k = 4)
ssc
An object of class 'SpatialShrunkenCentroids2'
<18311 feature, 42841 pixel> imaging dataset
imageData(0):
featureData(0):
pixelData(0):
metadata(3): mapping method dist
run(1): test_50um_continuous
raster dimensions: 325 x 233 x 1
coord(3): x = 1..325, y = 1..233, z = 0..0
resultNames(6): class probability ... statistic sd
resultData(1): ''
modelData(3): r k s
image(ssc)
Warning messages:
1: In min(x) : no non-missing arguments to min; returning Inf
2: In max(x) : no non-missing arguments to max; returning -Inf