I’m pleased to announce that
ChemoSpec2D, a package for exploratory data analysis of 2D NMR spectra, has been updated on CRAN and is coming to a mirror near you. Barring user reports to the contrary, I feel like the package has pretty much stabilized and is pretty robust. The main area for future expansion is to add additional data import routines. Please feel free to ask about your specific use case!
The most noteworthy user-facing improvements are:
import2DSpectracan now handle JCAMP-DX files, Bruker files exported via the TopSpin “totxt” command, and JEOL spectra exported as “generic ascii”. The design allows additional formats to be added if I have test files to play with (hint hint).
files2Spectra2DObjectgains a new argument
allowSloppy. This experimental feature will allow one to import data sets that do not have the same dimensions. The intent here is to deal with data sets where the number of points in each dimension is similar but not identical. Additional functions will be needed to handle this kind of data. See the documentation for details.
files2Spectra2DObjecthas also been modified to allow arguments to be passed to
readJDX. This means for instance you can specify a path other than the current working directory, and have the function recurse through sub-directories. This brings
files2Spectra2DObjectinto line with
hats_alignSpectra2Dgains new arguments
maximizewhich allows the user to pass their choice of distance measure through to the objective function used to evaluate the overlap of the spectra. This greatly improves the quality of the alignment.
- Plotting is simplified with the addition of two new functions to create Lists of Colors,
LofCand Lists of Levels,
- The basic color scheme for contours was updated to use a perceptually consistent low/blue -> high/red scheme, based on the principles in the
colorspacepackage. The color-handling infrastructure was also changed to allow easy introduction of different color schemes in the future, though the user cannot yet make changes on the fly.
In addition, a number of small bugs and annoyances were taken care of, arguments tweaked and documentation improved and expanded. Several functions were rebuilt to make them more robust.
Please see the package website for the full changelog and all documentation.