Protomix.phase_correction¶
- phase_correction(spectra_df: DataFrame) DataFrame[source]
Apply phase correction to spectra in a DataFrame.
This function applies a phase correction to each spectrum in the provided DataFrame, ensuring that the spectral peaks are properly aligned.
- Parameters:
spectra_df (pd.DataFrame) – A DataFrame containing spectra, with each row representing a spectrum and columns corresponding to ppm values.
- Returns:
A DataFrame containing the phase-corrected spectra.
- Return type:
pd.DataFrame