orbi_define_basepeak {isoorbi}R Documentation

Define the denominator for ratio calculation

Description

orbi_define_basepeak() sets one isotopocule in the data frame as the base peak (ratio denominator) and calculates the instantaneous isotope ratios against it.

Usage

orbi_define_basepeak(dataset, basepeak_def)

Arguments

dataset

A tibble from a IsoX output. Needs to contain columns for filename, compound, scan.no, isotopocule, and ions.incremental.

basepeak_def

The isotopocule that gets defined as base peak, i.e. the denominator to calculate ratios

Value

Input data frame without the rows of the basepeak isotopocule and instead three new columns called basepeak, basepeak_ions, and ratio holding the basepeak information and the isotope ratios vs. the base peak

Examples

fpath <- system.file("extdata", "testfile_flow.isox", package = "isoorbi")
df <- orbi_read_isox(file = fpath) |>
  orbi_simplify_isox() |>
  orbi_define_basepeak(basepeak_def = "M0")


[Package isoorbi version 1.3.0 Index]