/
You are viewing the documentation for metbit 7.3.20. Change release context

metbit.baseline

NMR and preprocessing module in metbit 7.3.20.

import metbit.baseline

Functions

bline(X: pd.DataFrame, lam: float=10000000.0, max_iter: int=30)

Baseline correction for 1D NMR spectra using asymmetric least squares (ALS).

Parameters: X (pd.DataFrame): DataFrame where rows are spectra, columns are PPM values. lam (float): Smoothing parameter (lambda). Higher = smoother baseline. max_iter (int): Max iterations for ALS.

Returns: pd.DataFrame: Baseline-corrected spectra (same shape as input).

Source

metbit/baseline.py at v7.3.20
Downloads for metbit 7.3.20PyPI and GitHub measure different distribution channels. Statistics refresh daily.

Counts are distribution activity, not unique users. GitHub source archives and Git clones are not included. Sources: PyPI Stats, Pepy, ClickPy, and GitHub Releases.

metbit 7.3.20 documentation