Baseline Subtraction

This node is useful to subtract baseline noise from mass spectra, supports multiple types of baseline subtraction. For each row in the input data, we calculate the baseline for windows across the whole spectra, then remove the baseline value from all values in that given window. Once this is done, we remove all negative values and set them equal to zero.

Options

Baseline Type

Minimum
If chosen, the baseline is calculated as the minimum of the values in each window.
Median
If chosen, the baseline is calculated as the median in each window.
Tophat
If chosen, the baseline is calculated as the morphological operator tophat of the values in the window. This means the opening, which refers to the dilation of the erosion.
Optimal Tophat
If chosen, the baseline is calculated using morphological operators. Specifically, it is the minimum of the opening, and the average between the dilation of the opening, and the erosion of the opening. As explained by Roasanna Perez-Pueyo, Maria Jose Soneira and Sergio Ruiz-Moreno in Morphology-Based Automated Baseline Removal for Raman Spectra of Artistic Pigments.

Input Ports

Icon
Rows of data that we wish to remove the baseline from. Typically, this will be mass spectrometry intensity data.

Output Ports

Icon
This port outputs the baselines calculated for each row of incoming data.
Icon
This port outputs the original data with the baseline subtracted.

Popular Predecessors

  • No recommendations found

Popular Successors

Views

This node has no views

Workflows

  • No workflows found

Links

Developers

You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.