get_peak_info: get peak info

View source: R/finding_peaks.R

get_peak_infoR Documentation

get peak info

Description

Given a set of points that make up a peak, use the provided method to find the center, intensity and area of the peak.

Usage

get_peak_info(peak_data, peak_method = "lm_weighted", min_points = 4)

Arguments

peak_data

data.frame with mz, intensity, and log intensity log_int

peak_method

which method to use to get information about the peak (see Details)

min_points

how many points have to still be in a peak to return something useful?

Details

This function can choose from several methods to get information about the peak. Currently available methods include:

lm_weighted

quadratic linear fit to log-intensities, with weights for each point relative to the maximum intensity point (current default)

lm_unweighted

quadratic linear fit to log-intensities

Value

data.frame


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