You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
‘reduce’ first orders the ranges in ‘x’ from left to right, then
merges the overlapping or adjacent ones.
The reduce function works however only on IRanges (i.e. integer values) while we have real values.
Use case: have m/z ranges (e.g. for chromatographic peaks) and want to get a unique set of non-overlapping ranges. This is some functionality that is also used/needed in e.g. xcms.
Definition:
reduceRanges<-function(x, ...)
Input: two column matrix, each row being one range and columns being the lower and upper m/z.
Output: two column matrix with the non-overlapping ranges (increasingly ordered by m/z).
The text was updated successfully, but these errors were encountered:
Definition of the
IRanges::reduce
function:The
reduce
function works however only onIRanges
(i.e.integer
values) while we havereal
values.Use case: have m/z ranges (e.g. for chromatographic peaks) and want to get a unique set of non-overlapping ranges. This is some functionality that is also used/needed in e.g.
xcms
.Definition:
Input: two column matrix, each row being one range and columns being the lower and upper m/z.
Output: two column matrix with the non-overlapping ranges (increasingly ordered by m/z).
The text was updated successfully, but these errors were encountered: