International
Tables for
Crystallography
Volume I
X-ray absorption spectroscopy and related techniques
Edited by C. T. Chantler, F. Boscherini and B. Bunker

International Tables for Crystallography (2024). Vol. I. ch. 6.15, pp. 799-803
https://doi.org/10.1107/S1574870720003419

Chapter 6.15. Multiplatform Applications for XAFS (MAX)

A. Michalowicza and K. Provosta*

aICMPE, UMR7182, UPEC–CNRS, 2–8 Rue Henri Dunant, 94320 Thiais, France
Correspondence e-mail:  [email protected]

Multiplatform Applications for XAFS (MAX) is a multiplatform (Windows, MacOS and Linux) set of standalone applications dedicated to most aspects of XAFS experiment preparation and spectral data analysis. ABSORBIX deals with absorbance calculations at any X-ray energy and fluorescence self-absorption correction. CHEROKEE allows EXAFS extraction and XANES normalization from raw data. CRYSTALFFREV links any crystallographic structure to FEFF input files. EXAFS nonlinear fitting is performed by ROUNDMIDNIGHT and chemometric aspects are treated by STRAIGHTNOCHASER. Normalization of X-ray magnetic circular-dichroism spectra is performed with SOS_XMCD.

Keywords: XAFS data analysis; software.

1. General features

Multiplatform Applications for XAFS (MAX) is a set of six standalone applications covering almost all aspects of XAFS experiment preparation and data analysis (Michalowicz et al., 2009link to reference, 2013link to reference). ABSORBIX deals with X-ray absorbance and fluorescence tables, absorbance calculation at any X-ray energy and fluorescence self-absorption correction. CHEROKEE allows EXAFS extraction, Fourier analysis and XANES normalization from raw data. CRYSTALFFREV links crystallographic structures to FEFF input files. EXAFS nonlinear fits are performed by ROUNDMIDNIGHT and linear chemometric aspects are treated by STRAIGHTNOCHASER. Normalization of X-ray magnetic circular-dichroism (XMCD) spectra is performed with SOS_XMCD.

1.1. Language

