Now, the line works for the pig206 dataset. However, when I run my command on a dataset that I analyzed before using a previous version of Cardinal, I encounter this issue:
> mse_DRG_NEG_10UM_5SS <- readMSIData(DRG_NEG_10UM_5SS)
parsing imzML file: ‘C:\Users\ACER\Desktop\DRG_YS_NEG_10UM_5SS_TEST1 Analyte 1_1.imzml’
detected 'processed' imzML
detected 'profile' spectra
returning MSImagingArrays
done
> Cardinal::image(mse_DRG_NEG_10UM_5SS, mz=200.00, tolerance=0.5, units="mz")
Error in image.default(mse_DRG_NEG_10UM_5SS, mz = 200, tolerance = 0.5, :
the argument must be a matrix or similar
> print(mse_DRG_NEG_10UM_5SS)
MSImagingArrays with 160200 spectra
spectraData(2): mz, intensity
pixelData(3): x, y, run
coord(2): x = 1...890, y = 1...180
runNames(1): 2022_12_01_DRG_YS_NEG_10UM_5SS_TEST1_YOUNG Analyte 1_1
experimentData(10): spectrumType, spectrumRepresentation, instrumentModel, ..., scanType, lineScanDirection, pixelSize
centroided: FALSE
continuous: FALSE