| NEWS | R Documentation |
News for package albatross
Changes in version 0.3-9 (2025-09-02)
Bug fixes
-
feemparafacnow works when the effectivesubsetofXleaves only one sample. Previously it dropped the third dimension and failed. On R ≥ 4.6, bibliography generation now avoids producing invalid HTML. Thanks to Prof. Kurt Hornik for the report and diagnosis.
-
coef.feemsplithalf(kind = "aggtcc")used to produce harmless warnings when testing only one number of factors.
New features
The
coef.feemparafac()method gains three newtypearguments, “scores.sum”, “scores.peak”, and “scores.int”. They enable comparison of score-derived values between the factors, since the raw scores depend on the arbitrary scaling of the model.
Changes in version 0.3-8 (2024-05-07)
Potentially breaking changes
The operations that involve fitting many PARAFAC models (
feemsplithalfandfeemjackknife) now handle the argumentsparallelandclon their own. If parallel processing is enabled, they schedule the calls tofeemparafac(...)on the cluster. This makes it possible to run more thannstart(10 by default) models at the same time and avoid the wait for one remaining random start before moving on to the next model. Due to implementation differences, this also avoids the need to callclusterEvalQ(., library(multiway))before performing parallel processing.The default stopping criterion in
feemparafachas been changed from10^{-4}to10^{-6}. The previous value caused misleadingly pessimistic split-half results for real world datasets, failing the comparisons due to the models being underfitted.The
feemscalefunction now raises an error when the returned scale factor turns out to beNA.
Bug fixes
The
plot.feemparafacmethod used to sort the components lexicographically, making it inconvenient to read plots for models with more than 9 factors. The problem is now fixed, withcoef(type = 'surfaces')returning thedata.frameused to construct the plot.The
feem(..., format = 'table')method now treats thedecargument specially, making it possible to read FEEM tables with commas as decimal separators.The
coef.feemsplithalf(kind = 'factors')method now avoids repeatedly callingfeemcube.feemparafac(), which is expensive for largefeemcubes due to having to subset them. This speeds up all related plots.
New features
New split-half plot and coefficient output,
kind = 'aggtcc', taking the minimal TCC values over individual components and plotting their distributions as a boxplot combined with a violin plot.New split-half plot and coefficient output,
kind = 'bandfactors', summarising the distributions of the factor value over the different subsets as estimates and bands.The operations that involve fitting many PARAFAC models (
feemsplithalfandfeemjackknife) now adjust the signs of the loadings to be as positive as possible (usingresign(absorb = 'C')) before matching the components. This makes it possible to validate models with loadings not constrained to nonnegativity.The
feemparafacfunction now returns the time it took to compute the decomposition in thetimeattribute of the object. Depending on whether a parallel cluster or a parallel BLAS has been used, most of the time may be spent inelapsed(waiting for the cluster),user.self(computing in more than one thread), or evensys.self(BLAS threads spinning insched_yield()).New function
feemcorcondiato perform the core consistency diagnostic (Bro & Kiers, 2003) on PARAFAC models, with added support for missing data.The
feemflamefunction gains argumentscontrol.parafacandcontrol.cmf, making it possible to adjust the termination criteria of the underlying methods.
Changes in version 0.3-7 (2023-11-11)
Bug fixes
The previous version of the package was accidentally broken on versions of R where
apply()did not yet have asimplifyargument. More strict release testing procedures will be applied in the future.
New features
New argument
liketoreorder.feemparafacandrescale.feemparafacmakes it possible to order and scale the components to match another model. The package now re-exports therescalegeneric from the multiway package.
Changes in version 0.3-6 (2023-07-17)
Potentially breaking changes
Fixed an error in
feemscatter(method='whittaker')where thenonnegparameter could be ignored (turning the non-negativity protection off) if the wavelength grid was not sorted. This mistake has been present since version 0.3-0, where Whittaker smoothing had been introduced.Inverted the luminance of the
diverging.colourspalette, setting it to brighter for lower-magnitude values. The signs of the residuals are much easier to understand now.
Bug fixes
The
feemcube.feemflamemethod is now actually exported.The
plot()method forfeemflameobjects now correctly forwards its arguments to lattice functions fortype = 'both'.
New features
New function
absindexcomputes absorption coefficients, absorbance values, spectral slopes and their ratios.
Changes in version 0.3-5 (2022-10-06)
When importing files with a non-default encoding,
feem.characternow avoids leaking a connection per file. (They were cleaned up anyway by the garbage collector, but with a warning.)The custom progress bar in
feemflameis now re-drawn correctly on R GUIs.On R ≥ 4.2, equations in HTML help are typeset from LaTeX source, not manually translated HTML.
-
t()onfeemobjects now results in an unclassed matrix, not a brokenfeemobject. -
feemscatternow accepts scattering bands with asymmetric widths. On some fluorometers, this is needed in order to remove unwanted signal in anti-Stokes zone. New palette,
diverging.colours, is used to plot residual objects.
Changes in version 0.3-4 (2022-02-25)
The
constargument offeemparafac(and other functions that call it) now defaults to non-negativity. The previous default of an unconstrained model can be achieved by setting the argument toNULL.Fixed the bugs in
feemjackknifeandfeemsplithalfwhich prevented them from working with 1-component models.Fixed the bugs preventing
feemandfeemcubeobjects from being properly indexed by theirdimnames.The
data(feems)dataset has been replaced with a synthetic one, with perfectly matching absorbance spectra.New function
feemflameto model fluorescence and scattering signal at the same time.New function
feemindexto calculate fluorescence indices and named peak values used in dissolved organic matter analysis.When the samples and the absorbance information don't match,
feemifenow provides an explanation of what went wrong.When an error happens during the processing of a
feeminside a collection (afeemcubeor a list offeems) or duringfeemlistfile import, the offending sample (or file) is now reported, and the error can be trapped without losing the traceback.The
feemcubefunction can now return the original cube used to fitfeemparafac,feemjackknife,feemsplithalfobjects.-
feemnow supports text files from Edinburgh Instruments F900 software. -
feemlistcan now take an importer function as an argument. -
feemsplithalfcan limit the number of split-combine comparisons (thesplitsargument) or take a fixed list of halves to fit and compare (thefixedargument). HTML version of the manual now passes Tidy validation without warnings.
Changes in version 0.3-2 (2021-07-14)
Fixed a bug in numerical differentiation code for
feemscatter(method = 'whittaker')that resulted ind-th order derivatives being2^dtimes smaller than they should have been. Existing optimallambdavalues will have to be updated by dividing them by2^{2d}.When interpolating using “loess” or “kriging” methods, predicted negative values are replaced with zeroes. Previously, this happened for the whole FEEM, but only with “loess”.
-
feemcubenow can also extract the original cube fromfeemparafacobjects.
Changes in version 0.3-1 (2021-03-29)
Simplified the
feemlist(..., simplify.names = TRUE)logic, hopefully preventing the test failure on some macOS machines.Made the
feem(..., 'table', fileEncoding = '...')logic more robust, especially on older versions of R where it could still fail whenfileEncodingcould not be represented in the locale encoding.-
example(write.openfluor)no longer leaves files it creates in the per-session temporary directory.
Changes in version 0.3-0 (2021-03-24)
Added a new ‘whittaker’ interpolation method for
feemscatterandfeemgridbased on Whittaker smoothing with configurable difference order(s) and optional iterative penalty against resulting negative values. This brings in a dependency on the recommended Matrix package.The ‘pchip’ interpolation method now offers a choice whether to interpolate the EEM by row, by column, or to do both and average the results (thanks staRdom for the trick). It also doesn't crash anymore when trying to 1-D interpolate less than 3 defined points, falling back to linear interpolation instead.
Added
feemmethods for strings and connections, making it possible to read EEMs from files in simple table formats, including those produced by Horiba and Panorama software.Added the
feemlistgeneric to construct lists offeemobjects from eemR or EEM objects or vectors of file and directory paths.Added the
groupsargument tofeemsplithalf, making it possible to stratify the resulting halves according to a given factor value.Added the
feemgridgeneric to interpolate FEEM(s) on a given wavelength grid.Added
coefmethods forfeemparafac,feemsplithalf,feemjackknifereturning the coefficients and summary values (e.g. TCC for split-half) in “long” data.frame format.Added function
write.openfluorto export a fittedfeemparafacobject for the OpenFluor service.Equations in the HTML help pages are now typeset using HTML features instead of plain ASCII.
Dependency on
R >= 3.3is now acknowledged. The package doesn't actually passR CMD checkon prior versions of R. Patches to lower the required R version are welcome if they don't result in extensive rewrites.Other documentation improvements.
Changes in version 0.2-0 (2020-11-30)
Fixed a serious bug in
feemsplithalfthat would result in partially overlapping splits being compared. It has been present since v0.1-1. I apologise to any users of albatross who found out they have been bitten by this. Steps have been taken to make sure that other bugs like this don't still lurk in the code and to prevent similar bugs from occurring in the future.Potentially breaking change:
feemifenow accepts either named absorbance / optical path length data exactly matching unique names of samples, or a collection of exactly same length with either names missing. Named collections of the same length as number of samples which don't contain all unique sample names are going to be rejected from now on.Saved
feemsplithalfandfeemjackkniferesults now should consume much less space and much less memory when loaded back. This is achieved by saving the FEEM cube object in an environment and only referencing it using vectors of indices instead of keeping copies of its subsets.New interpolation method: “kriging”. Very resource-intensive, but results can be nicer-looking than either
loessorpchip.More consistent progress bars for operations on collections of
feems. Scatter correction can now be run in parallel.Minor documentation improvements.
Changes in version 0.1-2 (2020-10-02)
Fixed a bug in
feemjackknifeandfeemsplithalf, which could manifest whenrescaleargument is not3and loading scales are wildly different, resulting in poor approximation for some of the modes.Made the documentation for PARAFAC/split-half/jack-knife plots more prominent.
Made tests and examples much faster.
Made the
gammaargument inmarine.coloursmuch more useful.Minor improvements in documentation.