Skip to main content

package for chemometric data analysis

Project description

codecov Documentation Status

chemometrics

chemometrics is a free and open source chemometric library for Python. Its main focus lies on the chemometric analysis of spectroscopic data (e.g. UV/Vis, NIR, Raman, NMR and MS). chemometrics builds on scikit-learn and extends its functionalities to support chemometric data analysis. The package provides methods for plotting, preprocessing and fitting data. In contrast to scikit-learn, chemometrics is mainly intended for interactive work.

chemometrics is work in progress. The current features are mainly revolving around the (supervised) analysis of spectroscopic data.

The documentation is available at https://chemometrics.readthedocs.io

Example applications

Plotting:

import matplotlib.pyplot as plt
import chemometrics as cm
cm.plot_colored_series(X.T, reference=Y)
plt.xlabel('Wavenumber / nm')
plt.ylabel('Absorbance / mAU')

spectra

Preprocessing:

X_deriv = cm.Whittaker(constraint_order=3, deriv=2).fit_transform(X)
cm.plot_colored_series(X_deriv.T, reference=Y)
plt.xlabel('Wavenumber / nm')
plt.ylabel('$d^2A/dl^2$ / $mAU/nm^2$')

derived spectra

Regression:

cm.fit_pls(X_deriv, Y)

CV scores PLS analytics

Requirements and installation

  • Python >= 3.8
  • NumPy >= 1.19.2
  • SciPy >= 1.5.2
  • scikit-learn >= 0.23.2
  • matplotlib >= 3.3.2

Earlier versions of the required libraries may work but have not been tested.

chemometrics is distributed over PyPI. The simplest way to install chemometrics is by running

python -m pip install chemometrics

Copyright and license

chemometrics is released under GPLv3.

Copyright 2021 Matthias Rüdt

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chemometrics-0.3.0.tar.gz (51.5 kB view hashes)

Uploaded Source

Built Distribution

chemometrics-0.3.0-py3-none-any.whl (67.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page