summaryPeaks {MALDIrppa}R Documentation

Summary of mass peak profiles

Description

This function generates a numerical summary of a collection of MassPeaks objects.

Usage

summaryPeaks(x, digits = 4)

Arguments

x

A list of MassPeaks objects.

digits

Integer indicating the number of decimal places to be used.

Details

For each MassPeaks on the list this function provides summary statistics of m/z points, peak intensities and SNR thresholds (number, minimum, mean, standard deviation, median, mean absolute deviation, maximum).

Value

A data.frame containing summary information of a collection of MassPeaks objects.

Examples

# Load example data

data(spectra) # list of MassSpectra class objects
data(type)    # metadata

# Some pre-processing

sc.results <- screenSpectra(spectra, meta = type)

spectra <- sc.results$fspectra
type <- sc.results$fmeta

spectra <- transformIntensity(spectra, method = "sqrt")
spectra <- wavSmoothing(spectra)
spectra <- removeBaseline(spectra)
peaks <- detectPeaks(spectra)

names(peaks) <- type$SpectID # spectra IDs are lost after removeBaseline()

# Summary of peak profile features (results for positions 10 to 20)

summaryPeaks(peaks[10:20])


[Package MALDIrppa version 1.1.0-2 Index]