Description Usage Arguments Value Author(s) Examples

For every compound, every peak (with annotated formula) is compared across all spectra. Peaks whose formula occurs only once for all collision energies / spectra types, are discarded. This eliminates "stochastic formula hits" of pure electronic noise peaks efficiently from the spectra. Note that in the author's experimental setup two spectra were recorded at every collision energy, and therefore every peak-formula should appear at least twice if it is real, even if it is by chance a fragment which appears on only one collision energy setting. The function was not tested in a different setup. Therefore, use with a bit of caution.

1 | ```
filterPeaksMultiplicity(peaks, formulacol, recalcBest = TRUE)
``` |

`peaks` |
An aggregate peak data.frame containing all peaks to be analyzed; with at least
the columns |

`formulacol` |
Which column the assigned formula is stored in. (Needed to separately process |

`recalcBest` |
Whether the best formula for each peak should be re-determined.
This is necessary for results from the ordinary |

The peak table is returned, enriched with columns:

`formulaMultiplicity`

The # of occurrences of this formula in the spectra of its compounds.

Michael Stravs, EAWAG <[email protected]>

1 2 3 4 5 6 | ```
## Not run:
peaksFiltered <- filterPeaksMultiplicity(peaksMatched(w),
"formula", TRUE)
peaksOK <- subset(peaksFiltered, formulaMultiplicity > 1)
## End(Not run)
``` |

RMassBank documentation built on May 2, 2018, 2:50 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.