Hi Aalim,
1. Yes, you can extract the necessary components to rebuild a 3.6-compatible MSImagingExperiment:
If all goes well, you should be able to simply call obj <- updateObject(obj) to return an updated MSImagingExperiment.
If that doesn't work, you can get the necessary components via:
spectra <- obj@imageData$data[[1L]]
coord <- obj@elementMetadata@coord
run <- obj@elementMetadata@run
mz <- obj@featureData@mz
and then follow the instructions here:
2. Yes, you can use the
col argument, which now works for both discrete and continuous color scales.
I recommend using the provided dpal() and cpal() functions to generate the discrete and continuous color palettes, respectively.
You can see the supported discrete palettes via palette.pals() and the continuous palettes via hcl.pals().
For example, col=cpal("Cividis") to switch to the Cividis color palette.
-Kylie