Hi Edu,
I am binning when I am individually loading in my control and injured image files (code below), but I think because I am processing them individually that they dont end up with the same m/z range, so I can't combine them (but I also don't know how to process them together). I tried to add the binning step to pre-processing code and the mass ranges still did not match. The outputs of hippocontrol, hippoinjured, hippocontrol_proc and hippoinjured_proc are included below the code. You can notice that before processing, hippocontrol and hippoinjured have the same mass range, but after processing they do not. Perhaps this is because of the "peakFilter(freq.min=0.01)".
Best,
Dmitry
----------------------------------------
#defines paths
pathcontrol <- "C:/Users/Dima/Downloads/r1s1LSliceHippo201.imzML"
pathinjured <- "C:/Users/Dima/Downloads/r2s2LSliceHippo201.imzML"
#loads data
hippocontrol<- readMSIData(pathcontrol, mass.range=c(730,830), resolution=100, units="ppm", attach.only=TRUE)
hippoinjured<- readMSIData(pathinjured, mass.range=c(730,830), resolution=100, units="ppm", attach.only=TRUE)
#pre-processing for control and injured
hippocontrol_pre <- hippocontrol %>% normalize(method="rms", delay=TRUE) %>% peakFilter(freq.min=0.01)
processingData(hippocontrol_pre)
hippocontrol_proc <- process(hippocontrol_pre,centroided=TRUE,plot=TRUE)
hippoinjured_pre <- hippoinjured %>% normalize(method="rms", delay=TRUE) %>% peakFilter(freq.min=0.01)
processingData(hippoinjured_pre)
hippoinjured_proc <- process(hippoinjured_pre,centroided=TRUE,plot=TRUE)
-----------------------------------------------------