Detailed description |
Although batman does not seem to need this calibration to work, I found the 'readBruker' function very handy very handy to import data for multivariate analysis. Therefore I found a solution for the previously mentioned 'problem'. As attachment to this comment I include an R function that 'calibrates' the spectra in a data matrix (M) created by reading NMR with the batman funtion readBruker: M<-readBruker('brukerDataDir').
This funtion searches for the local maximum in a region provided by the user (for instance containing the TSP singlet, or any other suitable calibrant) and then calibrate all spectra according to it. The usage: M<-calibr(M,index1,index2). Index1,index2 are the matrix row indexes corresponding to the left and right limits of the region containing the calibrant peak.
|
|