Most of the codes, including numerical calculations and the user interface (commands, graphical and file facilities), are written in the multiplatform script language Livecode (https://livecode.com/ ), which allows the simultaneous creation of standalone applications for Windows, MacOS and Linux from a unique code on a unique platform. The user interfaces are automatically adapted to each operating system, while the functions are strictly identical. One exception is ROUNDMIDNIGHT, which is composed of two applications, a user interface written in Livecode and a fitting procedure based on the CERN minimization code MINUIT (James & Roos, 1975link to reference), which is kept in its original Fortran language and compiled separately on each platform.

1.2. Availability

MAX is freely downloadable from the Institute of Chemistry and Materials Paris East (ICMPE) website (Michalowicz, 2017link to reference) and is easy to install: just download, unzip and run. Its main advantages are (i) it is totally standalone and (ii) the user's file management and the graphical and printing facilities follow the standards of each computer operating system. MAX is provided with a series of example files. Printable Help windows, including XAFS data-analysis principles, mathematical explanations and user manuals, are included in the code.

2. ABSORBIX

X-ray absorption edges, fluorescence lines and mass attenuation coefficients are based on McMaster's tables (McMaster et al., 1970link to reference) as compiled in a Livecode version of Mucal (P. Bandyopadhyay & C. U. Segre; http://csrri.iit.edu/mucal.html ).

ABSORBIX provides the following.

(i) A search of X-ray absorption edges and fluorescence lines for any energy range.

(ii) X-ray absorbance values and plots, sample concentrations and thickness optimization for X-ray absorption experiments. Sample chemical composition is entered via an interactive X-ray periodic table. Total absorbance is evaluated versus the absorption jump, the sample mass/surface, the thickness or the sample concentration for solid and liquid dilute samples, taking the solvent characteristics into account.

(iii) Normalized fluorescence XANES or EXAFS spectra self-absorption correction using the nonlinear equations of Haskel (1999link to reference) and Booth & Bridges (2005link to reference), respectively, solved using Brent's numerical equation root solver algorithm (Brent, 1973link to reference), without any absorption-length linear approximation.

3. CHEROKEE

This application contains all of the procedures for a complete treatment of X-ray absorption spectra to obtain EXAFS and XANES spectra for further analysis.

(i) Energy recalibration based on monochromator characteristics.

(ii) Edge-jump determination by extrapolation of the pre-edge and atomic backgrounds.

(iii) Atomic background determination by three different algorithms: polynomial least-squares fitting, cubic spline least-squares fitting and spline smoothing (de Boor, 1978link to reference). We underline the advantages of manual access to different background-removal options, associated with a quantitative estimation of the systematic amplitude errors by Fourier analysis, in order to allow an easy switch to the most efficient algorithm in difficult cases where an unique automatic algorithm may be insufficient and lead to side effects.

(iv) Energy-dependent EXAFS normalization using either Lengeler–Eisenberger expansion (Lengeler & Eisenberger, 1980link to reference) or McMaster's tables (McMaster et al., 1970link to reference).

(v) Fourier transform and filtering, Fourier smoothing, signal-to-noise evaluation and residual background subtraction. Scattering phase and amplitude extraction by Fourier filtering from any EXAFS spectrum (experimental or theoretical).

(vi) Total absorbance or XANES normalization and calculation of derivatives.

CHEROKEE also provides many other functions, such as monochromator calibration, energy and k-space deglitching, and switchable automatic or manual step-by-step data treatments.

CHEROKEE is organized into two sections for the treatment of individual spectra and of series of spectra simultaneously.

4. CRYSTALFFREV

CRYSTALFFREV is a crystallographic tool for the conversion of crystal structures into FEFF (Rehr & Albers, 2000link to reference; Kas et al., 2024link to reference) or FDMNES (Joly, 2001link to reference; Bunău et al., 2024link to reference) input files.

The structure can be created either by manually introducing the cell parameters, space group and asymmetric unit content, or input from a CIF or PDB file, and saved in CRYSTALFFREV, CIF or PDF format. All International Tables for Crystallo­graphy space groups (Hahn, 2002link to reference) are available in a database and can be selected by name or number, imported, edited and checked. All International Tables for Crystallo­graphy origin choices and trigonal space-group descriptions (rhombohedral or hexagonal axes) can be used. It is also possible to enter nonconventional crystallographic symmetry operations.

A cluster is created by selecting the central absorbing atom and defining any cluster radius. It is possible to rotate the local cluster in order to choose the z axis (which is useful for axial ligand analysis of macrocycle metalloenzyme active sites). Disorder tools are available to deal with partial substitutions or vacancies through random generators, or to introduce random radial distribution functions for selected atoms (Gaussian distribution).

Finally, FEFF7, FEFF8/9 and FDMNES input files, including most control cards, can be directly edited in CRYSTALFFREV.

5. ROUNDMIDNIGHT

ROUNDMIDNIGHT is our EXAFS fitting program. The fit of theoretical versus experimental EXAFS is based on the standard multiple-scattering and spherical waves EXAFS formula as documented in the FEFF ab initio code (Rehr & Albers, 2000link to reference; Kas et al., 2024link to reference) and the general function minimization software MINUIT from the CERN computer library (James & Roos, 1975link to reference).

ROUNDMIDNIGHT is totally compatible with FEFF, both in the fitting module and in the multiple-scattering paths analysis module. However, any other sources of scattering phase and amplitude functions can also be admitted. The empirical photoelectron mean free path curve can be fitted on model standards and used in place of, or in combination with, the FEFF reduction factor and calculated photoelectron mean free path in order to improve the EXAFS fit in the low-k (<3 Å−1) domain. In order to prevent correlations (Provost et al., 2013link to reference), it is possible to fit individual or grouped scattering paths, and various options are proposed to constrain the coordination numbers (any linear combination is admitted), effective Debye–Waller factors (multiplier option), distances (distances differing by a fixed distance shift to deal with linear ligands) and Eo correction. A `batch' module is available in order to edit, run and analyse the results of multiple fits of input files associated with a constraints editor.

The fitting procedure follows the IXS Standard and Criteria Subcommittee definitions and recommendations (Sayers, 2000link to reference) on statistical error estimation (either Student's statistics on several EXAFS recordings or Fourier noise-filtering methods), reduced Δχ2 (quality factor QF) calculated either in k- or R-space, parameter correlations and fitting convergence criteria, and F-test calculator (Michalowicz et al., 1999link to reference).

6. STRAIGHTNOCHASER

STRAIGHTNOCHASER is dedicated to properly normalized XAFS spectral analysis of mixtures by statistical and linear algebra methods. Linear combination analysis (LCA) by linear least-squares fit (LSF) is used to determine the concentration profile of experimental spectra linearly composed of a known number of known standards (Bevington, 1969link to reference; Press et al., 1997link to reference). If the number of standards included in the experimental series is a priori unknown, principal component analysis (PCA) allows its evaluation, while target transformation (TT) can evaluate whether a standard is likely to be a component of the series (Klementiev, 2013link to reference; Malinowski, 2002link to reference; Manceau et al., 2014link to reference; Ravel, 2016link to reference; Ravel & Newville, 2005link to reference; Ressler et al., 2000link to reference; Wasserman et al., 1999link to reference; Webb, 2005link to reference). Multivariate curve resolution–alternating least squares (MCR-ALS) deals with time series of spectra where the number of standard components is known but the nature of these standards is partially unknown (Cassinelli et al., 2014link to reference; de Juan et al., 2014link to reference; Faro et al., 2011link to reference; Jaumot et al., 2005link to reference). It is particularly useful to recover the spectra of pure unknown intermediates mixed with other components in the series. Mathematically, the three methods are based on matrix singular values decomposition (SVD) and its applications, matrix pseudo-inversion, rank reduction and vector orthogonal projection (Press et al., 1997link to reference). The help manual included in the software contains the user manual, and most of the mathematical definitions and more developed texts with mathematical developments and demonstrations are provided in the package.

6.1. Linear combination analysis (LCA)

The LCA module provides LSF solutions, standard spectra variance–covariance and correlation matrices, statistical errors on coefficients and quality of fit (QF or reduced Δχ2) evaluations (Press et al., 1997link to reference). We systematically use the SVD pseudo-inversion since it has been proved to be equivalent to the classical LSF solution but to be much more efficient when standard spectra are correlated. The LCA module also produces the standard-components concentration profile of a series of spectra. The fits can be unconstrained or positive concentration constrained. We propose a search of the more likely standards representing series of experimental mixture spectra among a set of standard spectra by combinatory LCA with an original sorting `progressive' algorithm (Michalowicz et al., 2013link to reference).

6.2. Principal component analysis (PCA)

The PCA of an XAFS data matrix is used to determine the number of independent components and to separate the physical signal from noise (Klementiev, 2013link to reference; Malinowski, 2002link to reference; Manceau et al., 2014link to reference; Ravel, 2016link to reference; Ravel & Newville, 2005link to reference; Ressler et al., 2000link to reference; Wasserman et al., 1999link to reference; Webb, 2005link to reference). STRAIGHTNOCHASER provides the standard Malinowski's criteria (Malinowski, 2002link to reference). We also propose a new original test: the reconstruction of the data matrix by LSF on the basis of the PCA abstract components and a QF(Mathematical symbol) plot versus the data indexes, where Mathematical symbol is the number of abstract components used in each plot (Fig. 1link to figure). When the data matrix represents a smooth time evolution of the mixture, as in chemical reactions, the LSF of the data matrix can also be used in score plots of the components of LSF coefficients versus time. The time evolution of the coefficients corresponding to the principal components reflects the smooth evolution of the spectra, while the noisy nature of the components of lower singular values is clearly demonstrated (Fig. 2link to figure). The PCA module also provides a tool for determination of the data noise level. The target-transformation (TT) method (Malinowski, 2002link to reference) helps to test whether the spectrum of a standard is likely to be represented in the data matrix of experimental mixtures. In addition to TT, we also provide least-squares fitting of the standards on the principal components basis, which provides equivalent results more quickly. The goodness of the TT and LSF tests are evaluated by the statistical QF and the SPOIL factor.

[Figure 1]

Figure 1

PCA QF plot of a data matrix (example of a time series of 20 spectra of 400 points each) fitted with one (Mathematical symbol), two and three or more abstract components. In this example, to reach good quality factors for the whole set of spectra, it is necessary to introduce at least three components. Adding a fourth component does not improve the fits: components 4–20 represent the noise.

[Figure 2]

Figure 2

Scores plot for abstract components 1–4 of a time-series data matrix. The concentration profiles of abstract components 1–3 reflect the smooth time evolution of the mixture, while component 4 (dotted line) represents noise fluctuations.

6.3. Multivariate curve resolution–alternating least squares (MCR-ALS)

MCR-ALS (de Juan et al., 2014link to reference) is used to recover the spectra of a priori unknown intermediate compounds in a time-evolving mixture, even if these intermediates only appear as mixtures during the reaction and cannot be isolated directly in the data set. MCR-ALS provides both the calculated spectra of the pure components and the corresponding concentration profiles. While most previously published work was performed with graphical user interfaces linked to commercial mathematical software such as Matlab (Jaumot et al., 2005link to reference), STRAIGHTNOCHASER in MAX is totally stand­alone and free. It provides all of the necessary tools to perform self-consistent cycles of MCR-ALS, alternating between LSF estimation of the concentration profile and the spectra basis. To reach convergence, after the choice of the number of pure real components and a first reasonable guess, the lack of spectral and concentration information is compensated by constraints: concentration non-negativity, closure (total concentration equal to 1), average edge jump equal to 1, null pre-edge, and beginning and end spectra optionally fixed. After convergence, the calculated spectra can be used as standards in other LCA studies or classically analysed for a XANES and EXAFS study of the local structures of the unknown intermediate species.

7. SOS_XMCD

SOS_XMCD is dedicated to XMCD data analysis, providing treatment of both XAS and XMCD spectra in a unique tool. Any ASCII column-format data can be input, with energy entered as electronvolts, kiloelectronvolts or even pixels provided that the coefficients for calibration are known. SOS_XMCD XANES normalization proceeds as in CHEROKEE. XMCD baseline definition is based on polynomial regression, with the possibility of defining exclusion zones in the spectra. XMCD normalization directly uses the normalization coefficients defined in the XANES analysis. Simple tools for XANES and XMCD joint analysis are provided.

References

First citationBevington, P. (1969). Data Reduction and Error Analysis for Physical Sciences. New York: McGraw-Hill.Google Scholar
First citationBoor, C. de (1978). A Practical Guide to Splines. New York: Springer-Verlag.Google Scholar
First citationBooth, C. H. & Bridges, F. (2005). Phys. Scr. 2005, 202.Google Scholar
First citationBrent, R. P. (1973). Algorithms for Minimization Without Derivatives. Englewood Cliffs: Prentice Hall.Google Scholar
First citationBunău, O., Ramos, A. Y. & Joly, Y. (2024). Int. Tables Crystallogr. I, ch. 6.6, 752–757 .Google Scholar
First citationCassinelli, W. H., Martins, L., Passos, A. R., Pulcinelli, S. H., Santilli, C. V., Rochet, A. & Briois, V. (2014). Catal. Today, 229, 114–122.Google Scholar
First citationFaro, A. C., Rodrigues, V. O. & Eon, J.-G. (2011). J. Phys. Chem. C, 115, 4749–4756.Google Scholar
First citationHahn, T. (2002). International Tables for Crystallography, Vol. A, 5th ed., edited by Th. Hahn. Dordrecht: Kluwer Academic Publishers.Google Scholar
First citationHaskel, D. (1999). FLUO: Correcting XANES for Self-absorption in Fluorescence Measurements. http://www.aps.anl.gov/~haskel/fluo.html .Google Scholar
First citationJames, F. & Roos, M. (1975). Comput. Phys. Commun. 10, 343–367.Google Scholar
First citationJaumot, J., Gargallo, R., de Juan, A. & Tauler, R. (2005). Chemom. Intell. Lab. Syst. 76, 101–110.Google Scholar
First citationJoly, Y. (2001). Phys. Rev. B, 63, 125120.Google Scholar
First citationJuan, A. de, Jaumot, J. & Tauler, R. (2014). Anal. Methods, 6, 4964–4976.Google Scholar
First citationKas, J. J., Vila, F. D. & Rehr, J. J. (2024). Int. Tables Crystallogr. I, ch. 6.8, 764–769 .Google Scholar
First citationKlementiev, K. (2013). XANES Dactyloscope. https://intranet.cells.es/Beamlines/CLAESS/software/xanda.html .Google Scholar
First citationLengeler, B. & Eisenberger, P. (1980). Phys. Rev. B, 21, 4507–4520.Google Scholar
First citationMalinowski, E. R. (2002). Factor Analysis in Chemistry, 3rd ed. New York: Wiley.Google Scholar
First citationManceau, A., Marcus, M. & Lenoir, T. (2014). J. Synchrotron Rad. 21, 1140–1147.Google Scholar
First citationMcMaster, W. H., Kerr Del Grande, N., Mallett, J. H. & Hubbell, J. H. (1970). At. Data Nucl. Data Tables, 8, 443–444.Google Scholar
First citationMichalowicz, A. (2017). MAX. https://www.icmpe.cnrs.fr/en/laboratory/research-services/ .Google Scholar
First citationMichalowicz, A., Moscovici, J., Bouvet-Muller, D. & Provost, K. (2009). J. Phys. Conf. Ser. 190, 012034.Google Scholar
First citationMichalowicz, A., Moscovici, J., Muller-Bouvet, D. & Provost, K. (2013). J. Phys. Conf. Ser. 430, 012016.Google Scholar
First citationMichalowicz, A., Provost, K., Laruelle, S., Mimouni, A. & Vlaic, G. (1999). J. Synchrotron Rad. 6, 233–235.Google Scholar
First citationPress, W. H., Teukolsky, S. A., Vetterling, W. T. & Flannery, B. P. (1997). Numerical Recipes. Cambridge University Press.Google Scholar
First citationProvost, K., Beret, E. C., Muller, D., Marcos, E. S. & Michalowicz, A. (2013). J. Phys. Conf. Ser. 430, 012015.Google Scholar
First citationRavel, B. (2016). Athena User's Guide. http://bruceravel.github.io/demeter/documents/Athena/index.html .Google Scholar
First citationRavel, B. & Newville, M. (2005). J. Synchrotron Rad. 12, 537–541.Google Scholar
First citationRehr, J. J. & Albers, R. C. (2000). Rev. Mod. Phys. 72, 621–654.Google Scholar
First citationRessler, T., Wong, J., Roos, J. & Smith, I. L. (2000). Environ. Sci. Technol. 34, 950–958.Google Scholar
First citationSayers, D. E. (2000). Report of the International XAFS Society Standards and Criteria Committee. http://ixs.iit.edu/IXS/subcommittee_reports/sc/SC00report.pdf .Google Scholar
First citationWasserman, S. R., Allen, P. G., Shuh, D. K., Bucher, J. J. & Edelstein, N. M. (1999). J. Synchrotron Rad. 6, 284–286.Google Scholar
First citationWebb, S. M. (2005). Phys. Scr. 2005, 1011.Google Scholar








































to end of page
to top of page