readjustWindows: Readjust windows so that boundaries in regions of few peaks.

Description Usage Arguments Value Examples

View source: R/readjustWindow.R

Description

Readjust windows so that boundaries in regions of few peaks.

Usage

1
readjustWindows(wind, ms1data, digits = 1, maxbin = 15, plot = FALSE)

Arguments

wind

a data frame with columns from and to

ms1data

masses

digits

mass accuracy

maxbin

maximum number of bins

plot

diagnostic plots (default FALSE)

Value

data.frame of same format as wind but with improved start and end masses.

Examples

1
2
3
4
5
6
7
8
9
data(masses)
cdsw <- Cdsw(masses)
breaks <- cdsw$sampling_breaks(maxwindow=100,plot=TRUE)
table <- cdsw$asTable()
dim(table)
head(table)

tmp <- readjustWindows(table, masses,maxbin=10)
data.frame(tmp)

prozor documentation built on Dec. 11, 2021, 9:51 a.m.