test_peak_area_slope: test points area slope

View source: R/finding_peaks.R

test_peak_area_slopeR Documentation

test points area slope

Description

given an mz data.frame, test whether the non-zero intensity points account for a significant amount of area and are a certain number of points, while rejecting points that have relatively low slope on either side of the peak

Usage

test_peak_area_slope(mz_peak, min_points = 5, min_area = 0.1, max_slope = 0.1)

Arguments

mz_peak

the mz and intensity values defining the peak

min_points

the minimum number of points to include in the peak

max_slope

the maximum slope to not remove

Details

returns a matrix of vectors, where the vector is:

  1. start of points

  2. end of points

  3. area

Value

numeric


MoseleyBioinformaticsLab/FTMS.peakCharacterization documentation built on April 27, 2022, 3:32 a.m.