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

Description Usage Arguments 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)

Examples

1
2
3
4
5
6
7
8
9
library(cdsw)
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)

protViz/cswd documentation built on May 19, 2020, 1:03 a.m.