PyPI · MIT License · Python 3 · Streamlit
SpectraMap (SpMap).
High-throughput hyperspectral analysis, batch parallel chemometrics & Streamlit GUI in Python
Inspect ↗
SpectraMap is a validated Python framework covering the entire hyperspectral workflow: parallel batch loading, automated wavenumber resampling, SNIP/airPLS baselines, internal standard peak normalization, parallel PCA & HCA, HDBSCAN clustering, and VCA unmixing. Includes a 5-step guided Streamlit web application with colorblind-friendly overlays, ROI map manipulation, and publication figure export.
- High-Throughput Batch Processing. Parallel batch dataset loading via joblib, automatic linear wavenumber resampling onto a common grid, and group difference spectra with sample classification breakdown.
- Internal Standard Peak Normalization. Normalize intensities against designated vibrational standard peaks (e.g. paracetamol, silicon, collagen) to cancel cross-measurement baseline and instrument drift.
- Validated Data Type Architecture. Strict type enforcement across hyper_image, multi_spectra, and single_spectrum objects to prevent invalid spatial/spectral operations.
- Advanced Baseline & Preprocessing. Spike removal (modified z-score), fast SNIP, rubberband, and airPLS baseline correction, Savitzky-Golay and Gaussian smoothing, vector and area normalization.




