A Python package to simplify and accelerate analysis of spectroscopy data.
- GitHub repo: https://github.com/spectrapepper/spectrapepper
- Documentation: https://spectrapepper.github.io/spectrapepper
- PyPI: https://pypi.python.org/pypi/spectrapepper
- Conda-forge: https://anaconda.org/conda-forge/spectrapepper
- Free software: MIT license
spectrapepper is a Python package that makes advanced analysis of spectroscopic data easy and accessible through straightforward, simple, and intuitive code. This library contains functions for every stage of spectroscopic methodologies, including data acquisition, pre-processing, processing, and analysis. In particular, advanced and high statistic methods are intended to facilitate, namely combinatorial analysis and machine learning, allowing also fast and automated traditional methods.
The following is a short list of some of the main procedures that spectrapepper package enables.
- Baseline removal functions.
- Normalization methods.
- Noise filters, trimming tools, and despiking methods.
- Chemometric algorithms to find peaks, fit curves, and deconvolution of spectra.
- Combinatorial analysis tools, such as Spearman, Pearson, and n-dimensional correlation coefficients.
- Tools for Machine Learning applications, such as data merging, randomization, and decision boundaries.
- Sample data and examples.
Install this library using
pip
:pip install spectrapepper
Install this library using
conda-forge
:conda install -c conda-forge spectrapepper
Test it by plotting some data!:
import spectrapepper as spep import matplotlib.pyplot as plt x, y = spep.load_spectras() for i in y: plt.plot(x, i) plt.xlabel('Raman shift ($cm^{-1}$)') plt.ylabel('Intensity (a.u.)') plt.show()
If you find this library useful, please consider a reference or citation as:
Grau-Luque et al., (2021). spectrapepper: A Python toolbox for advanced analysis of spectroscopic data for materials and devices. Journal of Open Source Software, 6(67), 3781, https://doi.org/10.21105/joss.03781
Stay up-to-date by updating the library using:
pip install --update spectrapepper conda update spectrapepper
If you encounter problems when updating, try uninstalling and then re-installing:
pip uninstall spectrapepper conda remove spectrapepper
This package was created with Cookiecutter and the giswqs/pypackage project template.