Re: CentWave error
Reply #23 –
I see. That actually is the only modification/fix that write.mzdata will make to the data, I added this a while ago to have a possibility to fix "corrupt" files (here: unsorted scans).
if (is.unsorted(peaks[,"mz"])) { ## fix "bad" scans
peaks <- peaks[order(peaks[,"mz"]),]
}
It will simply order the peaks in scans if unsorted. But it will not fix the gaps caused by the lock mass scans. That is done "on the fly" during processing using Paul's module.