- data <- readMSIData(file, attach.only = TRUE, mass.range=c(80,200), resolution=0.01, units”mz”)
- data_norm <- normalize(data, method=“rms”)
- data_proc <- process(data_norm)
You can also try with this:
file_proc <- file %>%
normalize(method="rms")%>%
process()
Usually, normalization is performed after some preprocessing steps like mz alignment, peak picking and peak alignment. If you do some preprocessing before normalizing the file should be easier for your computer to process.
I am used to working with slow-performing computers, but 5 hours is really A LOT of time and it shouldn't be like that!
To reduce the 'heaviness' of my files, I have selected only the area of interest and created a subset of the original file. This way I removed all the background of the image that was uninformative and also taking up a lot of space/time to process. Then I did all the preprocessing and normalization in the subset of the original file.
Hope this helps!
Giulia