#get feature matrix from cardinal, feature x pixel
spectra <- iData(dataset)
#transposed, pixel x feature
spectra <- t(iData(dataset))
xy_coords =coord(dataset)[,1:2]small_file = readMSIData(file="Example_Continuous.imzML") #this works
writeImzML(small_file, "small_file")
# It returns: "Error: The specified file is not readable: V:\example_files\small_file.ibd"
file.access("V:\example_files\small_file.ibd", mode=4)Example_Continuous.ibd and rename the small_file.ibd into Example_Continuous.ibd then I can read in the file normally. It seems like the ibd file is
ok but due to the given error the imzML file never gets written. > file.access("V:\example_files\small_file.ibd", mode=4)
#Error: '\e' is an unrecognized escape in character string starting ""V:\e"
> file.access("V:/example_files/small_file.ibd", mode=4)
V:/example_files/small_file.ibd
-1
> file.access("V:/example_files/Example_Continuous.ibd", mode=4)
V:/example_files/Example_Continuous.ibd
-1
> file.access("V:/example_files/Example_Continuous.imzML", mode=4)
V:/example_files/Example_Continuous.imzML
-1
digest::digest(file="V:\\example_files\\small_file.ibd", algo="sha1")In any case, it seems like the digest() function calculating the hash is the issue rather than the actual writing of the file. I will consider writing a blank hash with a warning to handle this in the future. (The metadata would technically be incorrect but most software should not care.)
Thanks!
-Kylie
msidata$diagnosis?Thanks,Melanie