annotateSpectrum: annotateSpectrum

Description Usage Arguments Value

View source: R/Functions_Spectra.R

Description

Match peaks in a spectrum with those in a labeling data.frame and prepare them for plotting functions. Matches have to be within abs OR ppm

Usage

1
2
annotateSpectrum(labels, spectrum, mzlabel = F, unmodifiedTag = "",
  ppm = 5, abs = 0)

Arguments

labels

a data.frame as returned by permutatePeptideMass

spectrum

a mass spectrum as data.frame or matrix

mzlabel

if TRUE, will add mz values to the label

unmodifiedTag

what tag to use for unmodified fragment ions

ppm

relative matching tolerance in ppm

abs

matching tolerance in absolute numbers

Value

plots an annotated peptide sequence in the current plotting device


mjhelf/MassTools documentation built on Nov. 19, 2021, 2:38 a.m.