mz_to_iranges: mz ranges to IRanges

View source: R/overlap_mz_ranges.R

mz_to_irangesR Documentation

mz ranges to IRanges

Description

modifies a matrix of m/z ranges into an IRanges object to calculate overlaps. Because IRanges objects are integer based, also multiplies by a factor (default 10,000) to preserve resolution.

Usage

mz_to_iranges(mz_values, multi_factor = 1e+07)

Arguments

mz_values

either a vector or matrix of single or double ranges

multi_factor

how much to multiply values by

Value

IRanges


rmflight/metabolomicsUtilities documentation built on Oct. 28, 2023, 6:41 p.m.