Learn R Programming

MassArray (version 1.24.0)

calcPercentAdduct: Calculate percent salt adducts

Description

Function to calculate ratio of salt adduct peak heights to reference/unmodified peaks

Usage

calcPercentAdduct(peaks)

Arguments

peaks
List of MassArrayPeak objects comprising complete spectral data

Value

Returns a list of numerical values corresponding to the ratios of salt adduct peak heights to their unmodified reference peaks

Details

Salt adducts (either Na or K) are identified and compared to each of their unmodified reference peaks

Examples

Run this code
data(MassArray.example.data)
adduct.ratios <- calcPercentAdduct(MassArray.example.data$samples[[1]]$peaks)
median(adduct.ratios)

Run the code above in your browser using DataLab